metrobpm — Trigger Metronome with optional gate
Generate a metronomic signal to be used in any circumstance an isochronous trigger is needed.
ktrig - output trigger signal
kfreq - frequency of trigger bangs in beats per minute
kgate - proportion of the cycle that the trigger held at one
metrobpm is a simple opcode that outputs a sequence of isochronous bangs with optional holdin (that is 1 values,) each 60/kfreq seconds.
Note | |
---|---|
metrobpm 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. |