Module Performance.Event

Note events.

type t

The type for music note events.

val time_s : t -> time_s

The time at which the event occurs.

val instrument : t -> Instrument.t

instrument e is the instrument performing the note event.

val pitch : t -> Pitch.abs

pitch e is the absolute pitch of the note event.

val dur_s : t -> dur_s

dur_s e is the duration of the note event.

val volume : t -> volume

volume e is the volume of the note event.

val params : t -> float list

params e are parameters of the note event.

Predicates and comparisons

val order_by_time : t -> t -> int

order_by_time e0 e1 is (time e0) (time e1).