Portability | GHC (at least generalized newtype deriving) |
---|---|
Stability | unstable |
Maintainer | Stephen Tetley <stephen.tetley@gmail.com> |
Safe Haskell | None |
Convert a MidiFile into "canonical" form - i.e. expand any use of Running Status and translate Running Status high, NoteOn channel velocity 0 events to NoteOff events.
Documentation
canonical :: MidiFile -> MidiFileSource
Convert an MidiFile into "canonical" form where any abbreviation introduced by Running Status is expanded.
Note - even with Running Status on the syntax tree is almost canonical (some expansion takes place in the Parser), so this translation is quite simplistic.