ampmidi Real-time MIDI:Converters ampmidi ampmidi Get the velocity of the current MIDI event. Description Get the velocity of the current MIDI event. Syntax iamp ampmidi iscal [, ifn] Initialization iscal -- i-time scaling factor ifn (optional, default=0) -- function table number of a normalized translation table, by which the incoming value is first interpreted. The default value is 0, denoting no translation. Performance Get the velocity of the current MIDI event, optionally pass it through a normalized translation table, and return an amplitude value in the range 0 - iscal. Examples Here is an example of the ampmidi opcode. It uses the file ampmidi.csd. Example of the ampmidi opcode. See the sections Real-time Audio and Command Line Flags for more information on using command line flags. See also Midi Converters Credits Author: &namebarry; - &namemike; MIT - Mills May 1997