Module
Data.Abc.Midi.Pitch
- Package
- purescript-abc-parser
- Repository
- newlandsvalley/purescript-abc-parser
Conversion of an ABC pitch to a MIDI pitch
#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
- Modules
- Data.
Abc - Data.
Abc. Accidentals - Data.
Abc. Canonical - Data.
Abc. KeySignature - Data.
Abc. Meter - Data.
Abc. Midi - Data.
Abc. Midi. Pitch - Data.
Abc. Midi. RepeatSections - Data.
Abc. Midi. Types - Data.
Abc. Octave - Data.
Abc. Optics - Data.
Abc. Parser - Data.
Abc. Repeats. Section - Data.
Abc. Repeats. Types - Data.
Abc. Repeats. Variant - Data.
Abc. Tempo - Data.
Abc. Transposition - Data.
Abc. UnitNote - Data.
Abc. Utils - Data.
Abc. Voice