Skip to content

Unreliable macro processing #4146

Open
Open

Description

@SteveDaulton

Bug description

During the execution of an Audacity macro, some (valid) commands may be skipped without warning.

Steps to reproduce

  1. Generate a tone
  2. Apply 4 "splits" with approximately even spacing to create 5 audio clips
  3. Apply this macro to the project:
CursTrackStart:
SelNextClip:
FadeOut:Use_Preset="<Current Settings>"
SelNextClip:
FadeOut:Use_Preset="<Current Settings>"
SelNextClip:
FadeOut:Use_Preset="<Current Settings>"
SelNextClip:
FadeOut:Use_Preset="<Current Settings>"
SelNextClip:
FadeOut:Use_Preset="<Current Settings>"

Expected behavior

First Track000

Actual behavior

Sometimes it works,
First Track000

Sometimes it doesn't. Observe that in this instance, some of the "SelNextClip:" commands have failed, causing the second clip to be processed 4 times instead of once.
First Track000

Audacity Version

current master / alpha / nightly build

Operating system

Linux

Additional context

Problem also reported on Windows, so probably affects all platforms.

When testing on Audacity 2.4.2, the macro works 100% reliably.

Activity

  1. added
    AU3-bug
    regression
    on Jan 4, 2023
  2. added
    macros / scripting
    on Feb 24, 2023
  3. SteveDaulton commented on Nov 20, 2024

    @SteveDaulton
    MemberAuthor

    Nearly 2 years since I logged this bug, and it is still affecting end users

  4. DavidBailes commented on Jun 10, 2025

    @DavidBailes
    Collaborator

    @SteveDaulton . I can't reproduce this bug using the steps to reproduce using 3.7.3 either on Windows or Xubuntu 22.04
    There is an issue if the sample rate of the track is different from the project sample rate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    AU3-bugmacros / scriptingregression

    Type

    Fields

    Priority

    None yet

    Effort

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions