[CM] importing

taube at illinois.edu taube at illinois.edu
Tue Jun 1 08:05:37 PDT 2010


speaking of importing, trunk now has a new function midifile-import for importing values from midifiles. its documented in res/doc/cm.html (in the Midi In section). i could add more stuff to it but its already quite useful i think.

> (midifile-import "foo.mid" 1 'key)
(60 72 44 ...)

> (midifile-import "foo.mid" 1 '(time dur key amp))
((0.0 0.1 60 0.5) (0.1 0.1 72 0.5) (0.2 0.1 44 0.5) ...)

> (midifile-import "foo.mid" 1 '(rhythm key vel))
((0.0 60 64) (0.1 72 64) (0.1 44 64) ...)



also i branched a (stable) 3.6 line so trunk is now the development line for 3.7. if i have time and patience i am going to try to add  a native sampler that you control from scheme, ie realtime triggering of audio buffers  that does  fullmix, vkey and expandn sorts of things in realtime.



More information about the Cmdist mailing list