Skip to content

Commit

Permalink
Merge pull request sonic-pi-net#2845 from ethancrawford/fix_bpm_typos
Browse files Browse the repository at this point in the history
Lang - fix set_link_bpm! typos
  • Loading branch information
samaaron authored Oct 4, 2021
2 parents fbddf49 + a188a55 commit 66df070
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/server/ruby/lib/sonicpi/lang/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3566,7 +3566,7 @@ def with_cue_logging(v, &block)

def set_link_bpm!(bpm)
raise ArgumentError, "use_bpm's BPM should be a positive value or :link. You tried to use: #{bpm}" unless bpm == :link || (bpm.is_a?(Numeric) && bpm > 0)
raise "ArgumentErrot, set_link_bpm! requires a number for the bpm argument in the range 20 -> 999. You tried to use: #{bpm}" unless bpm.is_a?(Numeric) && bpm >= 20 && bpm <= 999
raise ArgumentError, "set_link_bpm! requires a number for the bpm argument in the range 20 -> 999. You tried to use: #{bpm}" unless bpm.is_a?(Numeric) && bpm >= 20 && bpm <= 999
@tau_api.link_set_bpm_at_clock_time!(bpm.to_f, __get_spider_time)
end
doc name: :set_link_bpm!,
Expand All @@ -3576,7 +3576,7 @@ def set_link_bpm!(bpm)
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.
For a full list of link-compatable apps and devices see: https://www.ableton.com/en/link/products/
For a full list of link-compatible apps and devices see: https://www.ableton.com/en/link/products/
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.
Expand Down

0 comments on commit 66df070

Please sign in to comment.