Here's a bunch of waveforms I discovered/found. I will be using "the 42 melody" (t*(42&t>>10)
) as an example.
t
= a sawtooth wave
Disclaimer: some of these audios are loud.
t
)t&128
)sin(t*PI/128)*127+127
) (t&15)*(0-t&15)*(((t&16)>>3)-1)*128/65+128
)t
by 8 before using. (I have done it in this example)t>>8&1?t:~t
)(t<<1)^-(t>>7&1)
)'01110010001010111101101001100000'[(t>>4)%32]*255
)t&t>>8
)t<<t
)t
by 4 (or 8) before using. (I have done it in this example)t>>t
)t
by 4 (or 8) before using. (I have done it in this example)t&(t>>7)-t
)t%32+t*1.99%32+t*.49%32+t*.97%32-64
) [Signed Bytebeat]t
by 8 before using. (I have done it in this example)t%50.01+t%40.1+t%30.1+t%60.01+31
) [Off-tune]t
by 4 before using. (I have done it in this example)t%256>[abs((t>>8)%256-128)+64]?16*random():~(16*random())
)80*(abs(1-abs(.5+cos(t/64.25))**.3)+abs(.35-abs(5.5+cos(t/64.5))**.5))**(1-abs(1-abs(.5-sin(t/63.75))**.5+1-abs(2.1-abs(2.3-sin(t/96))**.75)))+15
)128*abs(1-abs(.5+cos(t/64.25))**.3)**(1-abs(1-abs(.5-sin(t/63.75))**.5))+32
)(t%255+t%128+t%64+t%32+t%16+t%127.8+t%64.8+t%32.8+t%16.8)/3
)(t%64+t%63.8+t%64.15+t%64.35+t%63.5)/1.25
)t
by 4 before using. (I have done it in this example)(sin(t/40)>0.5)?t:-t
)(t^t/2+t+64*(sin((t*PI/64)+(t*PI/32768))+64))%128*2
)127*sin(t/20.5)&63*cos(t/27.25)
) [Signed Bytebeat]sin(sin(sin(sin(sin(sin(cos(sin(t*PI/128)*4)))*2)-t/8192)+t/16384))
) [Floatbeat]It's fairly easy. Add this into your bytebeat expression: x=t=>(y),
where x
can be anything (presumably any 1 letter) and y
is the waveform you want. The parenthesis are necessary only if the function won't work without them.
You can then use them like this: x(y)
where x
is the function name you used and y
is anything (presumably a sawtooth wave)
Triangle wave example: trng=t=>(t<<1)^-(t>>7&1),