Mu.PerformancePerformances.
Performances interpret music values as sequences of note events on an absolute timeline.
type time_s = Q.tThe type for absolute performance times in seconds. The origin is 0.
type dur_s = Q.tThe 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 ... endNote events.
type t = Event.t listThe type for performances. A list of note events ordered by time.
val empty : tempty is the empty performance.
val by_instrument : t -> t Instrument.Map.tby_instrument p maps each instrument of p to its own performance.
module Ctx : sig ... endMusical 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