Safe Haskell | Safe-Inferred |
---|
Synopsis
- db :: FilePath -> [Patch] -> Db
- data Db = Db {}
- lookupPatch :: Note.PatchName -> [Patch] -> Maybe Patch
- data Patch = Patch {
- _name :: Note.PatchName
- _dir :: FilePath
- _convert :: Note.Note -> ConvertM Sample.Sample
- _preprocess :: [Note.Note] -> [Note.Note]
- _effect :: !(Maybe EffectConfig)
- _karyaPatch :: ImInst.Patch
- _allFilenames :: Set FilePath
- patch :: Note.PatchName -> Patch
- patchKarya :: Note.PatchName -> (ImInst.Patch -> ImInst.Patch) -> Patch
- simple :: Note.PatchName -> Sample.SamplePath -> Pitch.NoteNumber -> Patch
- addCode :: Code -> Patch -> Patch
- type ConvertM a = Log.LogT (Except.ExceptT Error Identity) a
- type Error = Text
- convert :: Patch -> Note.Note -> Either Error (Sample.Sample, [Log.Msg])
- runConvert :: ConvertM a -> Either Error (a, [Log.Msg])
- applyStandardControls :: Note.Note -> Sample.Sample -> Sample.Sample
- standardControls :: Map Control.Control Text
- data EffectConfig = EffectConfig {}
- effect :: Text -> EffectConfig
- checkControls :: Patch -> Set Control.Control -> EffectConfig -> [Text]
Documentation
lookupPatch :: Note.PatchName -> [Patch] -> Maybe Patch Source #
Patch | |
|
patch :: Note.PatchName -> Patch Source #
patchKarya :: Note.PatchName -> (ImInst.Patch -> ImInst.Patch) -> Patch Source #
simple :: Note.PatchName -> Sample.SamplePath -> Pitch.NoteNumber -> Patch Source #
Make a simple patch of a single sample.
applyStandardControls :: Note.Note -> Sample.Sample -> Sample.Sample Source #
Apply standard controls that all patches support.
EffectConfig
data EffectConfig Source #
EffectConfig | |
|
Instances
Show EffectConfig Source # | |
Defined in Synth.Sampler.Patch showsPrec :: Int -> EffectConfig -> ShowS # show :: EffectConfig -> String # showList :: [EffectConfig] -> ShowS # |
effect :: Text -> EffectConfig Source #
checkControls :: Patch -> Set Control.Control -> EffectConfig -> [Text] Source #
Check that rename sources exist. Check that renamed controls don't overlap patch controls.