A simple FFT library implemented in Haxe for cross-platform signal processing.
Contributions are more than welcome!
You can use haxelib to install this library straight from the git repo:
haxelib git hxdsp https://github.com/baioc/hxdsp
For more details, check out the current API docs.
A unsuccessful modest attempt at a melody extraction program is provided in this repository.
On unix systems having ffmpeg
and gnuplot
installed, you only need to add an audio file of your own to the path res/track.mp3
and, after haxelib install format
, run
haxe examples/example.hxml
Sample spectrogram data displayed with the help of gnuplot |
---|
![]() |
The example program will also synthesize the extracted melody and place it into res/synth.wav
.
You can then play it and check for yourself what the result sounds like (I suggest lowering your volume, just in case).