Copyright | (c) Hans Hoglund 2012-2014 |
---|---|
License | BSD-style |
Maintainer | hans@hanshoglund.se |
Stability | experimental |
Portability | non-portable (TF,GNTD) |
Safe Haskell | None |
Language | Haskell2010 |
- class HasMidiProgram a where
- getMidiChannel :: a -> Channel
- getMidiProgram :: a -> Preset
- data Midi
- type HasMidi a = (HasBackendNote Midi (BackendScoreEvent Midi a), HasBackendScore Midi a)
- toMidi :: HasMidi a => a -> Midi
- writeMidi :: HasMidi a => FilePath -> a -> IO ()
- showMidi :: HasMidi a => a -> IO ()
- openMidi :: HasMidi a => a -> IO ()
Midi backend
class HasMidiProgram a where Source
Class of part types with an associated MIDI program number.
getMidiChannel :: a -> Channel Source
getMidiProgram :: a -> Preset Source
A token to represent the Midi backend.
type HasMidi a = (HasBackendNote Midi (BackendScoreEvent Midi a), HasBackendScore Midi a) Source
Constraint for types that has a MIDI representation.