FFT audio player v3

Game Introduction

https://turbowarp.org/683387044?fps=60 ^ highly recommended The highest quality PCM player in scratch. 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. Thanks to @kouzeru for giving tips on how to improve sound quality. And the 125 megabytes worth of sine wave assets (come on scratch at least compress them).

How To Play

Author

52525rr

Category

Game Information

Game Popularity

1.9k views

Collection Count

152 favorites