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
raiseArgumentError,"use_bpm's BPM should be a positive value or :link. You tried to use: #{bpm}"unlessbpm == :link || (bpm.is_a?(Numeric) && bpm > 0)
3567
+
raise"ArgumentErrot, set_link_bpm! requires a number for the bpm argument in the range 20 -> 999. You tried to use: #{bpm}"unlessbpm.is_a?(Numeric) && bpm >= 20 && bpm <= 999
doc: "Set the tempo for the link metronome in BPM. This is 'global' in that the BPM of all threads/live_loops in Link BPM mode will be affected.
3574
+
3575
+
Note that this will *also* change the tempo of *all link metronomes* connected to the local network. This includes other instances of Sonic Pi, Music Production tools like Ableton Live, VJ tools like Resolume, DJ hardware like the MPC and many iPad music apps.
3576
+
3577
+
For a full list of link-compatable apps and devices see: https://www.ableton.com/en/link/products/
3578
+
3579
+
Also note that the current thread does not have to be in Link BPM mode for this function to affect the Link clock's BPM.
3580
+
3581
+
To change the current thread/live_loop to Link BPM mode see: `use_bpm :link`",
3582
+
args: [[:bpm,:number]],
3583
+
opts: nil,
3584
+
accepts_block: false,
3585
+
intro_fn: false,
3586
+
examples: ["
3587
+
use_bpm :link # Switch to Link BPM mode
3588
+
set_link_bpm! 30 # Change Link BPM to 30
3589
+
3590
+
8.times do
3591
+
bpm += 10
3592
+
set_link_bpm! bpm # Gradually increase the Link BPM
3593
+
sample :loop_amen, beat_stretch: 2
3594
+
sleep 2
3595
+
end
3596
+
"]
3566
3597
3567
3598
defuse_bpm(bpm, &block)
3568
3599
raiseArgumentError,"use_bpm does not work with a block. Perhaps you meant with_bpm"ifblock
0 commit comments