haskore-0.2.0.2: The Haskore Computer Music System

Haskore.Interface.MIDI.InstrumentMap

Documentation

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

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

type ToChannel instr = instr -> ChannelSource

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

type FromChannel instr = Channel -> Maybe instrSource

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

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

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

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

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