WAGS.Graph.Constructors
- Package
- purescript-wags
- Repository
- mikesol/purescript-wags
#DynamicsCompressor Source
data DynamicsCompressor threshold knee ratio attack release audioUnit
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 audioUnit
#LoopBuf Source
data LoopBuf playbackRate
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.Number
- where in the file the loop should start.Number
- where in the file the loop should end. A value of 0.0 or less means play to the end of the buffer.
Constructors
#Peaking Source
data Peaking frequency q gain audioUnit
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.audioUnit
- the audio unit to filter.
Constructors
Peaking frequency q gain audioUnit
#PeriodicOsc Source
data PeriodicOsc 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 String OnOff frequency
#PlayBuf Source
data PlayBuf 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.Number
- where in the file the playback should start.OnOff
- whether or not the generator is on or off.playbackRate
- the playback rate.
Constructors
#SawtoothOsc Source
data SawtoothOsc 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
#StereoPanner Source
data StereoPanner pan audioUnit
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.audioUnit
- the audio unit to pan.
Constructors
StereoPanner pan audioUnit
#TriangleOsc Source
data TriangleOsc 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
#WaveShaper Source
data WaveShaper (floatArray :: Symbol) oversample audioUnit
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.audioUnit
- the audio unit to which we apply distortion.
Constructors
WaveShaper (Proxy floatArray) oversample audioUnit
#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
#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
#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
- Modules
- FRP.
Event. MIDI - WAGS.
Change - WAGS.
Connect - WAGS.
Control. Functions - WAGS.
Control. MemoizedState - WAGS.
Control. Qualified - WAGS.
Control. Thunkable - WAGS.
Control. Types - WAGS.
Create - WAGS.
Cursor - WAGS.
Debug - WAGS.
Destroy - WAGS.
Disconnect - WAGS.
Graph. Constructors - WAGS.
Graph. Decorators - WAGS.
Graph. Getter - WAGS.
Graph. Optionals - WAGS.
Graph. Parameter - WAGS.
Interpret - WAGS.
Move - WAGS.
MoveNode - WAGS.
Rebase - WAGS.
Rendered - WAGS.
Run - WAGS.
Universe. AudioUnit - WAGS.
Universe. Bin - WAGS.
Universe. BinN - WAGS.
Universe. EdgeProfile - WAGS.
Universe. Graph - WAGS.
Universe. Node - WAGS.
Universe. Skolems - WAGS.
Universe. Universe - WAGS.
Util - WAGS.
Validation