I've confirmed that Kyle Super's code for using SoundFonts in ChucK is working with version 1.2.1.2 in OS X, and it is said to work in Linux as well. These are the steps I took to install: 1) Download and install FluidSynth from http://fluidsynth.resonance.org/trac/wiki/Download. I installed version 1.0.8 from source with "./configure && make && sudo make install" 2) Apply the attached diff to chuck 1.2.1.2. 3) Compile ChucK with "make osx". If on Linux, build with "make alsa". -- Tom Lieber http://AllTom.com/
SoundFonts part II: using SoundFonts. --- SFont f => dac; int chan; float key; float veloc; 0.07 => f.norm; // easy to find using the Internet "Gort's-DoubleDecker_J1.SF2" => f.read; while( true ) { Std.rand2( 0, 15 ) => chan; Std.rand2f( 50.0, 300.0 ) => key; Std.rand2f( 0.0, 127.0 ) => veloc; chan => f.channel; key => f.freq; f.noteOn( veloc ); 1::second => now; f.noteOff( veloc ); } --- -- Tom Lieber http://AllTom.com/
SoundFonts part III: ALSA's Revenge The makefile.alsa included in the original diff was for an old version of ChucK. The attached, complete diff is more likely not to take you back through history, though I still have no Linux to test that it works. Someone, please do. :) -- Tom Lieber http://AllTom.com/
participants (1)
-
Tom Lieber