Or I can let BASH & Sox do it for me ;) (See attached)
I've now got OGGs based on every single PAT file that was installed via
freepats package on my Ubuntu 9.04 system (in /usr/share/midi/freepats/ ).
Comes out to 5.1MB. I, obviously, will only be considering a fraction of
these. (However, in many cases, each PAT was converted to only a few core
notes, so I'd need to figure out what pitch they are, and construct all
of the other notes for that instrument, for use in Tux Paint.)
pat2ogg.sh invokes "pat2raw" to create the RAW file(s) from the MIDI patch.
It then invokes raw2ogg.sh, which (1) looks at the TXT files that pat2raw
created, to figure out the sample rate to send to... (2) sox then
converts the RAW into an OGG.
So all I did was run "./pat2ogg.sh /usr/share/midi/freepats/000_Tones/*.pat",
for example, and ended up with a ton of files in the current directory
(including the OGGs that will be used).
-bill!
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference_______________________________________________
Tuxpaint-devel mailing list
Tuxpaint-devel@...
https://lists.sourceforge.net/lists/listinfo/tuxpaint-devel