haskore-0.2.0.8: The Haskore Computer Music System

Safe HaskellSafe
LanguageHaskell2010

Haskore.Interface.MIDI.InstrumentMap

Documentation

type ChannelTable instr = [(instr, Channel)] Source

type ChannelProgramTable instr = [(instr, (Channel, Program))] Source

type ToChannel instr = instr -> Channel Source

type ToChannelProgram instr = instr -> (Channel, Program) Source

type FromChannel instr = Channel -> Maybe instr Source

type FromChannelProgram instr = (Channel, Program) -> Maybe instr Source

fromInstruments :: Ord instr => [instr] -> ToChannel instr Source

lookupIName :: [(Instr, a)] -> Instr -> a Source

lookup :: Eq instr => [(instr, a)] -> instr -> a Source

reverseLookupMaybe :: Eq a => [(instr, a)] -> a -> Maybe instr Source

reverseLookup :: Eq a => [(instr, a)] -> a -> instr Source