WAGS.Graph.AudioUnit
- Package
- purescript-wags
- Repository
- mikesol/purescript-wags
#DynamicsCompressor Source
data DynamicsCompressor threshold knee ratio attack release
Term-level constructor for a compressor.
threshold
- The threshold under which compression kicks in.knee
- The kink of the compression.ratio
- The amount of compression to apply.attack
- How far we look ahead. Longer attacks will lead to more crisp compression at the expense of an audible delay.release
- How long the release time of compression should be.
Constructors
DynamicsCompressor threshold knee ratio attack release
Instances
ReifyAU (DynamicsCompressor a b c d e) TDynamicsCompressor
#Highshelf Source
data Highshelf frequency gain
Term-level constructor for a highshelf filter.
frequency
- the frequency above which we start to filter.gain
- the boost or the amount of attenuation to apply.
Constructors
Highshelf frequency gain
Instances
ReifyAU (Highshelf a b) THighshelf
#LoopBuf Source
data LoopBuf buffer onOff playbackRate loopStart loopEnd
Term-level constructor for a looping buffer.
buffer
- a string representing the buffer to use. Note that this string, when reset, will only reset the buffer when it is stopped.onOff
- whether or not the generator is on or off.playbackRate
- the playback rate.loopStart
- where in the file the loop should start.loopEnd
- where in the file the loop should end. A value of 0.0 or less means play to the end of the buffer.
Constructors
LoopBuf buffer onOff playbackRate loopStart loopEnd
Instances
#Microphone Source
#Peaking Source
data Peaking frequency q gain
Term-level constructor for a peaking filter. A peaking filter is a combination of bandpass and notch where the gain parameter modulates whether we are reinforcing or attenuating a frequency.
frequency
- the frequency we are emphasizing or rejecting.q
- the width of the filter.gain
- if positive, we are emphasizing the frequency. If negative, we are rejecting it.
Constructors
Peaking frequency q gain
Instances
#PeriodicOsc Source
data PeriodicOsc periodicOsc onOff frequency
Term-level constructor for a periodic oscillator.
periodicOsc
- the name of the wave table we'll be using. Note that, for a chance to take effect, the periodic oscillator must be stopped.onOff
- whether the generator is on or off.frequency
- the frequency of the oscillator.
Constructors
PeriodicOsc periodicOsc onOff frequency
Instances
ReifyAU (PeriodicOsc a b c) TPeriodicOsc
#PlayBuf Source
data PlayBuf buffer offset onOff playbackRate
Term-level constructor for a playback buffer.
buffer
- a string representing the buffer to use. Note that this string, when reset, will only reset the buffer when it is stopped.offset
- where in the file the playback should start.onOff
- whether or not the generator is on or off.playbackRate
- the playback rate.
Constructors
PlayBuf buffer offset onOff playbackRate
Instances
#SawtoothOsc Source
data SawtoothOsc onOff frequency
Term-level constructor for a sawtooth oscillator.
onOff
- whether the generator is on or off.frequency
- the frequency of the oscillator.
Constructors
SawtoothOsc onOff frequency
Instances
ReifyAU (SawtoothOsc a b) TSawtoothOsc
#SquareOsc Source
data SquareOsc onOff frequency
Term-level constructor for a square-wave oscillator.
onOff
- whether the generator is on or off.frequency
- the frequency of the oscillator.
Constructors
SquareOsc onOff frequency
Instances
ReifyAU (SquareOsc a b) TSquareOsc
#StereoPanner Source
data StereoPanner pan
Term-level constructor for a stereo panner.
pan
- the amount of pan to apply, where -1.0 is fully to the left and 1.0 is fully to the right.
Constructors
StereoPanner pan
Instances
#TriangleOsc Source
data TriangleOsc onOff frequency
Term-level constructor for a triangle oscillator.
onOff
- whether the generator is on or off.frequency
- the frequency of the oscillator.
Constructors
TriangleOsc onOff frequency
Instances
ReifyAU (TriangleOsc a b) TTriangleOsc
#WaveShaper Source
data WaveShaper (floatArray :: Symbol) oversample
Term-level constructor for a WaveShaper, aka distortion.
floatArray
- the shape of the distortion.oversample
- how much to oversample - none, 2x or 4x. Once set, this cannot change without destroying and remaking the audio unit.
Constructors
WaveShaper (Proxy floatArray) oversample
Instances
(Monoid b) => ReifyAU (WaveShaper a b) (TWaveShaper a b)
#APOnOff Source
type APOnOff = AudioParameter_ OnOff
#OversampleNone Source
data OversampleNone
Type-level oversample none for a wave shaper. This is at the type-level and not the term-level via an ADT because we need make sure to construct an entirely new wave shaper if the value changes.
Constructors
Instances
#OversampleTwoX Source
data OversampleTwoX
Type-level oversample 2x for a wave shaper. This is at the type-level and not the term-level via an ADT because we need make sure to construct an entirely new wave shaper if the value changes.
Constructors
Instances
#OversampleFourX Source
data OversampleFourX
Type-level oversample 4x for a wave shaper. This is at the type-level and not the term-level via an ADT because we need make sure to construct an entirely new wave shaper if the value changes.
Constructors
Instances
#ReifyAU Source
class ReifyAU a b | a -> b where
Members
reifyAU :: a -> b
Instances
ReifyAU (Allpass a b) TAllpass
ReifyAU (Bandpass a b) TBandpass
ReifyAU (Constant a b) TConstant
ReifyAU (Convolver sym) (TConvolver sym)
ReifyAU (Delay a) TDelay
ReifyAU (DynamicsCompressor a b c d e) TDynamicsCompressor
ReifyAU (Gain a) TGain
ReifyAU (Highpass a b) THighpass
ReifyAU (Highshelf a b) THighshelf
ReifyAU (LoopBuf a b c d e) TLoopBuf
ReifyAU (Lowpass a b) TLowpass
ReifyAU (Lowshelf a b) TLowshelf
ReifyAU Microphone TMicrophone
ReifyAU (Notch a b) TNotch
ReifyAU (Peaking a b c) TPeaking
ReifyAU (PeriodicOsc a b c) TPeriodicOsc
ReifyAU (PlayBuf a b c d) TPlayBuf
ReifyAU (Recorder sym) (TRecorder sym)
ReifyAU (SawtoothOsc a b) TSawtoothOsc
ReifyAU (SinOsc a b) TSinOsc
ReifyAU Speaker TSpeaker
ReifyAU (SquareOsc a b) TSquareOsc
ReifyAU (StereoPanner a) TStereoPanner
ReifyAU (TriangleOsc a b) TTriangleOsc
(Monoid b) => ReifyAU (WaveShaper a b) (TWaveShaper a b)
#TConvolver Source
data TConvolver (sym :: Symbol)
Type-level constructor for a convolver, aka reverb.
Constructors
TConvolver (Proxy sym)
Instances
Semigroup (TConvolver sym)
Monoid (TConvolver sym)
ReifyAU (Convolver sym) (TConvolver sym)
#TDynamicsCompressor Source
#THighshelf Source
#TMicrophone Source
#TPeriodicOsc Source
#TSawtoothOsc Source
#TSquareOsc Source
#TStereoPanner Source
#TTriangleOsc Source
#TWaveShaper Source
data TWaveShaper (sym :: Symbol) (oversample :: Type)
Type-level constructor for a wave shaper.
Constructors
TWaveShaper (Proxy sym) oversample
Instances
(Monoid b) => Semigroup (TWaveShaper a b)
(Monoid b) => Monoid (TWaveShaper a b)
(Monoid b) => ReifyAU (WaveShaper a b) (TWaveShaper a b)
#ReifyAUFoldingWithIndex Source
data ReifyAUFoldingWithIndex
Constructors
Instances
FoldingWithIndex ReifyAUFoldingWithIndex (proxy sym) (Record inRecord) Unit (Record inRecord)
(Edgeable node' (Tuple node edges), ReifyAU node asType, IsSymbol sym, Lacks sym inRecord, HMap Obliterate edges obliterated, Cons sym (Tuple asType obliterated) inRecord midRecord, HFoldlWithIndex ReifyAUFoldingWithIndex (Record midRecord) edges (Record outRecord)) => FoldingWithIndex ReifyAUFoldingWithIndex (proxy sym) (Record inRecord) node' (Record outRecord)
#ReifyAUs Source
type ReifyAUs r = forall rr. HFoldlWithIndex ReifyAUFoldingWithIndex (Record ()) r rr => rr
#reifyAUs Source
reifyAUs :: forall r rr. HFoldlWithIndex ReifyAUFoldingWithIndex (Record ()) r rr => r -> rr
Reify many audio units.
- Modules
- FRP.
Event. MIDI - WAGS.
Change - WAGS.
Change. Optionals - WAGS.
Comonad - WAGS.
Connect - WAGS.
Control. Functions - WAGS.
Control. Functions. Validated - WAGS.
Control. Indexed - WAGS.
Control. Types - WAGS.
Create - WAGS.
Create. Optionals - WAGS.
CreateT - WAGS.
Debug - WAGS.
Destroy - WAGS.
Disconnect - WAGS.
Edgeable - WAGS.
Graph. AudioUnit - WAGS.
Graph. Edge - WAGS.
Graph. Graph - WAGS.
Graph. Node - WAGS.
Graph. Oversample - WAGS.
Graph. Paramable - WAGS.
Graph. Parameter - WAGS.
Interpret - WAGS.
Math - WAGS.
Patch - WAGS.
Rendered - WAGS.
Run - WAGS.
Util - WAGS.
Validation