tempoInstrument Control:Sensing and Controltempotempo
Apply tempo control to an uninterpreted score.
Description
Apply tempo control to an uninterpreted score.
Syntaxtempo ktempo, istartempoInitializationistartempo -- initial tempo (in beats per minute). Typically 60.
Performancektempo -- The tempo to which the score will be adjusted.
tempo allows the performance speed of Csound scored events to be controlled from within an orchestra. It operates only in the presence of the Csound -t flag. When that flag is set, scored events will be performed from their uninterpreted p2 and p3 (beat) parameters, initially at the given command-line tempo. When a tempo statement is activated in any instrument (ktempo 0.), the operating tempo will be adjusted to ktempo beats per minute. There may be any number of tempo statements in an orchestra, but coincident activation is best avoided.
Examples
Here is an example of the tempo opcode. Remember, it only works if you use the -t flag with Csound. The example uses the file tempo.csd.
Example of the tempo opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoSensing and Control: Tempo and SequencingCreditsExample written by &namekevin;.