music-score-1.9.0: Musical score and part representation.

Copyright(c) Hans Hoglund 2012-2014
LicenseBSD-style
Maintainerhans@hanshoglund.se
Stabilityexperimental
Portabilitynon-portable (TF,GNTD)
Safe HaskellNone
LanguageHaskell2010

Music.Score.Export.Midi

Contents

Description

 

Synopsis

Midi backend

class HasMidiProgram a where Source

Class of part types with an associated MIDI program number.

Minimal complete definition

getMidiProgram

Methods

getMidiChannel :: a -> Channel Source

getMidiProgram :: a -> Preset Source

type HasMidi a = (HasBackendNote Midi (BackendScoreEvent Midi a), HasBackendScore Midi a) Source

Constraint for types that has a MIDI representation.

toMidi :: HasMidi a => a -> Midi Source

writeMidi :: HasMidi a => FilePath -> a -> IO () Source

showMidi :: HasMidi a => a -> IO () Source

openMidi :: HasMidi a => a -> IO () Source