Batch Processing Clips Macro is not working when the "SelNextClip" Command is used

Hi - I have a very simple macro that I’m using to automate normalizing every other clip in a track one by one to -12 peak amplitude. The macro is very simple:

SelNextClip:
SelNextClip:
Normalize:ApplyGain=“1” PeakLevel=“-12” RemoveDcOffset=“1” StereoIndependent=“0”
SelNextClip:
SelNextClip:
Normalize:ApplyGain=“1” PeakLevel=“-12” RemoveDcOffset=“1” StereoIndependent=“0”

…repeat ad nauseum.

For some reason instead of selecting the next clip, Audacity seems to be skipping over some/most of the ‘Select next clip’ Commands, and ends up either just normalizing one clip over and over or moving forward once or twice (It doesn’t consistently do either) and then normalizing that over and over. Even if I reduce it down to just one iteration of ‘next clip, next clip, normalize’ it still doesn’t select next clip properly. Audacity seems to just have an issue applying normalize & selecting the next clip in the same macro.

Any ideas how to fix this or commands to prevent it from skipping the ‘Select next clip’ commands?

It’s a bug. I logged the issue on Jan 4th: Unreliable macro processing · Issue #4146 · audacity/audacity · GitHub

1 Like

Thanks Steve - have you been able to find any workarounds for this sort of thing?

The only workaround that I’m aware of is to use an older version of Audacity. I’m using Audacity 2.4.2 but there may be more recent versions that work.

1 Like