Module
WAGS.Graph.Parameter
- Package
- purescript-wags
- Repository
- mikesol/purescript-wags
#AudioParameter Source
#AudioParameter' Source
type AudioParameter' = { param :: Number, timeOffset :: Number, transition :: AudioParameterTransition }A control-rate audio parameter.
param: The parameter as a floating-point value.
timeOffset: How far ahead of the current playhead to set the parameter. This can be used in conjunction with the headroom parameter in run to execute precisely-timed events. For example, if the headroom is 20ms and an attack should happen in 10ms, use timeOffset: 10.0 to make sure that the taret parameter happens exactly at the point of attack.
transition: Transition between two points in time.
#AudioParameterTransition Source
data AudioParameterTransitionA transition between two points in time.
NoRampis a discrete step.LinearRampis linear interpolation between two values.ExponentialRampis exponential interpolation between two values.Immediatelyerases the current value and replaces it with this one. Different thanNoRampin that it does not take into account scheduling and executes immediately. Useful for responsive instruments.
Constructors
Instances
#param Source
param :: Number -> AudioParameterCreate an audio parameter from a number using default parameters.
#defaultParam Source
defaultParam :: AudioParameter'A default audio parameter.
defaultParam = { param: 0.0, timeOffset: 0.0, transition: LinearRamp }
- 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