Module
Data.Abc.Transposition
- Package
- purescript-abc-parser
- Repository
- newlandsvalley/purescript-abc-parser
Transposition of an ABC note or tune to a new key.
#defaultKey Source
defaultKey :: ModifiedKeySignature
The default Key - C Major.
#keyDistance Source
keyDistance :: ModifiedKeySignature -> ModifiedKeySignature -> Either String Int
Calculate the distance between the keys (target - source) measured in semitones. Keys must be in compatible modes. not sure whether we need to expose this
#transposeNote Source
transposeNote :: ModifiedKeySignature -> ModifiedKeySignature -> AbcNote -> Either String AbcNote
Transpose a note from its source key to its target.
- 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