ampmididReal-time MIDI:Convertersampmididampmidid
Musically map MIDI velocity to peak amplitude within a specified dynamic range in decibels.
DescriptionPlugin opcode in ampmidid.
Musically map MIDI velocity to peak amplitude within a specified dynamic range in decibels.
Syntaxiamplitude ampmidid ivelocity, idecibelskamplitude ampmidid kvelocity, idecibelsInitializationiamplitude -- Amplitude.
ivelocity -- MIDI velocity number, ranging from 0 through 127.
idecibels -- Desired dynamic range in decibels.
Performancekamplitude -- Amplitude.
kvelocity -- MIDI velocity number, ranging from 0 through 127.
Musically map MIDI velocity to peak amplitude
within a specified dynamic range in decibels:
a = (m * v + b) ^ 2,
where a = amplitude,
v = MIDI velocity,
r = 10 ^ (R / 20),
b = 127 / (126 * sqrt( r )) - 1 / 126,
m = (1 - b) / 127,
and R = specified dynamic range in decibels.
See Roger Dannenberg, "The Interpretation of MIDI Velocity,"
in Georg Essl and Ichiro Fujinaga (Eds.), Proceedings of the
2006 International Computer Music Conference,
November 6-11, 2006 (San Francisco:
The International Computer Music Association), pp. 193-196.
Examples
Here is an example of the ampmidid opcode. It uses the file ampmidid.csd.
Example of the ampmidid opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoMidi ConvertersCreditsAuthor: &namemichael;2006