Liking cljdoc? Tell your friends :D

alda.lisp.model.event


add-eventclj

(add-event {:keys [instruments events markers] :as score}
           {:keys [instrument offset] :as event})
source

add-eventsclj

(add-events score events)
source

update-scorecljmultimethod

Events in Alda are represented as maps containing, at the minimum, a value for :event-type to serve as a unique identifier (by convention, a keyword) to be used as a dispatch value.

An Alda score S-expression simply reduces update-score over all of the score's events, with the initial score state as the initial value to be reduced.

Lists/vectors are a special case -- they are reduced internally and treated as a single 'event sequence'.

Events in Alda are represented as maps containing, at the minimum, a value
for :event-type to serve as a unique identifier (by convention, a keyword)
to be used as a dispatch value.

An Alda score S-expression simply reduces `update-score` over all of the
score's events, with the initial score state as the initial value to be
reduced.

Lists/vectors are a special case -- they are reduced internally and treated
as a single 'event sequence'.
sourceraw docstring

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

× close