Module

Data.Abc.Midi.Pitch

Package
purescript-abc-parser
Repository
newlandsvalley/purescript-abc-parser

Conversion of an ABC pitch to a MIDI pitch

#MidiPitch Source

type MidiPitch = Int

The pitch of a note expressed as a MIDI interval.

#toMidiPitch Source

toMidiPitch :: ModifiedKeySignature -> Accidentals -> AbcNote -> MidiPitch

Convert an ABC note pitch to a MIDI pitch.

AbcNote - the note in question ModifiedKeySignature - the key signature (possibly modified by extra accidentals) Accidentals - any notes in this bar which have previously been set explicitly to an accidental which are thus inherited by this note MidiPitch - the resulting pitch of the MIDI note

#midiPitchOffset Source

midiPitchOffset :: ModifiedKeySignature -> Accidentals -> AbcNote -> Int

convert an AbcNote (pich class and accidental) to a pitch offset in a chromatic scale