| Copyright | Christoph Finkensiep 2021 |
|---|---|
| License | BSD |
| Maintainer | chfin@chfin.de |
| Stability | experimental |
| Safe Haskell | None |
| Language | Haskell2010 |
| Extensions |
|
Musicology.Pitch.Midi
Description
This module defines pitch and interval types for enharmonic/chromatic pitch, (as used in MIDI).
Midi intervals are just Ints.
Interval types
type MidiInterval = Int Source #
Instances
Pitch types
type MidiPitch = Pitch MidiInterval Source #
Orphan instances
| Show MidiPitch Source # | |
| Chromatic Int Source # | |
Methods | |
| Diatonic Int Source # | |
| Interval Int Source # | |
| Notation MidiInterval Source # | |
Methods showNotation :: MidiInterval -> String Source # showNotationT :: MidiInterval -> Text Source # parseNotation :: ReadP MidiInterval Source # readNotation :: String -> Maybe MidiInterval Source # readNotationT :: Text -> Maybe MidiInterval Source # | |
| Notation MidiPitch Source # | |
| ToMidi MidiInterval Source # | |
Methods toMidi :: MidiInterval -> Int Source # | |
| ToMidi MidiPitch Source # | |