Liking cljdoc? Tell your friends :D

alda.test-helpers


calculate-pitchclj

(calculate-pitch letter
                 accidentals
                 octave
                 key-sig
                 &
                 [{:keys [ref-pitch transpose]
                   :or {ref-pitch 440 transpose 0}}])
source

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

parse-eventsclj

(parse-events input)
source

parse-events-or-errorclj

(parse-events-or-error input)
source

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

× close