soir
OVERVIEW
The bpm module provides a way to set the tempo of the current
session. The tempo is a global setting that affects all loops and samples, it is measured in beats per minute (BPM) and can be adjusted in real-time.
Reference
FUNCTION
beat
beat() -> float
Get the current beat.
Returns
– The current beat.
get
get() -> float
Get the BPM. This function can only be called from the global
scope.
Returns
– The current BPM.
Raises
| Exception | Description |
|---|---|
errors.InLoopException |
If called from inside a loop. |
set
set(bpm: float) -> float
Set the BPM. This function can only be called from the global
scope.
Arguments
| Name | Type | Description |
|---|---|---|
bpm |
The new BPM. |
Returns
– The new BPM.
Raises
| Exception | Description |
|---|---|
errors.InLoopException |
If called from inside a loop. |