The maximum value of the output given the units
The minimum value of the output given the units
True if the signal value is being overridden by a connected signal. Internal use only.
The current value of the parameter. Setting this value is equivalent to setValueAtTime(value, context.currentTime)
This is similar to cancelScheduledValues except it holds the automated value at time until the next automated event.
Cancels all scheduled parameter changes with times greater than or equal to startTime.
Start exponentially approaching the target value at the given time. Since it is an exponential approach it will continue approaching after the ramp duration. The rampTime is the time that it takes to reach over 99% of the way towards the value. This methods is similar to setTargetAtTime except the third argument is a time instead of a 'timeConstant'
//exponentially ramp to the value 2 over 4 seconds.
signal.exponentialRampTo(2, 4);
The value to ramp to.
Schedules an exponential continuous change in parameter value from the current time and current value to the given value over the duration of the rampTime.
//exponentially ramp to the value 2 over 4 seconds.
signal.exponentialRampTo(2, 4);
The value to ramp to.
Schedules an exponential continuous change in parameter value from the previous scheduled parameter value to the given value.
Get the signals value at the given time. Subsequent scheduling may invalidate the returned value.
Schedules an linear continuous change in parameter value from the current time and current value to the given value over the duration of the rampTime.
//linearly ramp to the value 4 over 3 seconds.
signal.linearRampTo(4, 3);
The value to ramp to.
Schedules a linear continuous change in parameter value from the previous scheduled parameter value to the given value.
Ramps to the given value over the duration of the rampTime.
Automatically selects the best ramp type (exponential or linear)
depending on the units of the signal
//ramp to the value either linearly or exponentially
//depending on the "units" value of the signal
signal.rampTo(0, 10);
//schedule it to ramp starting at a specific time
signal.rampTo(0, 10, 5)
Creates a schedule point with the current value at the current time. This is useful for creating an automation anchor point in order to schedule changes from the current value.
param.getValueAtTime(Tone.now())
Start exponentially approaching the target value at the given time with a rate having the given time constant.
Schedules a parameter value change at the given time. Does this work? is this working. are you working?
//set the frequency to "G4" in exactly 1 second from now.
freq.setValueAtTime("G4", "+1");
The value to set the signal.
Sets an array of arbitrary parameter values starting at the given time for the given duration.
If the values in the curve should be scaled by some value
Start exponentially approaching the target value at the given time. Since it is an exponential approach it will continue approaching after the ramp duration. The rampTime is the time that it takes to reach over 99% of the way towards the value.
//exponentially ramp to the value 2 over 4 seconds.
signal.exponentialRampTo(2, 4);
The value to ramp to.