Just looking at the audio documentation. Can I adjust the fadeout
time from the preset 5s? I can see how I could adjust fadein time using fadeover to. But that starts playing a track. What if I want it to end - but speed up or slow down the fadeout? Would it be 2 separate commands, eg Fadeover to 10 0 and then Stop?
You can just use fadeoverto 10 0 in the <<audio>> macro for that, except for the stop part (also, be careful of the capitalization, since it probably matters).
If you want to trigger the stop after 10 seconds as well, then you can do this:
Any track faded to volume 0 automatically ends playback.
The differences are:
fadein: Start playback of the selected tracks and fade them from their current volume level to 1 (loudest) over 5 seconds.
fadeout: Start playback of the selected tracks and fade them from their current volume level to 0 (silent) over 5 seconds.
fadeovertosecondslevel: Start playback of the selected tracks and fade them from their current volume level to the specified level over the specified number of seconds.
fadetolevel: Start playback of the selected tracks and fade them from their current volume level to the specified level over 5 seconds.
Hey, can I use a variable function in the setTimeout? Using the back-quotes doesn’t seem to work. Is there a different formatting style? This is what I have at the moment.
Amazing! Thank you! You wouldn’t have any insight into why the setTimout function is temperamental when it comes to triggering audio tracks on mobile devices? (It’s a subject of another thread I have going here. Any help would be super appreciated—am I going to need to make a desktop version of this project, and then a mobile one…?