SuperCollider CLASSES (extension)

Metro
ExtensionExtension

Metronome
Inherits from: UGen : AbstractFunction : Object
 

Description

Outputs a single sample impulse according to bpm and numBeats.

Class Methods

*kr (bpm, numBeats, mul: 1, add: 0)

Arguments:

bpm

Beats per minute.

numBeats

Number of beats before next pulse.

mul
add
NOTE: bpm and numBeats are polled on every impulse of output. These can be scalers, audio rate, control rate or Demand UGens

*ar (bpm, numBeats, mul: 1, add: 0)

Arguments:

bpm

Beats per minute.

numBeats

Number of beats before next pulse.

mul
add

Inherited class methods

Instance Methods

Inherited instance methods

Examples

a = {Metro.ar(60, 1)}.play
a.free;

a = {Decay.kr(Metro.kr(XLine.kr(60, 120, 5), 1)) * SinOsc.ar(440, 0, 0.1)}.play;
a.free;

(
a = {
    Decay.kr(
        Metro.kr(
            LFNoise2.kr(0.2).range(30, 240),
            Dseq([1, 0.25, 0.5, 0.25], inf))) *
    SinOsc.ar(440, 0, 0.1)
    }.play;
)

a.free;