Skip to content

Macros: Incorrect and inconsistent results from "Tone" command #4280

Closed

Description

@SteveDaulton

Bug description

Original report: https://forum.audacityteam.org/viewtopic.php?p=463623#p463623

Steps to reproduce

  1. Run the following macro:

NewMonoTrack:
NewMonoTrack:
SelectTracks:Mode="Set" Track="0"
SetTrackStatus:Name="300"
SelectTracks:Mode="Set" Track="1"
SetTrackStatus:Name="400"
SelectTracks:Mode="Set" Track="0"
SelectTime:End="1" Start="0"
Tone:Amplitude="0.7" Frequency="300" Interpolation="Linear" Waveform="Sine"
SelectTracks:Mode="Set" Track="1"
SelectTime:End="2" Start="1"
Tone:Amplitude="0.7" Frequency="400" Interpolation="Linear" Waveform="Sine"
FitV:

  1. If the bug does not appear, undo and run the macro again.

Expected behavior

Trackpanel000

Actual behavior

Trackpanel001

Audacity Version

current master / alpha / nightly build; 3.3.2

Operating system

Any

Activity

  1. added
    AU3-bug
    regression
    on Feb 6, 2023
  2. SteveDaulton commented on Feb 6, 2023

    @SteveDaulton
    MemberAuthor

    See also: #4146

  3. added
    macros / scripting
    on Feb 6, 2023
  4. dozzzzer commented on Feb 24, 2023

    @dozzzzer
    Contributor

    @SteveDaulton
    with the STRs above, on macOS it produces the following output:

    image

    Are you sure no steps are missing here?

  5. added
    Could not reproduce
    on Feb 24, 2023
  6. SteveDaulton commented on Feb 24, 2023

    @SteveDaulton
    MemberAuthor

    Are you sure no steps are missing here?

    The macro is correct.
    Assuming that you copied the macro correctly, that error message shows that Audacity failed to run the macro correctly.

  7. SteveDaulton commented on Feb 24, 2023

    @SteveDaulton
    MemberAuthor

    LWinterberg added the Could not reproduce

    Does that mean that you got the expected result?
    Did you try running it several times?

  8. added
    P3
    and removed
    Could not reproduce
    on May 31, 2023
  9. MjnMixael commented on Aug 21, 2023

    @MjnMixael

    Ran into this same issue last night. Ended up rolling all the way back to Audacity release 3.1.3 which does not have the issue.

  10. SteveDaulton commented on Nov 4, 2023

    @SteveDaulton
    MemberAuthor

    This has become worse in the new 3.4.0 release. I'm now consistently getting this error:

    {
        "timestamp": 1699129479,
        "event_id": "7d1225ba71404fd1bcc40ff26a23398f",
        "platform": "native",
        "release": "[email protected]",
        "contexts": {
            "os": {
                "type": "os",
                "name": "Unix",
                "version": "5.15.0"
            }
        },
        "exception": {
            "values": [
                {
                    "type": "Internal_Error",
                    "value": "Internal error at /<path> line 1481.\nPlease inform the Audacity team at https://<path>.",
                    "mechanism": {
                        "type": "runtime_error",
                        "handled": false
                    }
                }
            ]
        }
    }
    
  11. dozzzzer commented on Nov 6, 2023

    @dozzzzer
    Contributor

    I'm now consistently getting this error

    I'm getting this error as well.

  12. moved this from To-Do to Ready for QA in [AU3] Main boardon May 6, 2026
  13. added this to the Audacity 3.7.8 milestone on May 6, 2026
  14. moved this from Ready for QA to In QA in [AU3] Main boardon May 15, 2026
  15. moved this from In QA to Ready for merge in [AU3] Main boardon May 25, 2026
  16. moved this from Ready for merge to Done in [AU3] Main boardon May 25, 2026
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-bugP3macros / scriptingregression

    Type

    Fields

    Priority

    None yet

    Effort

    None yet

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions