日本語の説明は下にあります。 English Plays music while performing FFT and CQT in real-time. Since it analyzes the audio in real-time, it can be resource-heavy and the sound quality may drop. Therefore, running it on TurboWarp at 60FPS is highly recommended ↓ https://turbowarp.org/1285894806?fps=60&hqpen 【speed】 Changes the playback speed of the music. 【pitch】 Changes the pitch of the music. 【window size】 Recommended: 2048 Adjusts the size of the analysis window. A larger size increases accuracy but requires more processing power. It will automatically be set to the optimal value upon initial startup. 【Q Value】 Recommended: 30 Adjusts the Q-factor. A smaller value improves time resolution but decreases frequency resolution, while a larger value decreases time resolution but improves frequency resolution. 【EQ】 Equalizer. Adjusts the frequency response. 【How to load other songs】 1.Prepare an audio file (e.g., .mp3). 2.Select the audio file at the following URL: https://1a291109a6.github.io/sound-to-hex-text-converter/ 3.A text file will be downloaded. 4.Click "See inside" in this project and show the "wavedata" list in the "CQT" sprite. 5.Right-click or long-press the list, select "import," and choose the downloaded text file. 6.Click the green flag. 日本語 リアルタイムでFFT・CQT実行して音楽を再生します。 リアルタイムで解析していて重い&音が悪いのでTurboWarpで60FPS推奨↓ https://turbowarp.org/1285894806?fps=60&hqpen 【speed】 音楽の再生速度を変更します。 【pitch】 音楽の音の高さを変更します。 【window size】 推奨2048 解析するサイズを変更します。大きいほど精度が高くなりますが重いです。初回起動時に自動で最適な値になります。 【Q Value】 推奨30 Q値という値を変更します。小さいと時間分解能が良く周波数分解能が悪くなり、大きいと時間分解能が悪く周波数分解能が良くなります。 【EQ】 イコライザーです。周波数特性を変更します。 【他の曲を読み込む方法】 1.曲の音声ファイル(mp3など)を用意する 2.以下のURLで音声ファイルを選択 https://1a291109a6.github.io/sound-to-hex-text-converter/ 3.テキストファイルがダウンロードされる 4.このプログラムの「中を見る」を押し、「CQT」スプライトのリスト「wavedata」を表示する 5.リストを右クリックか長押しして「読み込み」を押し、ダウンロードしたテキストファイルを選択 6.緑の旗を押す
Music:魔王魂 シャイニングスター Some of the program is based on @spaoa 's "FFT Audio". 一部 @spaoa さんの「FFT Audio」のプログラムを参考にしています。 https://scratch.mit.edu/projects/1083985906/ The sound quality is quite poor because it is 8kHz/8bit PCM, but this is the limit for real-time analysis. I have tried to speed it up as much as possible (pre-calculating FFT trigonometric functions, optimizing the number of loops for CQT sparse matrix calculations, reducing multiplications, etc.). 8kHz/8bit PCMなのでかなり音が悪いですがリアルタイム解析ではこれが限界です。自分なりに限界まで高速化したつもりです。(FFTの三角関数事前計算、CQTの疎行列計算のループ数最適化、乗算の削減など) It can produce 12 notes per octave, from 20Hz to 4kHz. 20Hz~4kHz、オクターブあたり12音の音を鳴らせます。