| Safe Haskell | Safe-Inferred |
|---|
Synth.Faust.EffectC
Description
Low level binding to faust dsps, specialized for ones that process audio, rather than generating it.
Synopsis
- data EffectT ptr cptr
- type Patch = EffectT PatchC.PatchP ()
- type Effect = EffectT PatchC.InstrumentP (Ptr Float)
- data State
- get :: Text -> IO Patch
- patches :: Map Text (Either Text Patch)
- allocate :: Patch -> IO Effect
- destroy :: Effect -> IO ()
- render :: Frames -> Frames -> Effect -> [(Ptr Float, Audio.Block)] -> [V.Vector Float] -> IO [V.Vector Float]
- getState :: Effect -> IO State
- unsafeGetState :: Effect -> IO State
- putState :: Effect -> State -> IO ()
Documentation
Instances
Patch
Effect
Arguments
| :: Frames | |
| -> Frames | |
| -> Effect | |
| -> [(Ptr Float, Audio.Block)] | |
| -> [V.Vector Float] | Input signals. The length must be equal to the the patchInputs, and each vector must have the same length. |
| -> IO [V.Vector Float] | one block of samples for each output channel |
Render chunk of time and return samples.