Liking cljdoc? Tell your friends :D

alda.test-helpers


dur->msclj

(dur->ms {:keys [beats ms]} tempo & [time-scaling])

Given a duration map, a tempo, and (optionally) a time-scaling value, returns the calculated duration in milliseconds.

The duration map can be created via the duration function, which takes any number of note-length / millisecond components.

e.g. (dur->ms (duration (note-length 8)) 120) => 250

Given a duration map, a tempo, and (optionally) a time-scaling value,
returns the calculated duration in milliseconds.

The duration map can be created via the `duration` function, which takes any
number of note-length / millisecond components.

e.g.
(dur->ms (duration (note-length 8)) 120) => 250
sourceraw docstring

get-instrumentclj

(get-instrument {:keys [instruments] :as score} inst-name)

Returns the first instrument in :instruments whose id starts with inst-name.

Returns the first instrument in :instruments whose id starts with inst-name.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close