module User.Generic.Instrument (midi_synths, all_loads) where
import qualified Cmd.Instrument.MidiInst as MidiInst
import qualified Derive.ScoreT as ScoreT
import qualified Instrument.InstT as InstT
import qualified Midi.Midi as Midi
import qualified User.Generic.Instrument.GeneralMidi as GeneralMidi
import qualified User.Generic.Instrument.OBXd as OBXd
import qualified User.Generic.Instrument.Surge as Surge
midi_synths :: [MidiInst.Synth]
midi_synths :: [Synth]
midi_synths =
[ Synth
generic_synth
, Synth
GeneralMidi.synth
, Synth
OBXd.synth
, Synth
Surge.synth
]
all_loads :: [(InstT.SynthName, (MidiInst.MakeDb, MidiInst.Load))]
all_loads :: [(SynthName, (MakeDb, Load))]
all_loads = []
generic_synth :: MidiInst.Synth
generic_synth :: Synth
generic_synth =
SynthName -> SynthName -> [Patch] -> Synth
MidiInst.synth SynthName
"generic"
SynthName
"Generic MIDI instrument with no special configuration." forall a b. (a -> b) -> a -> b
$
[(Control, Control)] -> [Patch] -> [Patch]
MidiInst.synth_controls [(Control, Control)]
controls [Patch]
patches
where
controls :: [(Midi.Control, ScoreT.Control)]
controls :: [(Control, Control)]
controls = []
patches :: [MidiInst.Patch]
patches :: [Patch]
patches = [PbRange -> [(Control, Control)] -> Patch
MidiInst.default_patch PbRange
pb_range []]
pb_range :: PbRange
pb_range = (-Int
2, Int
2)