Module

Data.Abc.Midi

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

Conversion of an ABC tune to MIDI.

#MidiPitch Source

type MidiPitch = Int

The pitch of a note expressed as a MIDI interval.

#toMidi Source

toMidi :: AbcTune -> Recording

Transform ABC into a MIDI recording.

#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