Bytebeat music (or one-liner music) is discovered in september 2011. It's 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 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 formula 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. Or for example, you can generate PWM signal on the pin of your microcontroller and send it to the speaker.
History of bytebeat
Original blog posts and videos from Viznut:
Blog posts #1
Blog posts #2
YouTube video #1
YouTube video #2
YouTube video #3
On-line JavaScript players:
Player by Paul Hayes
Player by Bemmu and Rarefluid
Here on this page you can play with the collection of one-liner bytebeat music formulas that I found on the internet (1,
2,
3,
4) and which I discovered through experimentation, trial-and-error testing and piece-by-piece constructing.
- [Common] - formulas found on the internet
- [Classic 8k] - classic formulas playing with 8kHz sample rate
- by Bear & Celephais
t>>6^t&37|t+(t^t>>11)-t*((t%24?2:6)&t>>11)^t<<1&(t&598?t>>4:t>>10)
★
- Viznut-like
10*(t>>6|t|t>>(t>>16))+(7&t>>11)
★ by Viznut
10*(t>>6|t|t>>7)+4*(t&t>>13|t>>6)
★ by Viznut, Xpansive, Varjohukka
10*(t>>7|3*t|t>>(t>>15))+(t>>8&5)
- Frere Jacques (by Lord Graga)
- by Stimmer
(128&t*(4|7&t>>13)>>(1&-t>>11))+(127&t*(t>>11&t>>13)*(3&-t>>9))
★
- Street Surfer (by Skurk, Raer)
t&4096?(t*(t^t%255)|t>>4)>>1:t>>3|(t&8192?t<<2:t)
★
- by Varjohukka
(t&8192?t&4096?t&1024?2*t:4*t:t&512?4*t:4.2*t:(t&4096?t&1024?2*t:10*t:t&512?2*t:8*t)>>2)*(t&16384?3:2)|t*(t&16384?.125:1/(.01*t))
(t&8192?t&4096?t&1024?2*t:4*t:t&512?4*t:4.2*t:(t&4096?t&1024?2*t:10*t:t&512?2*t:8*t)>>2)*(t&16384?3:2)
- simplified
- Varjohukka + Street Surfer (by Raer)
(t&4096?(t*(t^t%255)|t>>4)>>1:t>>3|(t&8192?t<<2:t))^((t&8192?t&4096?t&1024?2*t:4*t:t&512?4*t:4.2*t:(t&4096?t&1024?2*t:10*t:t&512?2*t:8*t)>>2)*(t&16384?3:2)|t*(t&16384?.125:1/(.01*t))>>1)
★
- by Paralax
10*(t&5*t|t>>6|(t&32768?-6*t/7:(t&65536?-9*t&100:-9*(t&100))/11))
★
- Electrohouse
t>>t%(t%2?t&32768?41:t&16384?51:61:34)&t>>4
★
- Running man (by Viznut)
t*(3+(1^5&t>>10))*(5+(3&t>>14))>>(3&t>>8)
★
- Sierpinski harmony
5*t&t>>7|3*t&4*t>>10
★ by Miiro
(9*t&t>>4|5*t&t>>7|3*t&t>>10)
★ by Stephth
(9*t&t>>4|5*t&t>>7|3*t&t>>10)-1
- with drums
9*t&t>>4|5*t&t>>7|(3*t&t>>10)-1
- by Radavis
- CA98 (by Rrola, Ryg)
t*(0xCA98CA98>>(t>>9&30)&15)|t>>8
t*(0xCA98>>(t>>9&14)&15)|t>>8
★
- Bassline (by Tejeez)
(-t>>2)*((127&t*(7&t>>10))<(245&t*(2+(5&t>>14))))
★
- Crowd (by Erlehmann)
t<<1^(t<<1)+(t>>7)&t>>12|t>>4-(1^7&t>>19)|t>>7
- by µB
64*(t>>3|t>>4|t>>9)+(t>>11&t<<2)^2*(t>>16|t|t>>7)+32*(t>>t&32)
- Old noisy beat (by Lucasvb)
(t>>6|t<<1)+(t>>5|t<<3|t>>3)|t>>2|t<<1
- Computing... (by Bear & Celephais)
t+(t&t^t>>6)-t*(t>>9&(t%16?2:6)&t>>9)
- Moon scanner (by Viznut & Jaffa)
2*(t>>5&t)-(t>>5)+t*(t>>14&14)
★
- Fractal trees (by Danharaj & 216)
t|t%255|t%257
- by Droid
t>>6&1?t>>5:-t>>4
- The fall of Derp Herp (by Marmakoide)
t*(0x13371337>>(t>>13&27)&127)|t>>4|t<<5
★
- Zemfira (by Anonymous)
430*(5*t>>11|5*t>>1)
★
- Mr. arpeggiator playing a solo (by Tonic)
t/8>>(t>>9)*t/((t>>14&3)+4)
- The 42 melody
t*(42&t>>10)
- A jaunty tune (by Ryg)
(t*(t>>12)*64+(t>>1)*(t>>10)*(t>>11)*48)>>(((t>>16)|(t>>17))&1)
- Arcade game (by Niklas Roy)
t*((t>>9|t>>13)&15)&129
t*(t>>9|t>>13)&16
- Clean melody
9*(t*((t>>9|t>>13)&15)&16)
- Louder clean melody
- Modem melody (by Krcko)
(t&t>>12)*(t>>4|t>>8)
★
(t-(t>>4&t>>8)&t>>12)-1
- by [deleted]
- Good old fractal melody (by Blueberry)
(t>>9^(t>>9)-1^1)%13*t
- by Yehar
t>>4+!(-t>>13&7)+2*!(t>>17)|t*t*(t>>(t>>12^t>>11)%3+10)/(7+(t>>10&t>>14&3))*!(t&512)<<3+(t>>14&1)
t>>4|t*t*(t>>6&8^8)*(t>>11^t/3>>12)/(7+(t>>10&t>>14&3))
★ a bare-bones version
- by Yehar
t*(t>>(t>>11&15))*(t>>9&1)<<2
- Lemmings March (by Marmakoide)
t>>5|t<<4|t&1023^1981|t-67>>4
- Ratchet modem
100*((t<<2|t>>5|t^63)&(t<<10|t>>11))
- Noisy beats (by Tejeez)
((-t&4095)*(255&t*(t&t>>13))>>12)+(127&t*(234&t>>8&t>>3)>>(3&t>>14))
- 8-bit Atari inspired sounds (by Visy)
t%25+(t>>2|15*t)+t>>3
- simplified version
- by Ola
2*(1-(t+10>>(t>>9&t>>14)&t>>4&-2))*((t>>10^t+(t>>6&127)>>10)&1)*32+128
- Robot out of control (by Frenzy)
(t&64|t>>5)^(t&33|t>>8)^(t&14|t>>9|t&76)^(t|187)^t*(t>>8&838+t>>13)&644
★
- One million alarm clocks (by Yehar)
t*t/(t>>12&t>>8)<<7
★
- by Xpansive
t%(t/(t>>9|t>>13))
- by Xpansive
t*(t>>8|t>>9)&46&t>>8^(t&t>>13|t>>6)
- Lost in Space
- C64 weird jumps (by Skurk)
t*(t>>(t&4096?t*t>>12:t>>12))|t<<(t>>8)|t>>4
- Oh the headaches (by Sub)
t>>5|(t<<3)+12*t*(t>>13|(t>>1|t>>10|t>>2)&t>>8)
- by Godinpants
t/3>>t%40+5|t/(24+t&3)>>t%(15-(t>>15)%8*6)+5
t/3>>1|t/2>>2&t/5>>7|t&31*t*(t>>8)
- Harmonics phone
t*(4+(t>>9)%3)&t/3>>7&224
- Explosions
t>>5|(t>>2)*(t>>5)
- Driving my 8 bit car (by Direm01)
0xCCDD*((t>>6)*t>>430)%0x1E3
★
- by Harism
3*((t>>1)+20)*t>>14*t>>18
- by [Deleted]
t%50.01+t%40.1+t%30.1+t%60.01
- "Harmony". Based off of mu6k's "Long Line Theory"
(((t&t*5)|t>>4)+(t|t>>4*t<<8-1))^t>>12
★ Wip
t/(t%(t>>8|t>>16))
★ Extremely loud grinding machine
t*t/(1+(t>>9&t>>8))&128
★ Everything is broken
t*((t/401)^(t/400))
- It wont stop
t*-(t>>8|t|t>>9|t>>13)^t
- Ststututterter
(t/91&t^t/90&t)-1
- Waiver
t*t/(t>>13^t>>8)
- Glissando
((t/4)>>t/4)|(t>>2)
- Plucker v2
- by noisebridge.net
t*(1+(t>>10)*(43+2*(t>>15-(t>>16)%13)%8)%8)*(1+(t>>14)%4)
11*(t*(1|(t>>10-(t>>17)%4)%8)&(8<<(t>>13)%4)*(1|(t>>15)%8))*(t>>10)
(t>>(t>>12)%4)+t*(1+(1+(t>>16)%6)*(t>>10)*(t>>11)%8)^t>>13^t>>6
(t*(t>>13|t>>8)|t>>16^t)-64
(~t>>2)*(2+(42&2*t*(7&t>>10))<(24&t*((3&t>>14)+2)))
(1+(t>>10)%7)*(t*(1+(t>>13)%4)%(24+9*(t>>14)%8)&16)*10
t*(3+(t>>10)%(4+(t>>11)%8))|t>>5
t^t>>4^(t*((t>>(11+(t>>16)%3))%16))^t*3
t<<3+(t>>10)%3^t>>4+(t>>12)%4^t**(2+(t>>13)%8)
- by 216
t*(t^t+(t>>15|1)^(t-1280^t)>>10)
- New Sawtooth Music (by Gabriel Miceli)
t*((t-2296&t)>>11)
- Triangle waves (by Ryg)
(t<<5)^-(t>>3&1)
- The general form is (t<<N)^-(t<<(N-8)&1)
(t<<4)^-(t>>4&1)
(t<<3)^-(t>>5&1)
- SIN non-math (by Erlehmann)
(t&15)*(0-t&15)*(((t&16)>>3)-1)*128/65+128
- [JS 8k] - JavaScript code playing with 8kHz sample rate
- No Limit (non-SIN version) (by Mu6k, Ryg)
128/(y=t&4095)*25+(x=t*(15&0x9866>>(t>>12&12))/6&127)*y/1E4+((t>>6^t>>8|t>>12|x)&63)
★
- by [Deleted]
w=[1,2,3,4,3,4,1][(t>>13)%7]*t,(w%50.01+w%40.1+w%30.1+w%60.01)
★ "Harmony v2". Based off of mu6k's "Long Line Theory"
a=[1,1,2,3,1,1,2,3,1,1,2,4,4,4,5,5,5][(t>>12)%17],b=[5,4,3,2][(t>>16)%4],(t*b/a)%50.1+(t*b/a)%50
- Array song
Math.sin(Math.sin(t/100)-t/((2+(t>>10&t>>12)%9)))*64+128
- Trill
- by Mu6k
u=10^(t>>15&7),u+=3,y=(t>>11&7)/u,f=t*8*y,z=(t*16/u)&0x63|f|f*1.01,z*2
★
- by Gabriel Miceli
d=t*465/(43+6*(t>>15&3^1)),((d/4&t>>6)+d/2&127)+(d/6&127)
★ Now this actually sounds pretty cool
d=t>>12&1,h=(t>>9)+4,(t*t*(t&255)*d/156+(t*(t^15)+t)*((h|t/2048+1&127)-h)/64&127-d*((t>>5&127)*2/3+32))
★ Crazy Groovy Beats 2
- Industrial chiptune (by Rez, Ryg)
t*(1+"4451"[t>>13&3]/10)&t>>9+(.003*t&3)
- ripthisentry.txt, tune#3 (by raphaelgoulart)
n=[1,0,1,0,2,2,1,0,1,0,2,2,1,0,2,2],freq=n[Math.floor(t/500)%16]*2,mod=t/15e3,Math.sin(t*freq/40.7+Math.sin(t*freq/40.7)*mod)*64+64
- Never Gonna Give You Up (by Gasman)
(t<<3)*[8/9,1,1.125,1.2,4/3,1.5,0][[0xd2d2c8,0xce4088,0xca32c8,0x8e4009][t>>14&3]>>3*(0x3dbe4688>>3*(9<(t>>10&15)?18:t>>10&15)&7)&7]
★
- Constructivist (by A1k0n)
SS=function(s,o,r,p){var c=s.charCodeAt((t>>r)%p);return c==95?0:31&t*Math.pow(2,c/12-o)},3*SS("0_0_____7_7_____037:<<",6,10,32)+5*(t&4096?SS("037",4,8,3)*(4096-(t&4095))>>12:0)
- Earl Grey Groove (by Savestate)
Toggle pretty code((
// abcdeghi is what bar you're currently on in the stepper, which is s.
// s rises very slowly relative to t. we set it to step 0-7 inclusive
// and for each step in the bars (0-7) we assign a letter variable to it
// to save space. This is the bass note layout for each bar.
(a = (s = Math.floor(t / 9600 % 8)) == 0) * (y = t * 2) * 1.5873 +
(b = (s == 1)) * y * (v = 1.4983) +
(c = (s == 2)) * y * v +
(d = (s == 3)) * y +
(e = (s == 4)) * y * 1.5873 +
(g = (s == 5)) * y * v +
(h = (s == 6)) * y +
(i = (s == 7)) * y
) % (m = 256) +
(
// u is an octave frequency, 4x the frequency of y (bass line) which is 2x the frequency of t (raw counter % 256)
// the constant multipliers above and below are derived from the formula
// as described on http://www.phy.mtu.edu/~suits/NoteFreqCalcs.html
// to solve for a note offset, plug a constant into the formula f/(12th root of 2)
// notice how we're using multiple bar identifier for the same notes.
// this is another code shrinker.
// also, v is = to 1.4983. I just used it so much
// in the song I replaced it with a variable.
(a | e) * (u = y * 4) * v +
u * (
(b | c | g | h) * 1.3348 +
d * 0.8908 +
i * 1.2599
)
// the above is equivalent to
// u*(
// (s == 0) * 1.4983 +
// (s == 1) * 1.3348 +
// (s == 2) * 1.3348 +
// (s == 3) * 0.8908 +
// (s == 4) * 1.4983 +
// (s == 5) * 1.3348 +
// (s == 6) * 1.3348 +
// (s == 7) * 1.2599
// )
) % m + (
u * (
i + (a | e) * 1.1892 +
(b | c | g | h) * 1.1224 +
d * v
)
) % m + (
u * (
(a | e) +
(b | g | h) * 0.8908 +
c * 0.9438 +
d * 1.1892 +
i * 0.7491
)
) % m + (
u * (
(a | e) * 0.7937 +
(b | c | g | h) * 0.7491 +
d / 2 + i * 0.627
)
) % m) / 8 * (
// now this is where the gating/chord groove happens
// during the duration of the 8 bars above, there's
// 96 steps. w represents each step as it occurs.
// as the number '1' is bitshifted through each set
// of hex numbers, if it lines up with another 1, it
// will activate the above chord to be played by
// evaluating to 1, otherwise, it will be zero and
// mute the above chords.
// I'm not doing any sort of fancy tempo changes for the groove
// er, i guess the best way to show how the groove works is with a
// pseudo tracker interface
// C-5 --
// --- --
// D-5 --
// C-5 --
// --- --
// D-5 --
// E-5 --
// --- --
// G-5 --
// manual swing i guess you can call it
(((w = Math.floor(t / 800 % 96)) < 32) * (1 << w & 0xC007307) +
(w >= 32 && w < 64) * (1 << w & 0x73070E70) +
(w > 64) * (1 << w & 0xE70C400)) != 0
) +
// noise generators
(t * Math.sin(t * Math.cos(t)) % 18 + 25) * ((1 << (t / 200 % 24) & 1052928) != 0) +
(t * Math.sin(t * Math.cos(t)) % 38 + 75) * ((1 << (t / 400 % 24) & 12288) != 0) +
(Math.tan(Math.sin(t * Math.cos(t))) * 32 + 74) * (t % Math.sin(t / 33) < Math.cos(0.032 * t)) * ((1 << (t / 400 % 24) & 1) != 0) +
// same concept as above, except they're running on much smaller loops.
// melody!
// manually changes the frequency based on what
// tick we're on (0-95)
// zero is considered to be off... but sometimes we need the root note,
// so we just use a number really close to zero! !! ! ! HAX
(Math.pow(1.059463, z = (
(w == 83 |
w == 77 |
w == 63 |
w == 35 |
w == 17 |
w == 51 |
w == 47 |
w == 9 |
w == 0 |
w == 30) * -5 +
(w == 3) * 0.1 +
(w == 41 | w == 6 | w == 74) * -2 +
(w == 72 |
w == 66 |
w == 80 |
w == 59 |
w == 62 |
w == 29 |
w == 18 |
w == 54 |
w == 15 |
w == 12) * -7 +
(w == 69 | w == 56 | w == 26 | w == 20 | w == 14) * -9 +
(w == 21) * -12 +
(w == 50 | w == 44 | w == 33) * -4 +
(w == 93) * -6
)) * u * 2) % m / 4 * (z != 0)
(((a=(s=Math.floor(t/9600%8))==0)*(y=t*2)*1.5873+(b=(s==1))*y*(v=1.4983)+(c=(s==2))*y*v+(d=(s==3))*y+(e=(s==4))*y*1.5873+(g=(s==5))*y*v+(h=(s==6))*y+(i=(s==7))*y)%(m=256)+((a|e)*(u=y*4)*v+u*((b|c|g|h)*1.3348+d*0.8908+i*1.2599))%m+(u*(i+(a|e)*1.1892+(b|c|g|h)*1.1224+d*v))%m+(u*((a|e)+(b|g|h)*0.8908+c*0.9438+d*1.1892+i*0.7491))%m+(u*((a|e)*0.7937+(b|c|g|h)*0.7491+d/2+i*0.627))%m)/8*((((w=Math.floor(t/800%96))<32)*(1<<w&0xC007307)+(w>=32&&w<64)*(1<<w&0x73070E70)+(w>64)*(1<<w&0xE70C400))!=0)+(t*Math.sin(t*Math.cos(t))%18+25)*((1<<(t/200%24)&1052928)!=0)+(t*Math.sin(t*Math.cos(t))%38+75)*((1<<(t/400%24)&12288)!=0)+(Math.tan(Math.sin(t*Math.cos(t)))*32+74)*(t%Math.sin(t/33)<Math.cos(0.032*t))*((1<<(t/400%24)&1)!=0)+(Math.pow(1.059463,z=((w==83|w==77|w==63|w==35|w==17|w==51|w==47|w==9|w==0|w==30)*-5+(w==3)*0.1+(w==41|w==6|w==74)*-2+(w==72|w==66|w==80|w==59|w==62|w==29|w==18|w==54|w==15|w==12)*-7+(w==69|w==56|w==26|w==20|w==14)*-9+(w==21)*-12+(w==50|w==44|w==33)*-4+(w==93)*-6))*u*2)%m/4*(z!=0)
★
- Longline Theory
Toggle pretty codeintro = ((sb = t > 0xffff) & 0),
background =
(((y = Math.pow(2, [15, 15, 23, 8][t >> 14 & 3] / 12)) & 0) + (
((y * t * 0.241) & 127 - 64) +
((y * t * 0.25) & 127 - 64)
) * 1.2),
drum = (
((a = 1 - (t & 0x7ff) / 0x7ff) & 0) +
(((5 * t & 0x7ff) * a) & 255 - 127) *
((0x53232323 >> (t >> 11 & 31)) & 1) * a * 1.0 +
(((d = (14 * t * t ^ t) & 0x7ff) * a) & 255 - 128) *
((0xa444c444 >> (t >> 11 & 31)) & 1) * a * 1.5 +
((a * a * d * (t >> 9 & 1) & 0xff - 0x80) * 0.1337)
) * sb,
instrument =
+((g = (t & 0x7ff) / 0x7ff) & 0) +
((g = 1 - (g * g)) & 0) +
((h = Math.pow(2, ([
[15, 18, 17, 17, 17, 17, 999, 999, 22, 22, 999, 18, 999, 15, 20, 22],
[20, 18, 17, 17, 10, 10, 999, 999, 20, 22, 20, 18, 17, 18, 17, 10]
][((t >> 14 & 3) > 2) & 1][t >> 10 & 15]) / 12)) & 0) +
((h * t & 31) + (h * t * 1.992 & 31) + (h * t * .497 & 31) + (h * t * 0.977 & 31) - 64) *
g * 2.0 * sb,
intro + Math.max(Math.min(instrument + background + drum, 127), -128)
((sb=t>0xffff)&0)+Math.max(Math.min(((y=Math.pow(2,[15,15,23,8][t>>14&3]/12))&0)+(((y*t*0.241)&127-64)+((y*t*0.25)&127-64))*1.2+(((a=1-(t&0x7ff)/0x7ff)&0)+(((5*t&0x7ff)*a)&255-127)*((0x53232323>>(t>>11&31))&1)*a*1.0+(((d=(14*t*t^t)&0x7ff)*a)&255-128)*((0xa444c444>>(t>>11&31))&1)*a*1.5+((a*a*d*(t>>9&1)&0xff-0x80)*0.1337))*sb+((g=(t&0x7ff)/0x7ff)&0)+((g=1-(g*g))&0)+((h=Math.pow(2,([[15,18,17,17,17,17,999,999,22,22,999,18,999,15,20,22],[20,18,17,17,10,10,999,999,20,22,20,18,17,18,17,10]][((t>>14&3)>2)&1][t>>10&15])/12))&0)+(((h*t&31)+(h*t*1.992&31)+(h*t*.497&31)+(h*t*0.977&31)-64))*g*2.0*sb,127),-128)
★ by Mu6k
w=t>>9,k=32,m=2048,a=1-t/m%1,d=(14*t*t^t)%m*a,y=[3,3,4.7,2][p=w/k&3]*t/4,h="IQNNNN!!]]!Q!IW]WQNN??!!W]WQNNN?".charCodeAt(w/2&15|p/3<<4)/33*t-t,s=y*.98%80+y%80+(w>>7&&a*((5*t%m*a&128)*(0x53232323>>w/4&1)+(d&127)*(0xa444c444>>w/4&1)*1.5+(d*w&1)+(h%k+h*1.99%k+h*.49%k+h*.97%k-64)*(4-a-a))),s*s>>14?127:s
★ 300b Information Theory (by Ryg, Las, Decipher, P01)
- G minor Bach, non-COS version (by Skurk)
30*t*Math.pow(2,"B*918/916-918/91B*918/916-918/91>*;2:1;26/;2:1;2>*;2:1;26/;2:1;2A*;291;28/;291;2A*;291;28/;291;2B*=-;,=-91=-;,=-B*=-;,=-91=-;,=-E*>6=4>692>6=4>6E*>6=4>692>6=4>6D*<3:1<380<3:1<3D*<3:1<380<3:1<3D(=4<3=481=4<3=4D(=4<3=481=4<3=4B(:18/:16.:18/:1B(:18/:16.:18/:1B&;2:1;26/;2:1;2B&;2:1;26/;2:1;2@&;,9*;,8/;,9*;,@&;,9*;,8/;,9*;,@%=-;,=-91=-;,=-@%=-;,=-91=-;,=->*=-;,=-92=-;,=->*=-;,=-92=-;,=->,8/6-8/428/6-8/>,8/6-8/428/6-8/=-412/4192412141=-412/4192412141;-6341613/634163;-6341613/634163;,8/6-8/528/6-8/;,8/6-8/528/6".charCodeAt(t>>9)/12-7)
★
- Rabid symphony (by Rabidcow)
t*Math.pow(2,("kotojokohogohotojokohogokokhpmjmjfokhomkjhggcckotojokohogohotojokohogokokhpmjmjfrmorokfjkkkkkkrpomkjkmokmpoprrjjkkoommoottqqhjkkjjhfecebccccccfffhihfdfcdahhhjkjhghegcmjcjmjpjojmjkhchkhohmhkhjhkhmhohphmhoomkjkhhhhhh".charCodeAt((t>>10)&255)-58)/12)*63>>6&132
- by Yehar
v=t/2^(t&64?63:0),v=v>>v,v/(1+(v>>7))&t/32|(t>>11)%8%3*t*t&15
- No 4
u=3*t>>t/4096%4&-t%(t>>16|16)*t>>14&8191,u/(u>>6|1)*4
- No 5
- by Tito
t>>10<<(t>>4)%([8,9,10,11][(t>>11)%4]-(t>>15)%4)
- Interleaved major scale with a rest after each note (by Suborg)
.35*t*("#\x0B;\x0B&\x0BA\x0B)\x0BG\x0B+\x0BK\x0B/\x0BS\x0B3\x0B[\x0B8\x0Be\x0B;\x0Bk\x0B".charCodeAt(t/1E3%32)-11)
- Fort Boyard (by Suborg)
.17*t*("33AAAAA\x0BAAKKKGGG;;A\x0BAK[KSSSSSSSS\x0B\x0B[\x0B[SSSKKGGG;;;GGA\x0BAK[KAAAAAAAA".charCodeAt(t/1800%64)-11)
★
- [High rate] - classic & JS code playing with high sample rate
- Last Palette (by Pigdevil2010)
(((t<<(4-(t*3>>13&1)))/("@Lf@DUfD".charCodeAt(t*3>>14&7))|(t*3>>9))&31)+
(((t<<(4-(t*3>>13&1)))/("3@L39DU93@L39D+9".charCodeAt(t*3>>14&15))|(t*3>>9))*(254>>(t*3>>20&7)&1)&31)+
(((t<<2)/("LL`rLL`U".charCodeAt(t*3>>18&7))|6)*(254>>(t*3>>21&7)&1)&31)+
(((t<<2)/("MMasMMaV".charCodeAt(t*3>>18&7))|6)*(254>>(t*3>>21&7)&1)&31)+
(((t<<4)/("3@Lf".charCodeAt(t>>11&3))|(-t*3>>12&7))*(22235>>(t*3>>14&15)&1)*(126>>(t*3>>21&7)&1)&15)+
((((t*t/21+t&(t>>3))|t*3>>9|t*3>>10)-((t*3>>16&1)*9))*(6>>(t*3>>22&3)&1)&63)+
(((t<<5)/("LLLD@DUfLLL3DD+933L3&+39@@f@DDUf".charCodeAt(t*3>>16&31))^(t*3>>11)|(t*3>>14&15))*(104>>(t*3>>21&7)&1)&31)+
(((t<<3)/("393+&+3@030&+33+&@3+ \"&+03@3+33@".charCodeAt(t*3>>16&31))^(-t*3>>11)|(-t*3>>14&15))*(104>>(t*3>>21&7)&1)&15)
44kHz ★
- Last Fountain (by Pigdevil2010)
s=(a,b,c)=>c/a.charCodeAt(b),d=a=>a&1?-1:1,e=(a,b)=>t>>22&1?b:a,b=a=>(s(a,r(t)+p*16,t<<2)*(254>>(t>>20&7)&1))&20,
p=178>>(t>>19&7)&1,q=a=>120>>(a>>20&7)&1?1:(-a>>16&1),r=a=>112>>(a>>20&7)&1?t>>14&15:(t>>17&1)*8,
l=" QQffQQLLLfLLDDQQQfff rrff``UU QQDDQQLLLfLLDD<<f333 r\x98rf`r`U <<<9<LUUU\x80U\x80UL[[rLLL rrff`frr <<<93U999`9U3+--9&&& rrff``UU",
b("rrLr99rrUUrU99rULLyL<<yy``\x80`@@\x80`")*2+b("qqKq88qqTTqT88qTKKxK;;xx__\x7f_??\x7f_")+
(s("rf[<r`L@\x98\x88yQ\x80fUL",(t&3)+(t>>17&1)*4+p*8,t<<2)&7)*(t*d(t>>16)>>12&15^e(0,5))*3/4+
((s("rf[L<9-\x1e&-3&-3-3\xab\x98\x90r`UH0+&9+&\x1d&+\x98\x88yfQL<(3<D3<3-(&09HL`ULU`r`UL@9",(t>>13&31)+p*32,t<<5-(t>>11&3))|t>>8)*q(t)&31)+
(((s(l,t>>14&127,t<<6)&s(l,t>>14&127,(t*e(89/88,499/498))<<6))*(63486>>(t>>15&15)&1)*(102>>(t>>20&7)&1))&e(42,32))+
((((253507989>>(t>>6&31))*(1>>(t>>11&3))*(19593>>(t>>13&15)&1)&1)*50)+
((((t*t/21+t&(t>>3))|t>>7|t>>8)-7)*(3>>(t>>11&3)&1)*(2450526224>>(t>>13&31)&1)&31)*5/2)*(112>>(t>>20&7)&1)
44kHz ★
- HITLER-CHANデートシム (by Jimmyoshi)
Toggle pretty code128 + a();
function a() {
k = 22050;
tk = ((t * 11.5 / k) & 0xFFFF) % 96;
return c(tk) + c(tk - 4) / 10 + (6 - tk % 6) * ((tk % 6 > 2 && tk % 6 < 4) ? (Math.random() * 128) : 0) / 24
}
function c(tk) {
o1 = d(b("000fffjj0ffhhh0jjjhh0ffff00aa0aa0ccddddff0cc0aa0000mm0mm0kkjjj0hh0ff0hh0000mm0mm0kk0jjjj00hhh000", tk));
o2 = d(b("NNN000000NNNIII000000IIIKKK000000KKKLLL000000LLLGGG000000GGGHHH000000HHHIII000000IIIAAA000000III", tk));
o3 = d(b("000R00000R00000P00000P00000N00000N00000R00000R00000N00000N00000R00000R00000P00000P00000M00000M00", tk) + 12);
return o1 + o2 + o3
}
function d(n) {
ff = Math.pow(2, n / 12) * 16.4;
q = k / ff;
return (n == 8 || n == 20) ? 0 : (t % q >= q / 2) ? 16 : -16
}
function b(s, p) {
return s.charCodeAt(p) - 40
}
22kHz
128+a();function a(){k=22050;tk=((t*11.5/k)&0xFFFF)%96;return c(tk)+c(tk-4)/10+(6-tk%6)*((tk%6>2&&tk%6<4)?(Math.random()*128):0)/24}function c(tk){o1=d(b("000fffjj0ffhhh0jjjhh0ffff00aa0aa0ccddddff0cc0aa0000mm0mm0kkjjj0hh0ff0hh0000mm0mm0kk0jjjj00hhh000",tk));o2=d(b("NNN000000NNNIII000000IIIKKK000000KKKLLL000000LLLGGG000000GGGHHH000000HHHIII000000IIIAAA000000III",tk));o3=d(b("000R00000R00000P00000P00000N00000N00000R00000R00000N00000N00000R00000R00000P00000P00000M00000M00",tk)+12);return o1+o2+o3}function d(n){ff=Math.pow(2,n/12)*16.4;q=k/ff;return (n==8||n==20)?0:(t%q>=q/2)?16:-16}function b(s,p){return s.charCodeAt(p)-40}
22kHz ★
- Bytebeat? How about bitbeat? (by Funute)
Toggle pretty codeS = 1.059463094,
P = Math.pow,
X = [
function(t) {
return t < 1e3 && (Math.sin(t * t) * 1e8 % 2 | 0 ? 1 : 3)
},
function(k, n, t) {
return l = 4410 / 44 / P(S, n), t % l > (l / 2 - t * l * k) ? 1 : 3
},
function(f, a, s, n, t) {
return m = t % 5292 / 882 | 0, k = m % 3, z = (a & (0xf00 >> (4 * k))) >> (8 - 4 * k), (!s || m % 2) && f(n + z, t)
}
],
Y = [
function(t) {
return t < 1e3 && (k = 299 / (t + 1), k - (k | 0) > .5 ? 1 : 3)
},
0,
X[0],
X[2].bind(this, X[1].bind(this, 7e-5)),
function(t, f) {
return t < 2400 && (p = P(t + 1, .8), t < 200 || t > 900 ? X[0](p) : (p / 27 | 0) % 2 ? 1 : 3)
}
],
Z = [
function() {
return 0
},
function(s, n, t) {
return l = 4410 / 44 / P(S, n), k = (t % (l * 8) / l) | 0, (!s || t / 882 % 3 | 0) && (((k == 1) ^ !!(k & 2)) ? 1 : 3)
},
Y[3].bind(this, 89),
Y[3].bind(this, 71)
],
A = t % 6800,
B = t / 6800 | 0,
C = B % 320,
M = parseInt('68a68f00dba0ab0068a68f0hf0fdbdb080868bb0000068b080868d0bdbdf0d0068a68f00dba0ab0068a68f0hf0fdbdb080868bb0000068b080868d0bdbdfdfg0d0dbdg000000bdgdgi0gik0ikigdb86080680400000068b8bd00bdg6600g0dg0d0dbdg000000bdgdgi0gik0ikigdbdg0i0gi0d000000bdg0d0gdbd0gdb8641'[C - 66] || 0, 36),
96 + 16 * (
Y[B & 3 ? 2 : B & 4](A) ||
Z['1120320312032011' [B % 16]](M, '24222222422222420022222222222202' [B % 32] - 2 + 5 * (C > 191) || 0, A) ||
(M ? X[1](0, M - 6, t) : 1)
)
44kHz
S=1.059463094,P=Math.pow,X=[function(t){return t<1E3&&(Math.sin(t*t)*1E8%2|0?1:3)},function(k,n,t){return l=4410/44/P(S,n),t%l>l/2-t*l*k?1:3},function(f,a,s,n,t){return m=t%5292/882|0,k=m%3,z=(a&3840>>4*k)>>8-4*k,(!s||m%2)&&f(n+z,t)}],Y=[function(t){return t<1E3&&(k=299/(t+1),k-(k|0)>.5?1:3)},0,X[0],X[2].bind(this,X[1].bind(this,7E-5)),function(t,f){return t<2400&&(p=P(t+1,.8),t<200||t>900?X[0](p):(p/27|0)%2?1:3)}],Z=[function(){return 0},function(s,n,t){return l=4410/44/P(S,n),k=t%(l*8)/l|0,(!s||t/882%3|0)&&(k==1^!!(k&2)?1:3)},Y[3].bind(this,89),Y[3].bind(this,71)],A=t%6800,B=t/6800|0,C=B%320,M=parseInt("68a68f00dba0ab0068a68f0hf0fdbdb080868bb0000068b080868d0bdbdf0d0068a68f00dba0ab0068a68f0hf0fdbdb080868bb0000068b080868d0bdbdfdfg0d0dbdg000000bdgdgi0gik0ikigdb86080680400000068b8bd00bdg6600g0dg0d0dbdg000000bdgdgi0gik0ikigdbdg0i0gi0d000000bdg0d0gdbd0gdb8641"[C-66]||0,36),96+16*(Y[B&3?2:B&4](A)||Z["1120320312032011"[B%16]](M,"24222222422222420022222222222202"[B%32]-2+5*(C>191)||0,A)||(M?X[1](0,M-6,t):1));
44kHz ★
- Bloop factory (by Funute)
Z=Math.floor,P=Math.pow,T=Math.sin,I=parseInt,S=[0,2,4,7,9,5,6,19,12,1],B=[0,4,5,4,0,-4,-5,-7],n=function(c,e){return 127*P(T(c*P(1.05946,e)/15.9517),3)},r=function(c){return I(T(c).toString(16).substring(7,9)||0,16)-128},X=function(c){return I(T(c+.1).toFixed(6)[5])},a=function(c,e){return c*e},d=5E3,b=Z(t/d),p=1-t%d/d,W=2*d,Y=Z(b/2),L=Math.max(t-3*d,0),C=Z(L/W),F=1-L%W/W,N=B[Z(Y/16)%8],G=4*d,R=P(1-t%G/G,3),a(r(t),P(p/2,3)+P(2==b%4&&p,.5)/7)+a(n(t,S[X(Y%4+Z(Y/16))]+N),(1-t%W/W)/4)+a(n(L,S[X(C%4+Z(C/16))]+B[Z(C/16)%8]),F/16)+a(0<T(99*R)?19:-19,R)+a(r(Z(t/4)),Z(t/G)%2&&R/4)+a(n(t,N-48),.25)+128
44kHz ★
- ripthisentry.txt (by raphaelgoulart)
t=t/8,b=t/1250,f=Math.floor(b%64),g=Math.floor(b/4%16),d=1.12,n=[1,1,1,d,d,d,d,d,.94,.94,.94,1.26,1.26,1.26,1.26,1.26,.84,.84,.84,.94,.94,.94,.94,1.26,1.26,1.26,1.26,1.26,d,d,d,d,.84,.84,.84,d,d,d,d,d,.94,.94,.94,1.26,1.26,1.26,1.26,1.26,1,1,1,d,d,d,d,1.5,1.5,1.5,1.5,1.5,1.5,1.5,1.5,1.5],n1=[1,1.26,1.89,1.68,1.68,1.5,1.5,1.4,.94,d,1.68,1.5,1.5,1.4,1.26,d,1.26,1.4,1.26,1.19,1.19,1.26,1.4,1.5,1.5,1.5,1.5,1.5,0,1.4,1.26,d,1,1.26,1.89,1.68,1.68,2.24,2.24,2.52,2.38,1.89,1.4,1.5,1.5,1.4,1.26,d,1.26,1.4,1.26,d,d,1.26,1.4,1.5,1.5,1.5,1.5,1.5,1.5,1.5,0,0],n2=[1.5,1.4,1.68,1.5,1.26,1.68,1.5,1.4,1.26,1.41,1.68,1.5,1.26,1.4,1.5,1.5],n3=[1.26,d,d,0.94,.94,1.19,.94,.94,.94,d,1.19,.94,.94,d,.94,.94],f1=n[f]*2,f2=n1[f]*16,f3=n2[g]*8,f13=n3[g]*16,t*f1/(256/32)%32+Math.abs(32-t*(f2/(256/32))%32*2)+t*f3/(256/8)%8+t*f13/(256/8)%8
44kHz ★
- 1k dance (by raphaelgoulart)
Toggle pretty codez=40.7,b=t/2250,r=Math.floor(b),y=r%16,
a=[1,2,1,2,1.2,2.4,1.2,2.4,1.33,2.67,1.33,2.67,1.5,3,1.5,3][y],
c=r%64>1&&r%64<33,o=c?1.19:1.5,
n=[0,0,2.38,2.67,2.38,0,2,2.24,0,2.38,0,2.24,0,1.78,0,2,2,2,1,1.19,1.5,0,1.19,1.33,0,1.19,0,c?1.12:1.33,0,o,o,o],
x=Math.floor(r/4)%4,d=[12,12,10.67,12][x],g=[9.52,9.52,8,8.96][x],h=[8,7.12,6.72,7.52][x],v=(b*2%4)*1.25,
w=Math.floor(y/12),u=Math.floor(r/16)%4,
j=[[19.04,17.92],[14.24,9.52],[10.64,12],[8,0]],
Math.sin(t*(1/(z))+Math.sin(t*(1.125)/z)*7*(1-b*2%4>0?1-b*2%4:0))*(40-b*15%30)+40+
(b<16?0:Math.random()*(r%4==2?(32-(b*32%32)):0))+
(b<32?0:Math.random()*(16-(b*28%28<16?b*28%28:16)))+
(b<64?0:Math.sin(t*(a/z)+Math.sin(t*(a)/z)*4*(1-b%1))*32+32)+
(b<96?0:Math.sin(t*d/z+Math.sin(t*d/z)*(0+(b*1.5%3)))*v+5)+
(b<96?0:Math.sin(t*g/z+Math.sin(t*g/z)*(0+(b*1.5%3)))*v+5)+
(b<96?0:Math.sin(t*h/z+Math.sin(t*h/z)*(0+(b*1.5%3)))*v+5)+
(b<128?0:t*n[r%32]*8%256>121+Math.abs(108-(b*56%224))?20:0)+
(b<129?0:t*n[(r-1)%32]*7.98%256>121+Math.abs(108-(b*56%224))?7:0)+
(b<192?0:Math.sin(t*(j[u][w]/z)+Math.sin(t*(j[u][w]*2)/z)*4*(y<2||y>=12&y<14?1-b/2%1:0))*(5.3-y/3%4)+5.3)
11kHz
z=40.7,b=t/2250,r=Math.floor(b),y=r%16,a=[1,2,1,2,1.2,2.4,1.2,2.4,1.33,2.67,1.33,2.67,1.5,3,1.5,3][y],c=r%64>1&&r%64<33,o=c?1.19:1.5,n=[0,0,2.38,2.67,2.38,0,2,2.24,0,2.38,0,2.24,0,1.78,0,2,2,2,1,1.19,1.5,0,1.19,1.33,0,1.19,0,c?1.12:1.33,0,o,o,o],x=Math.floor(r/4)%4,d=[12,12,10.67,12][x],g=[9.52,9.52,8,8.96][x],h=[8,7.12,6.72,7.52][x],v=(b*2%4)*1.25,w=Math.floor(y/12),u=Math.floor(r/16)%4,j=[[19.04,17.92],[14.24,9.52],[10.64,12],[8,0]],Math.sin(t*(1/(z))+Math.sin(t*(1.125)/z)*7*(1-b*2%4>0?1-b*2%4:0))*(40-b*15%30)+40+(b<16?0:Math.random()*(r%4==2?(32-(b*32%32)):0))+(b<32?0:Math.random()*(16-(b*28%28<16?b*28%28:16)))+(b<64?0:Math.sin(t*(a/z)+Math.sin(t*(a)/z)*4*(1-b%1))*32+32)+(b<96?0:Math.sin(t*d/z+Math.sin(t*d/z)*(0+(b*1.5%3)))*v+5)+(b<96?0:Math.sin(t*g/z+Math.sin(t*g/z)*(0+(b*1.5%3)))*v+5)+(b<96?0:Math.sin(t*h/z+Math.sin(t*h/z)*(0+(b*1.5%3)))*v+5)+(b<128?0:t*n[r%32]*8%256>121+Math.abs(108-(b*56%224))?20:0)+(b<129?0:t*n[(r-1)%32]*7.98%256>121+Math.abs(108-(b*56%224))?7:0)+(b<192?0:Math.sin(t*(j[u][w]/z)+Math.sin(t*(j[u][w]*2)/z)*4*(y<2||y>=12&y<14?1-b/2%1:0))*(5.3-y/3%4)+5.3)
11kHz ★
- happybeat (by Yung Gotenks)
Toggle pretty codeG1=0.75,
A1=0.84,
B1=0.94,
C2=1,
D2=1.12,
E2=1.26,
F2=1.33,
G2=1.5,
A2=1.68,
B2=1.89,
C3=2,
E3=2.52,
RE=0,
tfix=t/4,
b=tfix/2350,
r=Math.floor(b),y=r%16,
//a=bass
a=[C2, C2, RE, C2, RE, C2, RE, G1, C2, C2, RE, C2, RE, C2, RE, D2,][r%16],
//j=arp
j=[C3, G2, E2, C2, C3, G2, E2, C2, C3, G2, E2, C2, C3, G2, E2, C2,
A2, F2, C2, A1, A2, F2, C2, A1, B2, G2, D2, B1, B2, G2, D2, B1],
//je=arp echo
je=[B1, C3, G2, E2, C2, C3, G2, E2, C2, C3, G2, E2, C2, C3, G2, E2, C2,
A2, F2, C2, A1, A2, F2, C2, A1, B2, G2, D2, B1, B2, G2, D2,],
//melody
mel=[RE, RE, E2, RE, F2, G2, G1, C2, RE, RE, D2, C2, RE, RE, RE, RE,
RE, RE, G2, F2, G2, A2, RE, G1, C2, C2, D2, C2, RE, RE, RE, RE,
RE, RE, E2, RE, F2, G2, G1, C2, RE, RE, D2, C2, RE, RE, RE, RE,
RE, RE, G2, G2, A2, G2, A2, RE, C3, G2, C3, RE, RE, RE, RE],
//melody echo
melecho=[RE, RE, RE, E2, RE, F2, G2, G1, C2, RE, RE, D2, C2, RE, RE, RE, RE,
RE, RE, G2, F2, G2, A2, RE, G1, C2, C2, D2, C2, RE, RE, RE, RE,
RE, RE, E2, RE, F2, G2, G1, C2, RE, RE, D2, C2, RE, RE, RE, RE,
RE, RE, G2, G2, A2, G2, A2, RE, C3, G2, C3, RE, RE, RE, RE],
z=27.1,
(b<64?0:Math.sin(tfix*(a/z)+Math.sin(tfix*(a)/z)*4*(2-b%2))*32+32)+
(b<0?0:tfix*j[r%32]*8%172>80+Math.abs(05-(b*24%12))?20:0)+
(b<0?0:tfix*je[r%32]*8%172>80+Math.abs(05-(b*24%12))?10:0)+
(b<32?0:Math.sin(tfix*(1/(z))+Math.sin(tfix*(A1)/z)*7*(1-b*2%4>0?1-b*2%4:0))*(40-b*15%30)+40)+
(b<96?0:Math.random()*(24-(b*28%28)))+
(b<96?0:Math.random()*(r%4==2?(38-(b*32%32)):0))+
(b<128?0:tfix*mel[r%64]*8%172>80+Math.abs(05-(b*84%84))?40:0)+
(b<128?0:tfix*melecho[r%64]*8%172>80+Math.abs(05-(b*84%84))?10:0)
44kHz
G1=0.75,A1=0.84,B1=0.94,C2=1,D2=1.12,E2=1.26,F2=1.33,G2=1.5,A2=1.68,B2=1.89,C3=2,E3=2.52,RE=0,tfix=t/4,b=tfix/2350,r=Math.floor(b),y=r%16,a=[C2,C2,RE,C2,RE,C2,RE,G1,C2,C2,RE,C2,RE,C2,RE,D2,][r%16],j=[C3,G2,E2,C2,C3,G2,E2,C2,C3,G2,E2,C2,C3,G2,E2,C2,A2,F2,C2,A1,A2,F2,C2,A1,B2,G2,D2,B1,B2,G2,D2,B1],je=[B1,C3,G2,E2,C2,C3,G2,E2,C2,C3,G2,E2,C2,C3,G2,E2,C2,A2,F2,C2,A1,A2,F2,C2,A1,B2,G2,D2,B1,B2,G2,D2,],mel=[RE,RE,E2,RE,F2,G2,G1,C2,RE,RE,D2,C2,RE,RE,RE,RE,RE,RE,G2,F2,G2,A2,RE,G1,C2,C2,D2,C2,RE,RE,RE,RE,RE,RE,E2,RE,F2,G2,G1,C2,RE,RE,D2,C2,RE,RE,RE,RE,RE,RE,G2,G2,A2,G2,A2,RE,C3,G2,C3,RE,RE,RE,RE],melecho=[RE,RE,RE,E2,RE,F2,G2,G1,C2,RE,RE,D2,C2,RE,RE,RE,RE,RE,RE,G2,F2,G2,A2,RE,G1,C2,C2,D2,C2,RE,RE,RE,RE,RE,RE,E2,RE,F2,G2,G1,C2,RE,RE,D2,C2,RE,RE,RE,RE,RE,RE,G2,G2,A2,G2,A2,RE,C3,G2,C3,RE,RE,RE,RE],z=27.1,(b<64?0:Math.sin(tfix*(a/z)+Math.sin(tfix*(a)/z)*4*(2-b%2))*32+32)+(b<0?0:tfix*j[r%32]*8%172>80+Math.abs(05-(b*24%12))?20:0)+(b<0?0:tfix*je[r%32]*8%172>80+Math.abs(05-(b*24%12))?10:0)+(b<32?0:Math.sin(tfix*(1/(z))+Math.sin(tfix*(A1)/z)*7*(1-b*2%4>0?1-b*2%4:0))*(40-b*15%30)+40)+(b<96?0:Math.random()*(24-(b*28%28)))+(b<96?0:Math.random()*(r%4==2?(38-(b*32%32)):0))+(b<128?0:tfix*mel[r%64]*8%172>80+Math.abs(05-(b*84%84))?40:0)+(b<128?0:tfix*melecho[r%64]*8%172>80+Math.abs(05-(b*84%84))?10:0)
44kHz ★
- 347 BEATSTEP INC. (by mega9man)
128+Math.sin(t/24*((t>>10)&42)+1*Math.sin(t/64*(t/1>>15)&21))*24+(Math.sin(t*1/3/4*1+4*Math.sin(t*1/6/4*1))*((t>>11)&1))*16+(Math.sin(t*1/6/4*1+4*Math.sin(t*1/12/4*1))*((t>>10)&1))*16+((3e3/(y=t*4&16383))&1)*56+((3e2/(y=t*32&28600))&1)*56+Math.sin(t/16*((t>>10)&42)+1*Math.sin(t/64*(t/1>>7)&8))*12
11kHz ★
- Drone Choords (by LJ)
((Math.abs(t*(.02+(t*.0001&0x4)*.01)*(1+((t*.0001)%4)<<5)%0xFF-0x80))&0xFF)+
(t%100)*.3*Math.abs(Math.sin(t*.00005)*.25+.5)+Math.min(Math.max((t>>16)-2,0)*.5,1)*(t*.1&0xF)*(t*.01&0xFF)/0x70
32kHz
- by Ryg
t*("36364689"[t>>13&7]&15)/12&128
44kHz
(t*("36364689"[t>>13&7]&15)/12&128)+(((t>>12^(t>>12)-2)%11*t/4|t>>13)&127)
44kHz ★
- No Limit (by Mu6k)
35*(3E3/(y=t&16383)&1)+(x=t*"6689"[t>>16&3]/24&127)*y/4E4+((t>>8^t>>10|t>>14|x)&63)
32kHz
- Good old fractal melody (by Blueberry)
(t>>9^(t>>9)-1^1)%13*t
11kHz
- by Gabriel Miceli
i=t&8191,(((t*((t>>9^((t>>9)-1)^1)%13)&255)/2)+((((t>>3|t<<(t>>12&2))*(i<4096)+(t>>4|t*(t^t+t/256))*(i>4095)))&255)/2)*(2+(t>>16))
11kHz ★ Noise Maker
(((t/10|0)^(t/10|0)-1280)%11*t/2&127)+(((t/640|0)^(t/640|0)-2)%13*t/2&127)
11kHz - Techno
a=t-2048,((t&t>>6)&(t*(t>>((t&65535)>>12))))+((t*3/4&t>>12)&127)+(t*(a>>7&a>>8&a>>9&16)>>t/64)
32kHz - Crazy Groovy Beats
d=(t*(t&t>>12)*8/11025)|0,((d&16)/8-1)*(d*(d^15)+d+127)
44kHz - Crude Sinevawe Dubstep
- Chip arpeggio that eats itself (by Kb_)
((t>>1)*(15&0x234568a0>>(t>>8&28))|t>>1>>(t>>11)^t>>12)+(t>>4&t&24)
44kHz
- [SthephanShi] - classic 8kHz formulas I discovered
- Explosive beat
- Formulas family discovered by experimenting with "Explosions" [(t>>2)*(t>>5)|t>>5
]
(t>>4)*(t>>3)|t>>2
(t>>4)*(t>>3)|t>>3
(t>>4)*(t>>3)|t>>4
(t>>4)*(t>>3)|t>>(t&4096?3:2)
★ "Explosive beat". Obtained from combining the first two formulas
(t>>4)*(t>>2)|t>>(t>>12)%4
- "M-m-multiple explosion beat"
(t>>5)*(t>>5)|t>>2
- "Diesel engine"
- Robocop
- Cool beat discovered by experimenting with [(t>>2)*(t&16)|t>>2
]
(t>>2)*(t&(t&32768?16:24)|t>>(t>>8&28))|t>>2
★ "Robocop". Very cool sound with biting blows
(t>>3)*(t&(t&32768?16:24)|t>>(t>>8&28))|t>>2
- Lower bass
(t>>2)*(t&(t&32768?16:24)|t>>(t>>8&24))|t>>3
- Slower tempo
- Trance beat
- Experiments with t>>N and ternary operations
t>>(t%16?4:6)|t>>(t%128?10:4)
t>>(t%32?4:3)|(t%128?t>>3:t>>3|t>>9)
- Toy phone
- Interesting formulas, sounds very similar to children's toys
t*((t>>10|t%16*t>>5)&8*t>>10&18)
- Someone is calling by phone
t*((t>>10|t%16*t>>5)&8*t>>12&18)
★ Very funny voice :)
t*((t>>10|t%16*t>>8)&8*t>>12&18)
- I hear the long mewing of a cat :)
- Cat-girl
17*t|(t>>2)+(t&32768?13:14)*t|t>>3|t>>5
★ Nya!
- Kachelki
t>>9&2*t&10*t|t>>5&6*t
★ Cool happy tune
- Brain burner
129*t%(t>>7)
- RIP headphone users!
- Psychedelica
t^t%1001+t^t%1002
- Experimenting with resonance
- Protoss engine
2*(-t%128|t%130)
- Experimenting with resonance, a pretty hypnotic result
- Harmonics
t<<2^t>>4^t<<4&t>>8|t<<1&-t>>4
- Bass beat + lead
15-t%(t&16384?26:29)&t>>4|t<<1&-t>>4
- Arabic beat
t%((t&-16|t>>10)&42)<<2|t>>4
t%((t&-16|t>>11)&42)<<2|t>>4
- Allahu akbar!
- Boss level / Running aliens
- Series of formulas discovered by experimenting with "Running man" t*(3+(1^5&t>>10))*(5+(3&t>>14))>>(3&t>>8)
- Allows to get different interesting chiptune sounds
t*(2-(1&-t>>11))*(5+(3&t>>14))>>(3&t>>8)
- Let replace (3+(1^5&t>>10)) with (2-(1&-t>>11))
t*(2-(1&-t>>11))*(5+(3&t>>14))>>(3&t>>8)|t>>2
- And just add |t>>2... The tune became cleaner
t*(2-(1&-t>>11))*(5+(2&t>>14))>>(3&t>>8)|t>>2
- Replacing 3&t>>14 with 2&t>>14 changes the period and the second tone
t*(2-(1&-t>>11))*(5+(2&t>>14))>>(3&t>>8)|t>>3
★ "Boss level". Slow down |t>>2 rhythm to |t>>3... Sounds dangerous!
t*(t&16384?6:5)*(1+(1&t>>12))>>(3&t>>8)|t>>3
- By playing with the "Boss level" I made a different percussion
t*(t&16384?6:5)*(1+(1&t>>12))>>(3&t>>8)|t>>4
- "Boss level #2". |t>>4 rhythm sounds cool!
t*(t&16384?6:5)*(3+(1&t>>8))>>(3&t>>8)|t>>4
- Replacing (1+(1&t>>12)) with 3+(1&t>>8) adds an awesome harmonics
t*(t&16384?6:5)*(4-(1&t>>8))>>(3&t>>8)|t>>4
- Coefficients 4-/3-/2+/3+ can slightly change them
t*(t&16384?6:5)*(4-(1&t>>8))>>(3&t>>8)|t>>(t&4096?3:4)
- We can use a ternary operation for more complicated beat
t*(t&16384?6:5)*(3-(1&t>>8))>>(3&t>>9)|t>>4
★ "Aliens on approach". Slow down the explosions to 3&t>>9, get a heavy chiptune beat
t*(t&16384?6:5)*(3+(1&t>>8))>>(3&t>>9)|t>>5
★ "Aliens are close". t>>5 rhythm
t*(t&16384?6:5)*(4-(1&t>>8))>>(3&t>>9)|t>>6
★ "Aliens are here". t>>6 rhythm - SUPER POWERFUL ECHOES
t*(t&16384?6:5)*(4-(1&t>>8))>>(3&-t>>9)|t>>6
- Inverted explosions give us mysterious sounds
t*(t&16384?6:5)*(4-(1&t>>8))>>(3&t>>9)|(t|t*3)>>5
★ "Aliens attack". More complicated (t|t*3)>>5 rhythm with explosion drums. Cool!
t*(t&16384?6:5)*(4-(1&t>>8))>>(3&t>>9)|t>>(t&4096?3:4)
★ "Aliens encounter". Replacing the rhythm with a ternary gives an EXTRA HARD BEAT!
t*(t&16384?6:5)*(3+(3&t>>7))>>(3&t>>9)|t>>(t&4096?3:4)
- Funny inverted sounds :D
t*(t&16384?6:5)*(4-(1&t>>8))>>(3&-t>>15)|t>>(t&4096?3:4)
★ "Prepare to fight". Long period formula with increasing from low to high sound
2*t*(t&16384?6:5)*(4-(3&t>>8))>>(3&-t>>15)|t>>(t&4096?3:4)
★ "Prepare to fight #2". Previous formula with doubled freqency bass
Suddenly I discovered that replacing 3&t>>9 with 3&t>>2 in "Aliens encounter" gives a noise sound.
This is an excellent instrument for drums. For example, a ternary 3&t>>(t&4096?2:9)
t*(t&16384?6:5)*(4-(1&t>>8))>>(3&t>>(t&4096?2:9))|t>>(t&4096?3:4)
★ "Aliens encounter + drums". Impressive sound!
2*t*(t&16384?6:5)*(4-(3&t>>8))>>(3&-t>>(t&4096?2:15))|t>>(t&4096?3:4)
★ "Prepare to fight #2 + drums"
Finally you can use complex ternary operators to create more complex drums:
2*t*(t&16384?6:5)*(4-(3&t>>8))>>(3&-t>>(t&4096?2:15))|t>>(t&8192?t&4096?4:5:3)
★ "Ready to fight?". Cool for a fighting game :)
t*(t&16384?7:5)*(5-(3&t>>8))>>(3&-t>>(t&4096?2:16))|t>>(t&16384?t&4096?3:4:3)
★ "Aliens won". Playing with coefficients. My favorite!
Fantastic! Let's continue our experiments:
t*(t&16384?6:5)*(1+(3&t>>10))>>(3&t>>8)|t>>2
- "Boss level #2" variation with (1+(3&t>>10)) expression and t>>2 rhythm
t*(t&16384?6:5)*(1+(3&t>>(t&2048?4:10)))>>(3&t>>8)|t>>2
★ "Another level". Adding a noise beat by using ternary opertion
t*(t&16384?6:5)*(2+(3&t>>(t&2048?4:9)))>>(3&t>>8)|t>>2
- "Happy level". Previous formula with slightly changed coefficitnts
t*(t&16384?6:5)*(2+(3&t>>9))>>(3&-t>>8)|t>>4
- "Happy level #2". Inverted 3&-t>>8 gives a more happy tune :)
t*(t&16384?6:5)*(2+(3&-t>>9))>>(3&t>>8)|t>>4
★ "Happy level #3". We can get an awesome harmonics with 3&-t>>9
t*(t&16384?6:5)*(2+(3&t>>11))>>(3&-t>>8)|t>>4
- "Happy level #2 + t>>11"
t*(t&16384?6:5)*(3+(3&t>>(t&2048?7:14)))>>(3&t>>9)|t>>2
★ "Awesome level". We can get a cool cartoon-game melody!
t*(t&16384?7:5)*(3+(3&t>>14))>>(3&t>>9)|t>>6
★ "Alien dungeon". So sinister.. t>>6 gives a fading effect
t*(t&16384?7:5)*(3+(3&t>>14))>>(3&t>>9)|(t|t*3)>>5
- "Alien dungeon" with a complicated rhytm (t|t*3)>>5
t*(t&16384?7:5)*(4-(3&t>>14))>>(3&t>>9)|(t|t*3)>>5
- Previous with a slightly different tune
Other "Boss level" variations:
t*(6+(1&t>>14))>>(3&t>>8)|t>>(t&4096?3:4)
t*(6+(1&t>>14))>>(3&t>>8)|2*t>>(t&4096?3:4)
★ Previous tune with doubled drums
t*(16+(1&t>>14))>>(3&t>>8)|t>>4
t*((t&4096?6:16)+(1&t>>14))>>(3&t>>8)|t>>(t&4096?3:4)
★ Previous tune with a ternary magic