AbstractAbstractconvertIf the value should be converted or not
Abstract ReadonlymaxThe maximum value of the output given the units
Abstract ReadonlyminThe minimum value of the output given the units
AbstractoverriddenTrue if the signal value is being overridden by a connected signal. Internal use only.
Abstract ReadonlyunitsThe unit type
AbstractvalueThe current value of the parameter. Setting this value is equivalent to setValueAtTime(value, context.currentTime)
AbstractcancelThis is similar to cancelScheduledValues except it holds the automated value at time until the next automated event.
AbstractcancelCancels all scheduled parameter changes with times greater than or equal to startTime.
return Tone.Offline(() => {
const signal = new Tone.Signal(0).toDestination();
signal.setValueAtTime(0.1, 0.1);
signal.setValueAtTime(0.2, 0.2);
signal.setValueAtTime(0.3, 0.3);
signal.setValueAtTime(0.4, 0.4);
// cancels the last two scheduled changes
signal.cancelScheduledValues(0.3);
}, 0.5, 1);
AbstractexponentialStart 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'
AbstractexponentialSchedules an exponential continuous change in parameter value from the current time and current value to the given value over the duration of the rampTime.
const delay = new Tone.FeedbackDelay(0.5, 0.98).toDestination();
// a short burst of noise through the feedback delay
const noise = new Tone.Noise().connect(delay).start().stop("+0.1");
// making the delay time shorter over time will also make the pitch rise
delay.delayTime.exponentialRampTo(0.01, 20);
AbstractexponentialSchedules an exponential continuous change in parameter value from the previous scheduled parameter value to the given value.
AbstractgetAbstractlinearSchedules an linear continuous change in parameter value from the current time and current value to the given value over the duration of the rampTime.
this
const delay = new Tone.FeedbackDelay(0.5, 0.98).toDestination();
// a short burst of noise through the feedback delay
const noise = new Tone.Noise().connect(delay).start().stop("+0.1");
// making the delay time shorter over time will also make the pitch rise
delay.delayTime.linearRampTo(0.01, 20);
AbstractlinearSchedules a linear continuous change in parameter value from the previous scheduled parameter value to the given value.
AbstractrampRamps 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
AbstractsetCreates a schedule point with the current value at the current time.
Automation methods like linearRampToValueAtTime and exponentialRampToValueAtTime
require a starting automation value usually set by setValueAtTime. This method
is useful since it will do a setValueAtTime with whatever the currently computed
value at the given time is.
When to add a ramp point.
AbstractsetAbstractsetAbstractsetAbstracttargetStart 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.
Abstract base class for Param and Signal