turbowarp.org/799115207/ Took a while because i forgot about sample rate lol. The Fourier transform is an algorithm that takes in a signal and returns the sum of sine waves that make up that signal. Here in scratch we cannot directly access an audio buffer to play any sound we want. Instead, we compute the FFT of an audio buffer of suitable size (1024 in this case), then you play the buffer back by sine waves at different amplitudes. This allows you to play back any custom audio waveform in scratch (albeit very slow). Now, you can just use an audio file of what you want to play, but that doesn’t allow for seeking through the sound or playing generated sound from the project. This will, thanks to the FFT algorithm.
@52525rr The song is Odds Are by BNL To upload songs, go to Audacity. Convert the song to mono, and export it as a .aiff file with 8 bit unsigned pcm. Then, go to tomeko.net and convert it to hex. Paste the resulting code into the pcm list. You may need to screw around with the Hz sample rate until something works.