Safe Haskell | Safe-Inferred |
---|
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
Patch
Effect
:: 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.