So I just figured out how to use another thing correctly: sin()! I realized you have to use it with signed bytebeat, so I've done that.

It took a while for me to find a good example of using sin() for kicks, but I managed to pull some code out of No Limit:

127*sin(2E3/(t&4095))*.2

What I did next was change the sample rate to 44100hz, and I turned the 2e3 into an array, like this:

63*sin([2e4,1e3,1e3,1e3][(t>>12)%4]/(t&4095))

(

dollchan /

sarpnt )

This gave me a nice psytrance beat :)

So now I found myself experimenting with this and I tried to get the code working with other stuff, but it just messed up every time. Then I tried using |t

>>1 at the end, and I realized I could multiply it by different numbers (floats in this case) to play different notes! I also figured out I could add or subtract from t in the array accessing to offset the melody, and that let me get what I wanted ;D

Here's the final bytebeat:

63*sin([2e4,1e3,1e3,1e3][(t>>12)%4]/(t&4095))|(t>>1)*[1,1,1.5,1.25][((t+7680)>>16)%4]

(

dollchan /

sarpnt )

I know I might sound weird explaining all of this, but I'm not a good bytebeat coder though I'm proud of what I've accomplished!