metro2Instrument Control:Sensing and Controlmetro2metro2
Trigger Metronome with Swing and Accents
Description
Generates a metronomic signal with controllable swinging.
Syntaxktrig metro2 kfreq, kswing [, iamp, initphase]Initializationiamp - off-beat click amplitude
initphase - initial phase value (in the 0 to 1 range)
Performancektrig - output trigger signal
kfreq - frequency of trigger bangs in cps
kswing - value (in the 0 to 1 range)
metro2 is a modification of 'classic'
metro opcode with additional swinging. The
swinging clicks can be modulated at k-rate. Also, swinging clicks
can have their own amplitude value set by iamp.
metro2 as well as
metro will produce a trigger signal of 1
when its phase is exactly 0 or 1. If you want to skip the
initial trigger, use a very small value like 0.00000001.
Examples
Here is an example of the metro2 opcode. It uses the file metro2.csdExample of the metro2 opcode.See alsoSensing and Control: Tempo and SequencingCreditsAuthor: Gleb Rogozinsky;St.Petersburg, October 2019New in Csound version 6.14