- t represents the index of the current sample. The full file is modulo 256 and then divided by 256 to produce a valid sound for Snap !. E.g. if your bytebeat was "t" and you were on sample 255, the corresponding sample in the audio file would have the value 0.9960375. However, if you were on sample 257, the corresponding sample would have the value 0.00390625. This causes it to produce a click sound on sample 256, as it immediately goes from 0.9960375 to 0. Additionally, if your bytebeat was "t*2", it would multiply every number by 2, causing it to be skip-counting to 512 by 2. Then the full file is modulo 256, causing it to be skip-counting to 256 twice, and then divided by 256. This causes there to be a click on both sample 128 and 256, doubling the click sounds and therefore doubling the frequency. Now apply this to every javascript function there is that returns a real number value.
- 1 year of using bytebeat
Also I'm the same person who made the "Working Tetration Function" from last year.