Mu.Performance
Performances.
Performances interpret music values as sequences of note events on an absolute timeline.
type time_s = Q.t
The type for absolute performance times in seconds. The origin is 0
.
type dur_s = Q.t
The type for durations in seconds.
wn_dur_s ~bpm ~beat_dur
is the duration, in seconds, of a whole note given bpm
beats per minute and a beat duration of beat_dur
whole notes. For example wn_dur_s ~bpm:120
~beat_dur:M.qn
is the duration, in seconds, of a whole note for 120 beats per minute and one quarter note per beat.
module Event : sig ... end
Note events.
type t = Event.t list
The type for performances. A list of note events ordered by time.
val empty : t
empty
is the empty performance.
val by_instrument : t -> t Instrument.Map.t
by_instrument p
maps each instrument of p
to its own performance.
module Ctx : sig ... end
Musical context.
of_music ~cxt m
is a performance given by intepreting music m
starting in context ctx
. The latter defaults to Ctx.default
in particular this means:
127
.`Acoustic_grand_piano