Macro for multiple tracks "Fade Out"

Hi
I have a project with an arbitrarily number of tracks with different lengths.
Would like to “Fade Out” each track with a fixed time interval, say 5 seconds.
How to do this with a macro script?
Best regards,
Ulf Johansson

If you mean that you want to “fade out” the tracks, take a look at the “Fade Ends” macro that is included in Audacity. Basically you just need to copy the last 3 commands from that macro. Adjust the “End=1” (one second fade) to whatever length you want the fade.

Hi Steve
I looked at that script and it’s not working on multiple tracks with
different lengths in a project.
Try with this example:
fadeout-time 4s
track 1: length 20s
track 2: length 30s
track 3: length 10s
/UJ

You need to apply the macro to the audio files, not to tracks in the project.

While it is possible to automate fading out the ends in a project, it is quite complex and will probably take a lot of time and effort to write and test. To apply a fade out to tracks in the project, just do it manually.

Hi Steve
Ok. Thanks!
I wished to use “project” so I can se what’s going on before final saving to files.
/UJ

It should work with “project” as long as there is just one audio track in the project.