-
Notifications
You must be signed in to change notification settings - Fork 126
Automation
Oskar Eriksson edited this page Jan 29, 2019
·
1 revision
Certain properties of Tuna nodes can be automated.
// create a new delay with a feedback value of 0
let delay = new tuna.Delay({feedback: 0});
// ramp up the feedback to 1 over 1.5 seconds (1500 ms), and start now (0 evaluates context.currentTime)
delay.automate("feedback", 1, 1500, 0);
The call signature looks as follows; automate(property, value, duration, startTime)
To find out if a property is automatable, check delay.defaults.feedback.automatable
.
Currently, only those properties that expose AudioParams are automatable, and linear interpolation will be used for all automation. This could change in the future (with a breaking change and a version bump accordingly), with more properties added and more options for automation curves.