(calculate-pitch letter
                 accidentals
                 octave
                 key-sig
                 &
                 [{:keys [ref-pitch transpose]
                   :or {ref-pitch 440 transpose 0}}])(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
(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.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs | 
| ← | Move to previous article | 
| → | Move to next article | 
| Ctrl+/ | Jump to the search field |