Karya, built on 2022-03-21T01:30:44 (patch 89d1651424c35e564138d93424a157ff87457245)
Safe HaskellSafe-Inferred

Synth.Faust.EffectC

Description

Low level binding to faust dsps, specialized for ones that process audio, rather than generating it.

Synopsis

Documentation

data EffectT ptr cptr Source #

Instances

Instances details
(Show cptr, Show ptr) => Show (EffectT ptr cptr) Source # 
Instance details

Defined in Synth.Faust.EffectC

Methods

showsPrec :: Int -> EffectT ptr cptr -> ShowS #

show :: EffectT ptr cptr -> String #

showList :: [EffectT ptr cptr] -> ShowS #

type Patch = EffectT PatchC.PatchP () Source #

A patch can be used to create Effects.

type Effect = EffectT PatchC.InstrumentP (Ptr Float) Source #

An allocated patch.

data State Source #

Instances

Instances details
Pretty State Source # 
Instance details

Defined in Synth.Faust.EffectC

Serialize.Serialize State Source # 
Instance details

Defined in Synth.Faust.EffectC

Patch

patches :: Map Text (Either Text Patch) Source #

All configured effects.

Effect

render Source #

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.

state

unsafeGetState :: Effect -> IO State Source #

getState, but without copying, if you promise to finish with the State before you call render, which will change it.