Mu.Pitch
Pitches.
The type for absolute pitches in semitones on a chromatic 12-tone scale. The absolute pitch of middle C (C4) is 60
. Constrained to the range [0
;127
] these values correspond to MIDI notes.
module Abs : sig ... end
Absolute pitches.
module Class : sig ... end
Pitch classes.
The type for octave numbers. Octave number 4
corresponds to the octave of middle C (C4).
The type for pitches. A pitch class and an octave.
(`A, 4)
is A440.(`A, 0)
to (`C, 8)
is the range of a piano.(`C, -1)
to (`G, 9)
is the the MIDI note range.val midi_min : t
midi_min
is (`C, -1)
, the lowest MIDI note.
val midi_max : t
midi_max
is (`G, 9)
, the highest MIDI note.
val pp : Stdlib.Format.formatter -> t -> unit
pp
formats pitches.