Block-level enable and disable bpm scaling
with_arg_bpm_scaling
[]
Turn synth argument bpm scaling on or off for the supplied block. Note, using rt for args will result in incorrect times when used within this block.
Introduced in v2.0
|
use_bpm 120 play 50, release: 2 with_arg_bpm_scaling false do play 50, release: 2 end |
# release is actually 1 due to bpm scaling # release is now 2 |
|
use_bpm 120 play 50, release: rt(2) sleep rt(2) with_arg_bpm_scaling false do play 50, release: rt(2) sleep rt(2) end |
# Interaction with rt # release is 2 seconds # sleeps for 2 seconds # ** Warning: release is NOT 2 seconds! ** # still sleeps for 2 seconds |