bpm()

bpm()

Category

Tempo / Control

Description

bpm() returns the current BPM value normalized to 120 BPM. If the host or Syntropy internal tempo is 120 BPM, the function returns 1.0. At 60 BPM it returns 0.5, and at 240 BPM it returns 2.0.

Arguments

No arguments.

Example

envloop(1/bpm(), 0)*saw(X)
moog(saw(X), 0.03 + 0.35*envloop(1/bpm(), 1), 0.25)

Notes

Use bpm() to synchronize envelope loops, rhythmic movement, LFO-like shapes, or wavetable scanning with the BPM set by the host or by Syntropy. It is especially useful with envloop(), for example envloop(1/bpm(), n), when the loop should follow song tempo instead of using a fixed stretch value. Because envelope stretch is inverse to speed, use 1/bpm(): higher BPM then makes the envelope cycle faster, lower BPM makes it cycle slower.