>>141
It's been over a year since your post and I finally decided to make a Funcbeat mode in my player, heh.
Here some tutorials how to convert bytebeat to funcbeat:
"42 melody" ported to funcbeat (
play):
return (t,s)=>(t*=s,t*(42&t>>10)&255)/128-1
In this case, if you choose other sample rates, the sound will change. To prevent the sound from changing, you can set 8000 sample rate in the code, as in the original 42 melody (
play):
return t=>(t*=8E3,t*(42&t>>10)&255)/128-1
Note that the funcbeat has a floatbeat range, from -1 to 1. Actually,
(x&255)/128-1 is a conversion from bytebeat to floatbeat in the code above.
"stimmer" ported to funcbeat (
play)
return (t,s)=>(t*=s,t*(4|t>>13&3)>>(~t>>11&1)&128|t*(t>>11&t>>13)*(~t>>9&3)&127)/128-1
In this case, the formula contains
&127, so it’s enough to do
x/128-1.
Also, some variation of my Dark Forest, ported to funcbeat:
Attack in the ForestMessage edited: 18.12.23 Mon 06:31:37