Module
WAGS.Graph.Parameter
- Package
- purescript-wags
- Repository
- mikesol/purescript-wags
#AudioParameter_ Source
newtype AudioParameter_ a
A control-rate audio parameter as a newtype.
Constructors
Instances
(Eq a) => Eq (AudioParameter_ a)
(Ord a) => Ord (AudioParameter_ a)
Functor AudioParameter_
Alt AudioParameter_
Plus AudioParameter_
Apply AudioParameter_
Applicative AudioParameter_
Bind AudioParameter_
Monad AudioParameter_
(Semigroup a) => Semigroup (AudioParameter_ a)
(Monoid a) => Monoid (AudioParameter_ a)
Newtype (AudioParameter_ a) _
(Show a) => Show (AudioParameter_ a)
(Semiring a) => Semiring (AudioParameter_ a)
(Ring a) => Ring (AudioParameter_ a)
(DivisionRing a) => DivisionRing (AudioParameter_ a)
(CommutativeRing a) => CommutativeRing (AudioParameter_ a)
(EuclideanRing a) => EuclideanRing (AudioParameter_ a)
#AudioParameter Source
type AudioParameter = AudioParameter_ Number
#uop Source
uop :: forall a b. (a -> b) -> AudioParameter_ a -> AudioParameter_ b
#bop Source
bop :: forall a b c. (a -> b -> c) -> AudioParameter_ a -> AudioParameter_ b -> AudioParameter_ c
#AudioParameter_' Source
type AudioParameter_' a = { param :: Maybe a, timeOffset :: Number, transition :: AudioParameterTransition }
A control-rate audio parameter.
param
: The parameter as a floating-point value or an instruction to cancel all future parameters.
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 AudioParameterTransition
A transition between two points in time.
NoRamp
is a discrete step.LinearRamp
is linear interpolation between two values.ExponentialRamp
is exponential interpolation between two values.Immediately
erases the current value and replaces it with this one. Different thanNoRamp
in that it does not take into account scheduling and executes immediately. Useful for responsive instruments.
Constructors
Instances
#ff Source
ff :: forall a. Number -> AudioParameter_ a -> AudioParameter_ a
#modTime Source
modTime :: forall a. (Number -> Number) -> AudioParameter_ a -> AudioParameter_ a
#modParam Source
modParam :: forall a. (a -> a) -> AudioParameter_ a -> AudioParameter_ a
#modRamp Source
modRamp :: forall a. (AudioParameterTransition -> AudioParameterTransition) -> AudioParameter_ a -> AudioParameter_ a
#noRamp Source
noRamp :: forall a. AudioParameter_ a -> AudioParameter_ a
#linearRamp Source
linearRamp :: forall a. AudioParameter_ a -> AudioParameter_ a
#exponentialRamp Source
exponentialRamp :: forall a. AudioParameter_ a -> AudioParameter_ a
#immediately Source
immediately :: forall a. AudioParameter_ a -> AudioParameter_ a
#defaultParam Source
defaultParam :: AudioParameter'
A default audio parameter.
defaultParam = { param: 0.0, timeOffset: 0.0, transition: LinearRamp }
- 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