Waveform Collection

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.

8000hz

Sawtooth (t)
Square (t&128)
Sine (sin(t*PI/128)*127+127)
Fake sine ((t&15)*(0-t&15)*(((t&16)>>3)-1)*128/65+128)
Warning: Recommended to divide t by 8 before using. (I have done it in this example)
Triangle (t>>8&1?t:~t)
Fake triangle ((t<<1)^-(t>>7&1))
Atari thingy ('01110010001010111101101001100000'[(t>>4)%32]*255)
Minimal Sierpinski harmony (t&t>>8)
Left shift (t<<t)
Warning: Recommended to divide t by 4 (or 8) before using. (I have done it in this example)
Right shift (t>>t)
Warning: Recommended to divide t by 4 (or 8) before using. (I have done it in this example)
Pseudo PWM (t&(t>>7)-t)
Long-line Theory Lead (t%32+t*1.99%32+t*.49%32+t*.97%32-64) [Signed Bytebeat]
Warning: Recommended to divide t by 8 before using. (I have done it in this example)
Harmony (t%50.01+t%40.1+t%30.1+t%60.01+31) [Off-tune]
Warning: Recommended to divide t by 4 before using. (I have done it in this example)
PWM (Warping Timeline) (t%256>[abs((t>>8)%256-128)+64]?16*random():~(16*random()))

32000hz

Cool waveform i guess (first one) (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)
Cool waveform i guess (second one) (128*abs(1-abs(.5+cos(t/64.25))**.3)**(1-abs(1-abs(.5-sin(t/63.75))**.5))+32)
Still Don't Know The Name ((t%255+t%128+t%64+t%32+t%16+t%127.8+t%64.8+t%32.8+t%16.8)/3)
The synth from synth in the emptiness ((t%64+t%63.8+t%64.15+t%64.35+t%63.5)/1.25)
Warning: Recommended to divide t by 4 before using. (I have done it in this example)
Triangle Wave Synth (With Vibrato) ((sin(t/40)>0.5)?t:-t)
Wow, Pizza ((t^t/2+t+64*(sin((t*PI/64)+(t*PI/32768))+64))%128*2)

44100hz

o$c1ll4tör (remix) (127*sin(t/20.5)&63*cos(t/27.25)) [Signed Bytebeat]

48000hz

some waveform (sin(sin(sin(sin(sin(sin(cos(sin(t*PI/128)*4)))*2)-t/8192)+t/16384))) [Floatbeat]

Using them with a function

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),


Back