You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously we we just using current_bpm which worked fine prior to the new :link mode. To maintain compatibility, within :link mode current_bpm returns Link's current bpm as a number. However, this function was also being used in places where the mode was important rather than the current value.
This fixes issues when syncing within :link bpm mode observed on the forums: https://in-thread.sonic-pi.net/t/demo-of-experimental-ableton-link-with-sonic-pi/5869/5?u=samaaron
#handle case where user passes both :sync and :sync_bpm opts.
2158
+
# --> sync_bpm overrides sync
2156
2159
sync_sym=nilifsync_bpm_sym
2157
2160
2158
2161
raiseLiveLockError,"livelock detection - live_loop cannot sync with itself - please choose another sync name for live_loop #{name.inspect}"ifname == sync_sym || name == sync_bpm_sym
@@ -3649,7 +3652,7 @@ def use_bpm(bpm, &block)
3649
3652
defwith_bpm(bpm, &block)
3650
3653
raiseArgumentError,"with_bpm must be called with a do/end block. Perhaps you meant use_bpm"unlessblock
3651
3654
raiseArgumentError,"with_bpm's BPM should be a positive value. You tried to use: #{bpm}"unlessbpm > 0
0 commit comments