Friday, May 16, 2008

Ruby midi-speech synthesis crossover

Some days ago I had to somehow show all the sound of a .sf2 soundbank file. This can be a really boring and time consuming task.

So I hacked together a ruby script that says the sound number through MS Sapi, and quickly generated a scale midi file with changed instrument, and play it through Windows services, everything from register 1 to 99. It saved me a couple of hours maybe, and was indeed fun.

A little excerpt (recorded from a cheap microphone due to an integrated soundcard's inhability) can be found here

The employed libraries were midilib and win32-sapi .

NumRu, scientific Ruby the easy way

From it's ruby-lang description page:
NumRu is a suite of libraries and applications for numerical modeling, data analysis, and visualization produced by the Dennou Ruby project of the GFD Dennou Club.

It's a complete ruby distribution with many scientific library bindings included. I used it to mockup a new matrix-form daubechies filters mockup I want to implement on a GPU (using brook). The gsl wavelet package had a bug, so I had to use a Debian VM to contrast, but if you want a hole scientific toolbox in a convenient installer, It can be an option.