LilFluffy's Bytebeat Composer
Formula:
t*(t&15)*(1&t>>12)|t*(t&3)*(1&t>>11)|t*(t&2**14?t&2**11?3.8:4:t&2**12?2.2:2)&t|t>>(t&2**12?4:3)
Sample Rate:
8000
11025
16000
22050
32000
44100
48000
64000
Duration:
Play
Stop
Owned by:
u/LilFluffyGoattt
on Reddit
Bytebeat music (or one-liner music) was invented in September 2011. They're generally a piece of rhythmic and somewhat melodic music with no score, no instruments, and no real oscillators. It's simply a single-line formula that defines a waveform as a function of time, processed (usually) 8000 times per second, resulting in an audible waveform with a 256-step resolution from silence (0) to full amplitude (256). If you put that script into a program with a loop that increments time variable (t), you can generate the headerless unsigned 8 bit mono 8kHz audio stream on output, like in this application. Note that you need to set the duration of the generated bytebeat so that it doesn't end itself.
Uses code from
psubscirbe-bytebeat.neocities.org
History of bytebeat
Code library
Customization
Default (Black)
Green
Blue
Cyan
Red
Orange
Yellowish Green
Windows 95
Windows 2000
Purple
Pink
White
Gray
Dark Green
Yellow
Maroon
Default (White)
Black
Green
Blue
Cyan
Red
Orange
Yellowish Green
Windows 95
Windows 2000
Purple
Pink
Gray
Dark Green
Yellow
Maroon
Default (Courier)
Consolas
Apply