BUG: undocumented behavior with recursive macros
Posted: Thu Mar 07, 2019 10:16 am
Greetings,
Exact version number of Audacity: 2.3.0 (sorry - I could not find a bug report forum for non-alpha versions)
Operating system version: Windows 10 64 bit, up to date, regular update channel (not insider)
Brief description of the problem:
There are two undocumented behaviors with recursive macros.
- When adding a macro to its own commands recursively, applying the macro applies the operations only twice instead of repeatedly / until the first error.
- Using Undo reverts only the second macro application.
Detailed, step by step instructions for how to reproduce the problem:
1. Create a new project.
2. Generate three tone clips (I used three 2 second, 440hz sine tones, spaced 0.5 seconds apart).
3. Confirm they are two unconnected clips with "select next clip" and "select previous clip".
4. Create a new macro named "TestMacro":
- Select Next Clip
- Amplify: -29db
- TestMacro (Macro_TestMacro)
- END
Project setup at this stage:

5. Close the macro window.
6. Move the cursor to the start of the project (Home key).
7. Use Tools > Apply Macro > TestMacro
The first two clips are turned down. The third clip is not.
This is the first undocumented behavior: I would expect the macro to keep running recursively and also be applied to the third clip.

8. Use Edit > Undo Apply 'TestMacro'
Only the second clip returns to original volume.
The first clip is still reduced in volume.
The next "Undo" step is the tone generator.

Exact version number of Audacity: 2.3.0 (sorry - I could not find a bug report forum for non-alpha versions)
Operating system version: Windows 10 64 bit, up to date, regular update channel (not insider)
Brief description of the problem:
There are two undocumented behaviors with recursive macros.
- When adding a macro to its own commands recursively, applying the macro applies the operations only twice instead of repeatedly / until the first error.
- Using Undo reverts only the second macro application.
Detailed, step by step instructions for how to reproduce the problem:
1. Create a new project.
2. Generate three tone clips (I used three 2 second, 440hz sine tones, spaced 0.5 seconds apart).
3. Confirm they are two unconnected clips with "select next clip" and "select previous clip".
4. Create a new macro named "TestMacro":
- Select Next Clip
- Amplify: -29db
- TestMacro (Macro_TestMacro)
- END
Project setup at this stage:

5. Close the macro window.
6. Move the cursor to the start of the project (Home key).
7. Use Tools > Apply Macro > TestMacro
The first two clips are turned down. The third clip is not.
This is the first undocumented behavior: I would expect the macro to keep running recursively and also be applied to the third clip.

8. Use Edit > Undo Apply 'TestMacro'
Only the second clip returns to original volume.
The first clip is still reduced in volume.
The next "Undo" step is the tone generator.
