haskore-0.2.0.3: The Haskore Computer Music System

Safe Haskell | None

Haskore.Interface.MIDI.InstrumentMap

# Documentation

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

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

type ChannelProgramPitchTable instr = [(instr, (Channel, Program, Pitch))]Source

type ToChannel instr = instr -> Channel Source

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

type ToChannelProgramPitch instr = instr -> (Channel, Program, Pitch)Source

type FromChannel instr = Channel -> Maybe instrSource

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

type FromChannelProgramPitch instr = (Channel, Program, Pitch) -> Maybe instrSource

repair :: [Instr] -> ChannelProgramTable Instr -> ChannelProgramTable Instr Source

allValid :: ChannelProgramTable Instr -> [Instr] -> Bool Source

tableFromInstruments :: [Instr] -> ChannelProgramTable Instr Source

assignChannels :: [Channel] -> [Instr] -> [(Channel, Program)]Source

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

partialMatch :: Instr -> Instr -> Bool Source

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

defltTable :: [(Instr, Channel, Instrument)]Source

deflt :: ChannelProgramTable Instr Source

defltGM :: ChannelProgramTable Instrument Source

defltCMap :: [(Instrument, Channel)]Source