Hi
I am using Audacity 3.1.0, on Windows 10 Home, 64 bits.
I have a set of 200+ mp3 files in which I want to delete the intro and outtro parts.
So I want to select first 29 seconds and the last 41 seconds, and then trim them.
Since this is my very first macro, I wanted to check if my macro selects the regions properly.
(If this works, I will add more lines to delete the selection and export the file.)
So, I created the following macro:
01 Select End = “29” Mode = “Set” RelativeTo = “ProjectStart” Start = 0
02 Select Mode = “Add” RelativeTo = “ProjectEnd” Start = “41”
03 -END-
But when I run this macro, line#01 has no effect: the final selection is as defined in line#02.
In other words, line#02 does not ADD its own selection to the selection created by line#01.
To test this further, I tried the following variations:
- Changed the mode in both lines to “Add”, so that the selections are added.
- Interchanged the lines, where the first line is in “set” mode and the second line is in “add” mode.
In both cases, the final selection is as defined in the second line only.
So I conclude that the first line actually does its job, but the second line replaces that selection with its own, rather than adding it to the first selection. [BUG]
In other words, the Add mode does not work.
Having found this problem, I tried another macro:
01 Select all
02 Select Mode = “Remove” RelativeTo = “ProjectEnd” Start = “41”
03 -END-
I expected this macro to first select the whole track and then deselect the last 41 seconds.
But nothing is selected.
01 Select all
02 Select End = “29” Mode = “Remove” RelativeTo = “ProjectStart” Start = 0
03 -END-
In this case also, nothing is selected.
That means the “remove” mode also does not work as expected.
I created three separate macros, in which I entered only one line at a time (Select from the start, select from the end, select all).
All three macros work perfectly.
Thus there is no problem with the lines themselves.
It’s the combination that does not work.