Copyright | (c) Stephen Tetley 2012-2013 |
---|---|
License | BSD3 |
Maintainer | Stephen Tetley <stephen.tetley@gmail.com> |
Stability | unstable |
Portability | GHC (at least generalized newtype deriving) |
Safe Haskell | None |
Language | Haskell98 |
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 -> MidiFile Source
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.