Module
Data.Abc.Midi
- Package
- purescript-abc-parser
- Repository
- newlandsvalley/purescript-abc-parser
Conversion of an ABC tune to MIDI.
#toMidiAtBpm Source
toMidiAtBpm :: AbcTune -> Int -> Recording
Transform ABC into a MIDI recording but at the mdified tempo defined by the new BPM (beats per minute)
#toMidiPitch Source
toMidiPitch :: AbcNote -> ModifiedKeySignature -> Accidentals -> 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 :: AbcNote -> ModifiedKeySignature -> Accidentals -> Int
convert an AbcNote (pich class and accidental) to a pitch offset in a chromatic scale