WAGS.Graph.Parameter
- Package
- purescript-wags
- Repository
- mikesol/purescript-wags
#AudioParameter_ Source
newtype AudioParameter_ aA 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)
#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 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
#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 }
#Paramable Source
class Paramable a whereA value that can be coerced to an initial control-rate audio parameter.
Members
paramize :: a -> AudioParameter
Instances
- 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.
Debug - WAGS.
Destroy - WAGS.
Disconnect - WAGS.
Edgeable - WAGS.
Graph. AudioUnit - WAGS.
Graph. Edge - WAGS.
Graph. Graph - WAGS.
Graph. Node - WAGS.
Graph. Oversample - WAGS.
Graph. Parameter - WAGS.
Interpret - WAGS.
Math - WAGS.
NE2CF - WAGS.
Patch - WAGS.
Rendered - WAGS.
Run - WAGS.
Util - WAGS.
Validation