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

[sc-dev] re new class



Never knew what midiratio was for ! That's much better !

so the class is

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


thanks,

Jem

> Hi Jem,

hi Jem,

1.059 is a very rough estimate of 12th root out of 2 (is that correct
English?)
__
n = 72 (octave above)

1.059 ** (n - 60);
gives
1.9895347141859

(n - 60).midiratio;
gives
1.9999999999945

adrian