Safe Haskell | Safe-Inferred |
---|
Load the instrument db. This collects together all the local instrument definitions.
MIDI instrument definitions are local configuration, so this expects a locally defined Local.Instrument module, which should export:
midi_synths :: [MidiInst.Synth] all_loads :: [(InstT.SynthName, ('MidiInst.MakeDb', 'MidiInst.Load'))]
Instrument.MakeDb is used to create the caches that all_loads
relies
on.
Synopsis
- midi_synths :: [MidiInst.Synth]
- all_loads :: [(InstT.SynthName, (MidiInst.MakeDb, MidiInst.Load))]
- im_synths :: [MidiInst.Synth]
- synth_warnings :: [Text]
- internal_synths :: [MidiInst.Synth]
- load :: Path.AppDir -> IO (Inst.Db Cmd.InstrumentCode)
Documentation
midi_synths :: [MidiInst.Synth] Source #
all_loads :: [(InstT.SynthName, (MidiInst.MakeDb, MidiInst.Load))] Source #
Each synth that caches to disk has a function to make the cache, and one to load it.
im_synths :: [MidiInst.Synth] Source #
synth_warnings :: [Text] Source #
Warnings validating synths. TODO this should probably be merged with MidiInst.Synth.
load :: Path.AppDir -> IO (Inst.Db Cmd.InstrumentCode) Source #