Skip to content

baioc/hxdsp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hxdsp

GitHub tag (latest SemVer)

A simple FFT library implemented in Haxe for cross-platform signal processing.
Contributions are more than welcome!

Usage

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.

Example

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
spectrogram

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).