[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-dev] new class



Hello,

I've made this small addition to the MIDIPlayer class.

It converts midi to rate as in rate for a PlayBuf.

I have no idea how to upload a file to CVS so if it's of any use to anyone else please upload it.


MIDIRatePlayer
: MIDIPlayer {
*new { arg init=1.0; ^super.new.value_(init) }
initResponders {
resp = NoteOnResponder({ arg note,veloc; value = 1.059 ** (note - 60); this.changed });
}
}


cheers

Jem