Safe Haskell | Safe-Inferred |
---|
This is the 音 variant of Cmd.Instrument.MidiInst. All of the the generic bits can be re-exported.
Synopsis
- data Patch = Patch {}
- type Synth = Inst.SynthDecl Cmd.InstrumentCode
- synth :: InstT.SynthName -> Text -> [(InstT.Name, Patch)] -> Synth
- make_patch :: Patch.Patch -> Patch
- patch :: Patch :-> Patch.Patch
- common :: Patch :-> Common.Common MidiInst.Code
- dummy :: Text -> Patch -> Patch
- code :: Lens.Lens Patch MidiInst.Code
- doc :: Lens.Lens Patch Doc.Doc
- make_inst :: Patch -> Inst.Inst Cmd.InstrumentCode
- environ :: REnv.ToVal a => EnvKey.Key -> a -> Patch -> Patch
- cenviron :: REnv.ToVal a => EnvKey.Key -> a -> Common.Common code -> Common.Common code
- range :: Scale.Range -> Patch -> Patch
- crange :: Scale.Range -> Common.Common code -> Common.Common code
- nn_range :: (Pitch.NoteNumber, Pitch.NoteNumber) -> Patch -> Patch
- thru :: Thru.ThruFunction -> MidiInst.Code
- add_flag :: Common.Flag -> Patch -> Patch
- triggered :: Patch -> Patch
- im_allocations :: [(ScoreT.Instrument, Text, Common.Config -> Common.Config)] -> UiConfig.Allocations
- dummy_allocations :: [(ScoreT.Instrument, Text, Common.Config -> Common.Config)] -> UiConfig.Allocations
- _make_allocation :: UiConfig.Backend -> (a, Text, Common.Config -> Common.Config) -> (a, UiConfig.Allocation)
- module Cmd.Instrument.MidiInst
Documentation
type Synth = Inst.SynthDecl Cmd.InstrumentCode Source #
synth :: InstT.SynthName -> Text -> [(InstT.Name, Patch)] -> Synth Source #
make_patch :: Patch.Patch -> Patch Source #
dummy :: Text -> Patch -> Patch Source #
Cause this to have a Dummy backend. It's a bit sloppy in that the
contents of patch_patch
will be ignored, but it's convenient in that
it lets me reuse all the functions in here for dummies too.
environ :: REnv.ToVal a => EnvKey.Key -> a -> Patch -> Patch Source #
The instrument will also set the given environ when it comes into scope.
cenviron :: REnv.ToVal a => EnvKey.Key -> a -> Common.Common code -> Common.Common code Source #
crange :: Scale.Range -> Common.Common code -> Common.Common code Source #
nn_range :: (Pitch.NoteNumber, Pitch.NoteNumber) -> Patch -> Patch Source #
thru :: Thru.ThruFunction -> MidiInst.Code Source #
Adapt a Thru.ThruFunction
to Cmd.ThruFunction
.
:: [(ScoreT.Instrument, Text, Common.Config -> Common.Config)] | (inst, qualified, set_config) |
-> UiConfig.Allocations |
:: [(ScoreT.Instrument, Text, Common.Config -> Common.Config)] | (inst, qualified, set_config) |
-> UiConfig.Allocations |
_make_allocation :: UiConfig.Backend -> (a, Text, Common.Config -> Common.Config) -> (a, UiConfig.Allocation) Source #
module Cmd.Instrument.MidiInst