Lunchbeat is neg-fi groovemachine with 1-bit sounds.
Listen to Lunchbeat 1-bit groovebox sound:
- four 1-bit sounds, to be played live or sequenced
- step sequencer with 8 steps
- clock divider
What is 1-bit sound:
Sound digitally stored in CD quality has 16-bit resolution. 16-bit number can express 2^16 values (65536). It means that audio waveform reconstructed from CD is defined by 65536 separate voltage levels.
1-bit number can have only 2 values: 0 or 1. Because 2^1 = 2. Therefore 1-bit sound can be defined by only two voltage levels – usually some voltage, and no voltage.
So 1-bit signal is simply square wave.
Different sound colours are achieved by modulating frequency and pulse width of this square wave. Lunchbeat generates four 1-bit waveforms at once. How each waveform will sound is determined by four separated algorithms:
- dropping frequency for bass drum
- slow noise for snare drum
- fast noise for hi-hat
- steady frequency for bass wave
Each algorithm’s input values are influenced with dedicated knob. What parameter and how much is it tweaked by knob is for every algorithm individual, to ensure that the modulation will be interesting and fun :)
Sequencer has 8 steps playing in loop.Tempo is controlled by internal clock or external clock pulses.
Programming the sequencer is easy and intuitive and uses two levels of LEDs brightness. By pressing EDIT button you cycle thru all 8 steps. One bright LED marks current step being edited. Pair of half lited LEDs is indicating enabled sound on current step. Sound is switched on or off by pressing adequate sound button.
START/STOP – runs or stops sequencer. When sequencer is started in external sync mode, it waits for first TRIG in pulse. In SETUP mode this button selects internal or external clock.
EDIT – cycles thru all sequencer steps from step 1 to step 8, I call this EDIT mode. Selected step is marked with fully light LED.
SOUND BUTTONS – in EDIT mode you turn on/off sounds to be played on selected step. When not in EDIT mode, sounds can pe played by pressing sound button at any time. In SETUP sound buttons are used to enter TRIG division value. In binary! :)
MOD POTS – each sound has dedicated potentiometer to tweak sound parameters in real time.
TEMPO POT – tempo of internal clock generator.
Or Lunchbeat can be switched to external clock, to receive clock pulses via TRIG cable, and sequencer advances when rising edge of 5V pulse is received.
Holding EDIT button for longer time gets Lunchbeat to setup mode (tempo LED flashes rapidly). In setup mode you can select internal or external clock and division factor of TRIG synchronization. With division factor set Lunchbeate is receiving (or sending) every x-th TRIG pulse. Division factor “x” can be any number from 1 to 15. Can be used for creating unequal floating beats. Leave setup mode by holding EDIT button for longer time again.
WARNING: there is no protection circuitry on TRIG IN input! So be sure your TRIG signal does not exceed 5V! In other case you can fry your chip.
Watch two Lunchbeat homemade prototypes playing in sync:
MCU RESET – mcu reset button is not usually implemented on music instrument. But my assumption is that user will be messing with firmware, so there we go. I am using rigid 2.5N pushutton for this, to prevent reseting unit accidentaly.
ISP6pin – hacker’s gate to unit’s microcontroller. Tweak the sound algorithms. Tweak the sequencer. Change unit’s purpose completely. Use the fact that Lunchbeat is the same thing as Arduino with 6 buttons, 5 pots, 8 LEDs on SPI shift register and 3-bit digital to analog converter. You can run Arduino sketches on it. From here it is up to you and your fantasy.
How it works:
Internal sampling frequency is 15626Hz. So there is interrupt routine firing 15626x per second. This routine checks if some sound should be playing, and if so, checks how long is that sound playing already and than is computed value for output. Sounds are 1 bit, so output value can be only 0 or 1, nothing else. After that all four sound values are summed together (mixed) and this final mix value is pushed to 3-bit DAC.
How to get one:
How to build DIY KIT step by step instructions here: building Lunchbeat DIY kit
If you are hardcore DIYer, you can build your own Lunchbeat from scratch. DIY resources are available.
If you don’t know how to solder and everything, and you want Lunchbeat, just let me know, I’ll be happy to assemble one for you.
If your pockets are deep (no shame, mine are too), don’t worry and let me know, I might have some prototype for cheaper price.
Schematics, parts list, PCB design and source code hosted on GitHub:
Original breadboard Lunchbeat is in this video:
Resources for original breadboard Lunchbeat in GitHub repo: lunchbeat