clock-set-bpm   scheme


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/core/toplap_clock.xtm

Implementation

;; sends OSC message /clock/bpm/set to current master
(define clock-set-bpm
  (lambda (time beat bpm)
    (let ((t (split-clock-time (samples->clock time))))
      (io:osc:send (now) *toplap-clock-server* "/clock/bpm/set"
                   (car t) (cdr t)
                   (rational->n beat) (rational->d beat) bpm))))


Back to Index