Navigation
Home & news
Random page
All pages
Site search:
Databases
Fortune cookies
Haikus
SID themes
Page collections
Blag
Chip music
Chipophone
Games
Hardware projects
Music downloads
Obfuscated programming
Piano music
Sane programming
Scene productions
SID related pages
Software downloads
Video downloads
Featured pages
Autosokoban
Beagleboard VGA
Binary Art
Bit banger
Bitbuf
Brainfuck
Chipophone
Chopin romance
Craft
Elements of Chip Music
Fratres
International Karate
Klämrisk Hero
Lampslide
Live at LCP 2011
PLL sync
Phasor
Pipe Logic
Reverberations
Supremacy / Overlord
Swan
TTY demystified
Think Twice III
Turbulence
Forum
Register
Log in
Latest comments
Syndication
RSS feed
Feedback
  • Swedish content
  • Personal content
  • Offensive content

Bitbuf

The bitbuf is a portable 8-bit minimalistic live looping machine. Designed as a tool for chip music improvisation and live performances, it aims to provide a set of simple yet versatile features. It's a work in progress, but I've made a prototype which is already quite functional and enjoyable to work with.

The word bit in this context refers to a small fragment (a loop) of a piece of 8-bit music. Buf is computer programming jargon for a piece of memory where you store something for later retrieval. The basic job of this machine is to memorise a loop, and then recall it over and over again.

Presentation video

Related tools

Other portable minimalistic loop-based sequencers exist, such as LSDj for the gameboy, Korg DS-10 for the Nintendo DS, nanoloop and recently the DCM8. They have certainly been sources of inspiration. However, I find them to be designed in a way which, to me, is fundamentally unsatisfactory: First, neither of them appear to be useful for live looping, where loops are recorded as part of the performance. Second, they lack support for a number of techniques that are prevalent in chip music, such as the ability to change the current chord in a simple way.

Drawing on my own experiences of 8-bit music, I developed a new kind of sequencer interface to address the specific needs of chiptune improvisation (which I had to figure out as I went along). An overview of the interface is given in the presentation video above. My design goals were to create an interface which would be useful, logical and minimalistic, but not necessarily intuitive to a new user.

Technical details

The bitbuf is based on an 8-bit microcontroller: An ATmega88 with 1 kB of RAM and 8.5 kB of ROM, running at 20 MHz, programmed in C and assembly language. The tight hardware specifications aid in keeping the design minimalistic.

The sound output is provided as a 44.1 kHz mono line out signal, via an external DAC chip (MCP4921). The input is omni-mode MIDI, with support for a very limited set of continuous controllers.

The software architecture is pretty straight-forward: A 44.1 kHz timer triggers an interrupt handler which generates sound from eight oscillators and a current sample level. The worst case execution time of this handler is currently 355 cycles, which at 44.1 kHz corresponds to about 80% of the computational power of the ATmega88. Another timer, at 5 kHz, updates the sample level from a DPCM table (if a drum sample is active), scans the switch and LED matrix, and sets a flag when the playroutine is due. A UART interrupt writes received MIDI bytes into a circular buffer. Meanwhile, in the main context, the MIDI buffer and playroutine flag are polled, and acted upon. These actions include reading and modifying the loop data structure, allocating oscillators to the tracks and live notes, and updating the oscillator parameters.

Future

This is a prototype, and I'm eager to get some feedback. I don't have any long-term plans for the bitbuf yet, but please let me know what you think so far; general improvement suggestions, requests for specific features, opinions.

Posted Thursday 22-Dec-2011 14:20

Discuss this page

Disclaimer: I am not responsible for what people (other than myself) write in the forums. Please report any abuse, such as insults, slander, spam and illegal material, and I will take appropriate actions. Don't feed the trolls.

Jag tar inget ansvar för det som skrivs i forumet, förutom mina egna inlägg. Vänligen rapportera alla inlägg som bryter mot reglerna, så ska jag se vad jag kan göra. Som regelbrott räknas till exempel förolämpningar, förtal, spam och olagligt material. Mata inte trålarna.

Anonymous
Thu 22-Dec-2011 14:54
Would love to buy one!
Anonymous
Thu 22-Dec-2011 18:23
You should definitely keep working with this. I would absolutely buy one.
Anonymous
Thu 22-Dec-2011 18:33
Awesome! (As everything you do).

What are your favourite D/A converters?
Anonymous
Thu 22-Dec-2011 22:21
Well, I know that I would buy one...
Anonymous
Thu 22-Dec-2011 22:56
Sell this as it is and you will make millions. Reserve one for me please!
Anonymous
Fri 23-Dec-2011 00:38
What a wonderful instrument & a GREAT performance!

I too would LOVE an instrument like this - PLEASE let us know if you do decide to develop this or even kits of the bitbuf!

Suggestions - not too many. Perhaps stereo, with each 'part' being panned? Macro keys for different drum patterns & the ability to string them together as you do with the keyboard parts? Additional tempo divisions for the 'glitch' effect and the ability to have the glitch on just the drums?

Fantastic instrument - I sincerely hope you develop it further and consider making a version/kit for others to play!

Merry Christmas!
mCKENIC
Anonymous
Fri 23-Dec-2011 10:00
:O
make some kits,build some more ,or put the schematics online,
it's already finished enough as it is.
( or perhaps single outputs per part, if that's possible.)
Anonymous
Fri 23-Dec-2011 11:26
Keep it up, I love the simplicity of it.

And you should put them up for sale at some point, I'd love a setup, like the one you're demoing here, to play with.
Anonymous
Fri 23-Dec-2011 15:15
I will buy one !!!

Can you change de length of a note ?
Anonymous
Fri 23-Dec-2011 15:35
Linus, I'd love to buy a kit! Merry Christmas!!
Anonymous
Fri 23-Dec-2011 16:06
I'm totally in love with the BitBuf... Any chances to buy you a DIY kit or schemes to build one ?
Anonymous
Fri 23-Dec-2011 16:44
This is freaking gorgeous. I want, I want, I want. Can you put up schematics and code?
Anonymous
Fri 23-Dec-2011 17:14
Schematics would be the best christmas present for many of us 8bit lovers and tinkerers!
Happy new year :D
articblue
Jake
Fri 23-Dec-2011 17:26
This is awesome, I love the glitch feature too. Well thought out and executed.
Thanks for sharing this.
Anonymous
Fri 23-Dec-2011 18:04
Check http://www.kickstarter.com/ for funding.
Anonymous
Fri 23-Dec-2011 18:27
I'm an electronic musician, but haven't really ever gotten seriously into the chiptune movement. I'd still buy (or build) one of these without a 2nd thought! One of the most robust and professional-quality homebrew electronics projects I've ever seen!
Anonymous
Fri 23-Dec-2011 18:34
Would reaaaaaaaally love to see some schematics and code for this, would love to make me one of these!
Anonymous
Fri 23-Dec-2011 18:43
If you sold kits of this, there would be a ton of interest I'd bet. Very nice stuff, I enjoy all the various projects you have posted here.
Anonymous
Fri 23-Dec-2011 18:56
This looks like a wonderful tool for chiptune. A nice looking case, with proper button caps, labelled panel, and retro style graphic logo would be some good finishig touches.
Many people would like to have one of these. You should produce this as a kit or complete unit, as adafruit industries does with the xoxbox.
Anonymous
Fri 23-Dec-2011 18:58
Really well done, very polished in this form, lot of thought and engineering.

Hack-A-Day picked up the story, which is where I found it:
http://hackaday.com/2011/12/23/bitbuf-delivers-some-of-the-best-chiptune-effects-around/
Anonymous
Fri 23-Dec-2011 19:12
I was so much in love whith your chipophone yet but it seems to be a good solution for carry everywhere. I would love to buy one !!!!
Anonymous
Fri 23-Dec-2011 19:36
wow, i would have one! what is make and model of the keyboard?
Anonymous
Fri 23-Dec-2011 19:37
well, definitly this is an awesome thing! i was thinking doing the same one time, but havent done even prototype to program and never expected to see something like that functionality. truly a masterpiece of MCU programming, would build one for myself if you decide to make it opensource and post schematics and firmware. great work anyway!
Anonymous
Fri 23-Dec-2011 19:37
I would love source ode and schematics.
Anonymous
Fri 23-Dec-2011 19:38
Let me guess, you had to make this amazing contraption after you finally found a song that you weren't able to play live on the chipophone? :D
Anonymous
Fri 23-Dec-2011 19:46
Mass market this bitch. I want one. Also schematics. Take my money.
Anonymous
Fri 23-Dec-2011 20:11
To quote Philip J Fry from the TV show Futurama; "Shut up and take my money!" This is simply hands down the best thing I've ever seen or heard moving electrical current do since the first time I turned on a video game system as a kid in the mid 1980's. Turn this into a unit, I will buy it. Sell it as a kit, I will buy it. Ask for donations, I will donate. Charming multiple layered classic sound without any perceivable emulation noise. Your demonstration shows it to be incredibly intuitive and user friendly, even as a proto board! Simply remarkable. I know of nothing on the audio equipment market today that even comes close to what I have just seen. Bravo!
Anonymous
Fri 23-Dec-2011 20:49
Awesome!
Anonymous
Fri 23-Dec-2011 21:37
Really good. You're clearly influenced by the SID! It would be wonderful if you could open source it, i've recently done that with a midibox synth related project and I've had great joy finding out what people can do with my code!
Anonymous
Fri 23-Dec-2011 22:23
I would love to have one or more of these!
Anonymous
Fri 23-Dec-2011 22:50
I think it's a great project, when i saw the chipophone i was so envious, now i have no words, i also think this is buyiable so my support on that aspect too, probably if you go to kickstarter you'll rise enough money to open your own synth company.

Also some tutorial for the comunity will be much apreciated :)

best wishes and good luck
Anonymous
Fri 23-Dec-2011 23:32
This site needs an RSS feed!
Anonymous
Fri 23-Dec-2011 23:49
I would really like to build or buy one!
Anonymous
Sat 24-Dec-2011 00:21
Would love to buy one!

^^^^^ that! and merry Christmas!
Anonymous
Sat 24-Dec-2011 03:11
Would love to buy one!

^^^^^ that! and merry Christmas!

DITTO!
Anonymous
Sat 24-Dec-2011 03:54
Wow what a stunning device! As with everyone else I hope you do indeed make this available somehow.
Anonymous
Sat 24-Dec-2011 04:04
That is awesome, please make it open, I´ll make music.
Anonymous
Sat 24-Dec-2011 04:07
That is awesome, please make it open, I´ll make music.
Anonymous
Sat 24-Dec-2011 04:08
I would love to see the micro's source. That's fantastic what you pulled off.
Anonymous
Sat 24-Dec-2011 06:41
Great job Linus, been a long time fan of your projects. If you ever decide to release .hex files I'll probably end up soldering one of these together :)
Anonymous
Sat 24-Dec-2011 10:45
i would definitely buy one. just make sure it has midi sync for jamming with other gear.
Anonymous
Sat 24-Dec-2011 12:28
YES YES YES YES YES YES YES YES YES!!!!!
Anonymous
Sat 24-Dec-2011 12:31
Is it possible to sync it to incomming MIDI timing? If it is, i will buy one on the spot. You could perhaps sell it as kits, that would save you for alot of soldering ;-)
Anonymous
Sat 24-Dec-2011 15:18
can i has to buy it?
Anonymous
Sat 24-Dec-2011 19:14
I loved your chipophone organ mod, but bitbuf is really a mature product which I believe would have real commercial appeal. I know I want one! :-) Well done.
Anonymous
Sat 24-Dec-2011 19:27
Hej Linus!

Jag skulle köpa en, det verkar riktigt häftigt!
En sak som jag skulle vilja se först är en metronom istället för en blinkande led för att se tempot, eller att kunna välja mellan att kunna höra takten när man spelar in. Det skulle hjälpa mig enormt.

Jag vill verkligen ha en! (om den inte kostar alldeles för mycket dvs.)
Kontakta mig genom mail på knerpan@gmail.com om du vill och har tid!

Mvh Jonatan
Hernandi
Hernandi Krammes
Sat 24-Dec-2011 19:46
Hello.
This is realy programming art.
I am pleased hearing for the achived great performance with a microcontroler and a skiled mind.
You are better than Philip Glass.
Good xmas and new year.
Anonymous
Sun 25-Dec-2011 00:06
damn! this patterns can't get out of my head...
nice perfomance. i also have a midi keyboard, avr's and really want to play with this device. ^^
Anonymous
Sun 25-Dec-2011 07:41
This is pretty cool! It is great that you can do that in hardware, when will you share the plans? You mentioned Korg DS-10, but you should check out Rhythm Core Alpha on the Nintendo DSi and 3DS. It does all of the looping and chord stuff that this does and a lot more, and it's only a $5 or 5 Euro download in the DSiWare Shop or 3DS eShop.
Anonymous
Sun 25-Dec-2011 08:28
Dude. I want this so bad. Really.

If you sell it, I will buy it. Like honestly, I haven't wanted something like this in my entire life. Ever.

Hats off to you for creating something this brilliant.
Anonymous
Sun 25-Dec-2011 10:20
I love it! I would really want to buy one, or build one, if you share hardware schematics and software.

Also, great live performance dude. Share it with people! Record your live performances and put it on the Soundcloud, for example.

Cheers!
Anonymous
Sun 25-Dec-2011 16:40
I've been working on the same thing for a few moths right now. But what you have made... Really impressive. I'll just stop writing my shitcode and wait, until you release this cool thingy.
Anonymous
Sun 25-Dec-2011 16:43
As a suggestion - make an hardware "upgrade". I know that artificially made lack of computing power leads to creativity - but don't overkill with this. This can also lead to lack of awesome features and possible future updates.
Anonymous
Mon 26-Dec-2011 01:19
Sorry ladies, this hunk appears taken
Anonymous
Mon 26-Dec-2011 03:28
Amazing work. I don't know what I want more, schematics for the device, or a full length album with you rocking out on it.
Anonymous
Mon 26-Dec-2011 03:46
I think this is a wonderful project you have created here. I am not sure what you are planing on doing with the concept now that you have a working model but let me throw some ideas at you.

1. Sell it as a kit yourself - This would be a great way to make some money and share your product but it would require quite a bit of work on your part.
2. Sell your design to a company like adafruit - you would still make money and it would possibly take less work on your part.
3. Open source the design - You could provide files to make a PCB, a BOM and the code for everyone to make their own. You could do this and still provide kits or just PCBs.
4. Some combination of the previous 3
5. Do nothing with it and for others to make up their own project.

I really hope to see you do something with this, if I could buy one for $50-$100 I would pick one up tonight.

regards,
Jzatopa@gmail.com
Anonymous
Mon 26-Dec-2011 04:03
Forgot to mention that my girl and I think that this is a wonderful piece of art you have created. The improve, the synth + it's design and the fact you put this out there for everyone is awesome.

Jzatopa@gmail.com
Anonymous
Mon 26-Dec-2011 08:57
Gimme. (Also, if you're actually planning on starting to sell these, please don't make it too terribly overpriced?)
Anonymous
Mon 26-Dec-2011 14:21
I think this can sell for $300 +

I would buy this for $400!
Anonymous
Mon 26-Dec-2011 22:58
Grymt! Det byggs många konstiga musikmakapärer, både bra och dåliga, men det är sällan dess skapare kan ge ett ok demo av dem, det här låter helt fantastiskt!
Om du inte har några kommersiella planer måste du åtminstone släppa källkod / schema. Föredömligt minimalistisk hårdvara också.
Anonymous
Tue 27-Dec-2011 01:53
i want to know how you made this and if you plan on mass producing this. i would by it like no ones business.
Anonymous
Tue 27-Dec-2011 08:40
I look forward to building one!
Anonymous
Wed 28-Dec-2011 02:10
I'd build a kit, lovely programming and elegantly delivered, good demo.

Additions: hmm, mixer section if the minipots are not already doing that.
Stereo could be coded for pan rather than tweaked for panning, say set an arc of 7 possible pan positions.
A phase routine would be good but I suppose that's external efx.


Hardware:
Breakout board for individual outs as an option, or at least pcb solder pads on the board for those who want to go there. pcb midi jacks and a wall wart dc input jack, 9v uniersal. 9v battery option? On/off switch. midid receive send led. Needs a protective case like the shruthi or wtpa? Both have nice acrylic cases, so you may want to talk with olivier and Todd about that. At a minimum the caspar electronics dronemaster style case does provide good protection.
Clumsy players in darkened bars will want larger buttons, no offense but you are very tidy and precise (which is why you finished it so well of course.) That makes you atypical of a user, sadly.

Kit? Yes: but be careful about how you pacakge shipping the atmeg. I've had issues with that.

Using lsdj, dm8, sammichsid and that sort of chiptune thing at present and loads of analog.

lorne in Canada
Anonymous
Wed 28-Dec-2011 02:14
me again, forgot to say 512 meg memory chip, lcd to show library? Borrow the sd card design that todd has already designed? www.narrat1ve.com
Anonymous
Wed 28-Dec-2011 02:17
and one more comment: www.kickstarter.com to fund production costs. see quneo for an outrageous example of success.
Anonymous
Thu 29-Dec-2011 04:17
This is inspiring. I would absolutely buy this and put it to amazing use. I've been using LSDJ and nanoloop for a while but I've never liked having to program the loops ahead of time. I play piano live, and this would ultimately satisfy every need I would ever have for performing. I'd like to mention that I'm an in no way tech savvy. I would never be able to build one of these if you were ever to simply release the instructions... So I beg you. Please please please offer an option to acquire one pre-built.
Just for reference, what keyboard is that?
Anonymous
Thu 29-Dec-2011 12:19
For the love of god Linus - make turn this into a kickstarter project. The world needs a bitbuf kit! Just make sure we can export/load via sysex or via, for example, an sd-card.

You are beyond amazing!

// christoffer, umeå
Anonymous
Fri 30-Dec-2011 06:19
I see a lot of comments about what features you should add... I'd just like to say that I'm a huge fan of how simple and easy Bitbuf is to use. Adding an army of random features (like support for some add-on I've never heard of) would turn me away. Really, I'd be happy with buying the board as it is right now.
Anonymous
Sat 31-Dec-2011 11:28
Yes i would realy like to buy one :)
Anonymous
Sat 31-Dec-2011 11:30
Yes i would like to buy this , Bra jobbat !
Anonymous
Sat 31-Dec-2011 14:59
Nice work! How did you connect the MIDI cable to the USART?
Anonymous
Sun 1-Jan-2012 07:57
Open source it and change the scene! I've been dreaming of building something very similar to this but you have the talent and time to get it done. Great job! -Brett W. (FightCube.com)
Anonymous
Mon 2-Jan-2012 18:46
Excellent demo and awesome instrument!
I want to buy/build one. Will you release the firmware? Will you sell kits?
I hope you will ;)
Anonymous
Tue 3-Jan-2012 15:39
HI Linus your Osiclator it´s awesome, only a question if it´s possible to answer me...

You only use a 555 for Oscilator, or use the Big chip, I´m not sure if it´s an Arduino for generating the wave forms?¿...

Thanks in advance and excuseme for my poor english...

Kinds regards, from Spain.
Iván J
Anonymous
Tue 3-Jan-2012 18:28
great. really great.
please please please release the firmware as open source, start a new projekt on github! it's great, i wanna build my own bitbuf, maybe with other extensions, and based on atmega32.

your firmware, is it made in asm or c? (hoping for c, and hoping you release it with a nice licence).

good work! go on!
Anonymous
Tue 3-Jan-2012 22:06
great. really great.
please please please release the firmware as open source, start a new projekt on github! it's great, i wanna build my own bitbuf, maybe with other extensions, and based on atmega32.

your firmware, is it made in asm or c? (hoping for c, and hoping you release it with a nice licence).

good work! go on!

Read the info at least...

"An ATmega88 with 1 kB of RAM and 8.5 kB of ROM, running at 20 MHz, programmed in C and assembly language. The tight hardware specifications aid in keeping the design minimalistic."
Anonymous
Fri 6-Jan-2012 05:23
Wow, I am impressed.
I would buy this.
But I think a hard case (perhaps clear) would help me worry less of potential damage.
Anonymous
Fri 6-Jan-2012 07:11
I would buy one immediately!
Anonymous
Tue 10-Jan-2012 07:09
and one more comment: www.kickstarter.com to fund production costs. see quneo for an outrageous example of success.
Kickstarter has funded a lot of innovative people, take printrbot for example.
Qball
Tue 10-Jan-2012 09:52
Fantastic work! I really love the looping options, the sound and the effects.
Anonymous
Wed 11-Jan-2012 18:38
Thats an amazin job, congrats!! Of cours now that you show off you need to feed the trolls and release some schemas :P (just to make the trolls bigger and more hungry hehehe).
Anonymous
Wed 11-Jan-2012 18:40
Some nice feature I could see there:

-sync with another bitbuff
Anonymous
Thu 12-Jan-2012 16:13
Oh, wow, this is pretty cool. Like the others, I would love to see the code for this so I could try my hand at duplicating it. Also, what is the little 4 pin IC next to the ATMega?

As for any improvements, I dunno. Perhaps a larger memory bank and interface so if you make a progression you're particularly proud of you can save it and recall it later for recording or to show off or something. Or maybe live you could make some sort of really catchy hook that you keep coming back to while playing other songs interspersed. Or something.

Either way, fantastic stuff. I'm gonna bookmark this page to keep on top of any updates.
Anonymous
Fri 13-Jan-2012 11:34
Very nice!
It will need a way of syncing with others
¿maybe a analog clock I/O? for sync it with old stuff
Nice work!!
joeforker
Daniel Holth
Wed 18-Jan-2012 14:58
Can you provide a few more details about the number of bits used for the triangle waves, dpcm tables, etc? Does it use multiplication or have an envelope generator? Mostly inspired by the NES synthesizer like the Chipophone?
Anonymous
Thu 19-Jan-2012 09:19
Certainly buy one if you propose kit to sale!!!
Great Job!
Anonymous
Fri 20-Jan-2012 01:19
Great machine, and great creator
Anonymous
Tue 24-Jan-2012 14:18
Witch is your keyboard brand?
Anonymous
Wed 25-Jan-2012 12:37
Witch is your keyboard brand?

Obviously a M Audio Oxygen
Anonymous
Sat 28-Jan-2012 22:01
Any Chance you would be willing to share the binary ROM for the atmega to us? the schematics would be nice, but not as necessary to reproduce seeing as you posted a picture of the protoboard.
--Primis
Anonymous
Wed 1-Feb-2012 19:54
I love it! :D TAKE MY MONEY!! :D super coolt
Anonymous
Wed 1-Feb-2012 21:20
want
Anonymous
Thu 2-Feb-2012 03:59
Would love to buy one!
Just echoing what everyone else has said....I'd buy one...I'D BUY TEN!!!
Anonymous
Thu 2-Feb-2012 04:36
Dude, I no longer think its a prototype. This thing needs to be sold and show at namm
Anonymous
Thu 2-Feb-2012 12:09
u should put this on production
suddenly i am interested in music again
pranic_roger
Roger Fontaine
Thu 2-Feb-2012 14:14
great bitbuf product. I enjoyed your demo, your technical ability, and the precision of your design, also musical creativeness.
ditto to other comments, stereo with panning, are you sending bitbuf o/p to what kind of recorder? computer? apple?
as composer who likes to record this would be a great tool to have in studio. I could also see it as great improv performance tool.
keep me informed as your production progresses.
Anonymous
Thu 9-Feb-2012 21:01
This is amazing, please release a kit or a finished product! I'll echo the Kickstarter sentiment.

Suggestion: MIDI clock in (if not i/o) to sync with other hardware/software! Analog clock would be cool too but MIDI sync is the most important
Anonymous
Mon 13-Feb-2012 12:47
Oh man this is so lovely.. The live capabilities of this and the versitality of it... I want one right now. Id play with it all night.. Or if you release this as a kit i will purchase it something shameful! -owly84