[⚠️ WARNING!] May be very laggy on slow machine and mobile devices. Try running this project in TurboWarp to increase performance: https://turbowarp.org/1188093753/ This project can play any sound, encoded in a special format into a list! It uses Fourier transform algorithm and pure sine waves to generate audio from signal in real-time. == HOW TO USE: Simple == 1. Navigate to: ucrash.fun/audio2scratch/sounds.html 2. Pick any sound you like and click on it 3. Save the .txt file somewhere on your computer 4. Open this project and click "See inside" 5. Press the "Load Sound" button in the top left 5. Right-click on the SOUND DATA list and choose "Import" 6. Open the .txt file you saved 7. Reload the project == HOW TO USE: Advanced == You can upload any file in the following format: signed 8-bit PCM with sample rate 8000, where each new line contains the value from -128 to 128 at that sample. Note that due to the limits of Scratch list, the maximum length of the sound will be around 25 seconds long (200,000 samples). You can also use the v2 format to increase sample rate, bit depth, and maximum duration, the documentation to it is coming soon. The green line displays the samples currently being played (the waveform). The blue line shows the Fourier transform on this waveform (the EQ curve). The "FT_QUALITY" slider controls the precision of the Fourier transform. Lower values may increase performance but result in a more distorted sound. The "PITCH_QUALITY" slider controls the precision of the pitch when playing back the audio. Lower values may increase performance but result in a more robotic sound. == CHANGELOG == v2.0.0 Introduced the v2 file format with improved efficiency, quality and customization. Improved UI. Added looping and seeking functionality. v1.0.0 Initial release. == CREDITS == Thanks to my homies SHREK.png and geotsx for helping me with this project!