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
- lft_bitbuf_presentation (Video, 646.0 MB)
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.
Thu 22-Dec-2011 14:54
Thu 22-Dec-2011 18:23
Thu 22-Dec-2011 18:33
What are your favourite D/A converters?
Thu 22-Dec-2011 22:21
Thu 22-Dec-2011 22:56
Fri 23-Dec-2011 00:38
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
Fri 23-Dec-2011 10:00
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.)
Fri 23-Dec-2011 11:26
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.
Fri 23-Dec-2011 15:15
Can you change de length of a note ?
Fri 23-Dec-2011 15:35
Fri 23-Dec-2011 16:06
Fri 23-Dec-2011 16:44
Fri 23-Dec-2011 17:14
Happy new year :D
Jake
Fri 23-Dec-2011 17:26
Thanks for sharing this.
Fri 23-Dec-2011 18:04
Fri 23-Dec-2011 18:27
Fri 23-Dec-2011 18:34
Fri 23-Dec-2011 18:43
Fri 23-Dec-2011 18:56
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.
Fri 23-Dec-2011 18:58
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/
Fri 23-Dec-2011 19:12
Fri 23-Dec-2011 19:36
Fri 23-Dec-2011 19:37
Fri 23-Dec-2011 19:37
Fri 23-Dec-2011 19:38
Fri 23-Dec-2011 19:46
Fri 23-Dec-2011 20:11
Fri 23-Dec-2011 20:49
Fri 23-Dec-2011 21:37
Fri 23-Dec-2011 22:23
Fri 23-Dec-2011 22:50
Also some tutorial for the comunity will be much apreciated :)
best wishes and good luck
Fri 23-Dec-2011 23:32
Fri 23-Dec-2011 23:49
Sat 24-Dec-2011 00:21
^^^^^ that! and merry Christmas!
Sat 24-Dec-2011 03:11
^^^^^ that! and merry Christmas!
DITTO!
Sat 24-Dec-2011 03:54
Sat 24-Dec-2011 04:04
Sat 24-Dec-2011 04:07
Sat 24-Dec-2011 04:08
Sat 24-Dec-2011 06:41
Sat 24-Dec-2011 10:45
Sat 24-Dec-2011 12:28
Sat 24-Dec-2011 12:31
Sat 24-Dec-2011 15:18
Sat 24-Dec-2011 19:14
Sat 24-Dec-2011 19:27
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 Krammes
Sat 24-Dec-2011 19:46
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.
Sun 25-Dec-2011 00:06
nice perfomance. i also have a midi keyboard, avr's and really want to play with this device. ^^
Sun 25-Dec-2011 07:41
Sun 25-Dec-2011 08:28
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.
Sun 25-Dec-2011 10:20
Also, great live performance dude. Share it with people! Record your live performances and put it on the Soundcloud, for example.
Cheers!
Sun 25-Dec-2011 16:40
Sun 25-Dec-2011 16:43
Mon 26-Dec-2011 01:19
Mon 26-Dec-2011 03:28
Mon 26-Dec-2011 03:46
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
Mon 26-Dec-2011 04:03
Jzatopa@gmail.com
Mon 26-Dec-2011 08:57
Mon 26-Dec-2011 14:21
I would buy this for $400!
Mon 26-Dec-2011 22:58
Om du inte har några kommersiella planer måste du åtminstone släppa källkod / schema. Föredömligt minimalistisk hårdvara också.
Tue 27-Dec-2011 01:53
Tue 27-Dec-2011 08:40
Wed 28-Dec-2011 02:10
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
Wed 28-Dec-2011 02:14
Wed 28-Dec-2011 02:17
Thu 29-Dec-2011 04:17
Just for reference, what keyboard is that?
Thu 29-Dec-2011 12:19
You are beyond amazing!
// christoffer, umeå
Fri 30-Dec-2011 06:19
Sat 31-Dec-2011 11:28
Sat 31-Dec-2011 11:30
Sat 31-Dec-2011 14:59
Sun 1-Jan-2012 07:57
Mon 2-Jan-2012 18:46
I want to buy/build one. Will you release the firmware? Will you sell kits?
I hope you will ;)
Tue 3-Jan-2012 15:39
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
Tue 3-Jan-2012 18:28
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!
Tue 3-Jan-2012 22:06
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."
Fri 6-Jan-2012 05:23
I would buy this.
But I think a hard case (perhaps clear) would help me worry less of potential damage.
Fri 6-Jan-2012 07:11
Tue 10-Jan-2012 07:09
Tue 10-Jan-2012 09:52
Wed 11-Jan-2012 18:38
Wed 11-Jan-2012 18:40
-sync with another bitbuff
Thu 12-Jan-2012 16:13
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.
Fri 13-Jan-2012 11:34
It will need a way of syncing with others
¿maybe a analog clock I/O? for sync it with old stuff
Nice work!!
Daniel Holth
Wed 18-Jan-2012 14:58
Thu 19-Jan-2012 09:19
Great Job!
Fri 20-Jan-2012 01:19
Tue 24-Jan-2012 14:18
Wed 25-Jan-2012 12:37
Obviously a M Audio Oxygen
Sat 28-Jan-2012 22:01
--Primis
Wed 1-Feb-2012 19:54
Wed 1-Feb-2012 21:20
Thu 2-Feb-2012 03:59
Thu 2-Feb-2012 04:36
Thu 2-Feb-2012 12:09
suddenly i am interested in music again
Roger Fontaine
Thu 2-Feb-2012 14:14
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.
Thu 9-Feb-2012 21:01
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
Mon 13-Feb-2012 12:47
Sat 25-Feb-2012 23:47
Wed 29-Feb-2012 04:31
Wed 29-Feb-2012 16:57
Sun 4-Mar-2012 08:10
Wed 7-Mar-2012 13:32
Having been through the fiddly/frustrating process of trying to do improvisations using LSDj and various Chip trackers, my mind is on fire at the idea of having the chance to use something like this!
As much as I'm sure you enjoy just making cool things for the sake of it, PLEASE take the opportunity to share the beauty of this creation with the world! As several people have already stated: Kickstarter. I would PAY to have the *opportunity* to buy one of these, let alone actually make a purchase!
Thu 8-Mar-2012 04:56
i really love the glitchy effects
but releasing this on the world would just shock the hobbyist audio movement, personally, i'm not good enough to do any live shows, but to have this as something to play around with. but i can see this hitting it big not only in live shows, but as a hobbyist\ musicians new instrument <at fractions of the cost of what other software\hardware costs
Toby Walker
Sat 10-Mar-2012 07:12
I just registered specifically to show my support to the idea of making this something purchasable!
Sat 10-Mar-2012 10:32
Thu 15-Mar-2012 04:01
That should make an affordable BOM...
Tue 20-Mar-2012 23:22
Mon 2-Apr-2012 18:43
Mon 9-Apr-2012 03:03
Amazing, thank your Sir for your outstanding work!
Respect from Portugal
Wed 11-Apr-2012 02:43
Sun 15-Apr-2012 01:42
Sun 15-Apr-2012 07:50
Tue 17-Apr-2012 12:05
Wed 18-Apr-2012 22:40
Sat 21-Apr-2012 06:44
Id definatly want one of these, Coolest little gadget ive seen in a long time.
Mon 23-Apr-2012 00:17
Wed 25-Apr-2012 12:00
Ralph Willekes
Thu 26-Apr-2012 21:49
Maybe a storage function for patterns and instrument setting banks is the only thing I might miss... Not for whole songs, where's the fun in that? ;-P
Mon 7-May-2012 19:23
Please make me the happiest person on Earth.
Tue 15-May-2012 22:44
Gizah wrote:
Every week I come back here hoping you have posted the schematics and code for this, even if it's just an unfinished version.Please make me the happiest person on Earth.
Thu 17-May-2012 01:13
or at least least least, post the firmware so we can burn chips and make one!
Mon 21-May-2012 18:24
ME TOO
I would pay $300 no questions asked.
Mon 21-May-2012 22:05
Wed 23-May-2012 09:52
Sat 2-Jun-2012 16:32
Mon 4-Jun-2012 20:51
Wed 6-Jun-2012 03:40
Thu 7-Jun-2012 09:48
Mon 2-Jul-2012 23:31
Even if you are not going to sell it, it would be nice, if you share the plans with us :)
(would buy it anyways)
Wed 18-Jul-2012 06:53
Sun 29-Jul-2012 22:11
Fri 10-Aug-2012 10:17
Mon 13-Aug-2012 19:44
Wed 10-Oct-2012 14:22
Wed 10-Oct-2012 14:24
Fri 26-Oct-2012 13:15
Jag skulle köpa en i alla fall!
Sun 4-Nov-2012 05:38
Mon 5-Nov-2012 05:27
Tue 6-Nov-2012 00:57
Thu 8-Nov-2012 18:56
Mikael Bouillot
Sat 17-Nov-2012 19:38
1) on the attack of each note, there seems to be a small "noise blast",
2) the notes have a high aliasing content.
For (2), I was under the impression that it came from sampling the waveform at a fixed rate without first filtering it (which would probably require a DSP implementing BLEPs or something similar), but the effect seems extreme. Did you include some kind of non-linear saturation to get that effect?
For (1), I have no idea where that might come from but I like the effect :-)
On the other hand, the interactivity (bass and chords modification in particular) is awesome. That's kind of what I'm trying to achieve with my own project.
Simon Budig
Tue 20-Nov-2012 11:34
However, the software is the tricky part. The experience Linus has with chiptunes is not easily reproduced, let alone turned into a sanely working midi synth. So I guess we're out of luck for now.
Bye,
Simon
Thu 29-Nov-2012 22:46
simon wrote:
The hardware/schematics really isn't the problem, it is easy enough to figure out the schematics from the photo in the posting. There is no magic happening there. I'd gladly offer to turn this into a pcb layout.However, the software is the tricky part. The experience Linus has with chiptunes is not easily reproduced, let alone turned into a sanely working midi synth. So I guess we're out of luck for now.
http://www.linusakesson.net/hardware/chiptune.php
but of course, it would have been cool if Linus put togheter the stuff on this page.
Fri 14-Dec-2012 00:56
Mon 14-Jan-2013 00:57
Fri 18-Jan-2013 23:26
:C
Wed 30-Jan-2013 01:59
Thu 18-Apr-2013 19:00
There is a world of musicians who want to have their own bitbuf. Why don't you share your design with them. You could either 1. open source the whole project and leave it to others to take it from there or 2. put together kits or finished pieces and sell them. The kits could be as simple as a PCB, a flashed chip + a BOM. If you are concerned you don't have time to sell projects like this you could always contact a company like adafruit or similar to do the sales for you.
Fri 19-Apr-2013 17:18
There is a world of musicians who want to have their own bitbuf. Why don't you share your design with them. You could either 1. open source the whole project and leave it to others to take it from there or 2. put together kits or finished pieces and sell them. The kits could be as simple as a PCB, a flashed chip + a BOM. If you are concerned you don't have time to sell projects like this you could always contact a company like adafruit or similar to do the sales for you.
I am of the same opinion.
Sat 27-Apr-2013 12:46
There is a world of musicians who want to have their own bitbuf. Why don't you share your design with them. You could either 1. open source the whole project and leave it to others to take it from there or 2. put together kits or finished pieces and sell them. The kits could be as simple as a PCB, a flashed chip + a BOM. If you are concerned you don't have time to sell projects like this you could always contact a company like adafruit or similar to do the sales for you.
I am of the same opinion.
Thu 13-Jun-2013 04:28
Are planning on builds, I notice the vid is from 2011
Wed 24-Jul-2013 04:12
Thu 29-Aug-2013 23:58
Tue 15-Oct-2013 21:19
Mon 28-Oct-2013 16:46
Sun 15-Dec-2013 00:26
Tue 11-Feb-2014 20:20
please share your ideas or take our money. But such a nice device without any chance to get hands on by ourselves, really gives you bad karma!
Mon 10-Mar-2014 10:50
Best regards from Spain! Andres
Tue 18-Mar-2014 13:00
Sun 4-May-2014 03:57
Great work!
Any updates? (any chance for a rough BOM, some more pictures, another demo video, source code)
This thing looks like so much fun.
Mon 19-May-2014 00:46
Wed 11-Jun-2014 00:52
Also, PLEASE RELEASE THIS ON THE WORLD! IN ANY FORM! PLEASE! THE WORLD NEEDS THIS!
Sat 26-Jul-2014 00:46
Sun 1-Feb-2015 00:04
Wed 18-Feb-2015 19:29
Wed 4-Mar-2015 09:44
Instämmer i kören om scheman och källkod eller ännu hellre ett kickstarter-projekt.
Snälla snälla.. :)
Thu 2-Apr-2015 20:20
its a M-audio
https://www.google.se/search?q=maudio&espv=2&biw=1920&bih=989&source=lnms&tbm=isch&sa=X&ei=ycoYVZfDAszBPML_gcAO&ved=0CAYQ_AUoAQ#imgdii=_&imgrc=GxdLVhWo3A-Y5M%253A%3BThPJCshSEMRejM%3Bhttp%253A%252F%252Fwww.dammitray.com%252Fblogger%252Fuploaded_images%252FM%252520Audio%252520Ozone-705481.jpg%3Bhttp%253A%252F%252Fwww.dammitray.com%252Fblogger%252F2006%252F04%252Fpeople-love-my-shit.html%3B1024%3B768
its a pitcure of it on google
sorry for the lengt of the link
Sun 3-May-2015 02:12
I've been asking this a couple of times a year for the past 3 or 4 years now, but I still maintain hope. What are your plans for the bitbuff - do you plan to release source code, etc. sometime? Maybe even do a writeup on how the synthesiser works (a guide to designing your own and the constrains you overcame / little tricks)?
Keep up the excellent and exciting work!
Sun 21-Jun-2015 18:37
Sun 8-Nov-2015 00:08
Tue 10-Nov-2015 22:22
Hope it won`t be so expensive like all c64 carts.
It was easier to buy real midi-module than used prophet 64
especially when you have 23% VAT in Poland...
First I would like to be so skillful in piano like you :D
Back to keyboard.
ALL BEST ,you`re my music hero since Craft!
Wed 20-Jul-2016 13:20
Sat 18-Nov-2017 04:54
PLEASE!!!
Thu 30-Nov-2017 09:28
Please Linus Akesson, make this device available or provide us with some information about the code. I think that everybody would love to pay for that.
Please answer somehow!
Brian Christensen
Fri 22-Feb-2019 06:39
I remember seeing the BitBuf Presentation a few years ago, being quite impressed by it, I came to your site here, to follow it's progress and learn more about it. Since you've put up the BifBuf presentation, quite many have been requesting it to be made commercially available, it being mass produced, or the very least a DIY kit be made with schematics and components be made available, so people could make the BitBuf themselves. But seemingly no response from you, kept checking in to see if any progress had happened, then as time went by, I kind of forgot about it as nothing new seemingly happened.
So, some years later I suddenly remembered the BitBuf and remembered this site, and immediately came here in hopes that the project had progressed, but sadly it seems nothing has happened.
I'm truly excited for the piece of technological equipment you've made the BitBuf to be - so Linus what is the current status with the BitBuf, and do you have any plans in terms of making it commercially available?
Best Regards
Brian
Thu 4-Feb-2021 22:57
Nicely done.
Thu 10-Nov-2022 22:52
Rowan Pope
Sat 15-Jul-2023 02:00