I am trying to automatically ramp volume over the course of a tease. I have a var set -
Code: Select all
var teaseramps = (volend - volstart) / teasetime
This works by taking the user choices of start volume, end volume and tease time to calculate % increases needed per minute of playing to get to the end target volume
However, I am having issues getting setInterval to work -
Code: Select all
var myInterval;
myInterval = setInterval(whichFunction,60000);
whichFunction{volume = volume + teaseramps
}
It doesnt seem to matter if I put it in an eval or announce, it just isn't playing
Can anyone help or give me a better way to achieve what I want?