Unmute single track


I am quite new to creating macros an scripting as such, but I have a problem. I was wondering if it is possible to crate a macro key to unmute a specific track only when a button is pressed down?

Thanks in advace!

There’s already a keyboard shortcut to mute the selected tracks.

Mute selected tracks: “Alt + Ctr + U”
Unmute selected tracks: “Shift + Alt + Ctrl + U”

Keyboard shortcuts can be customised in Preferences (See: Shortcuts Preferences - Audacity Manual)

The full list of default shortcuts is here: Commands and Keyboard Shortcut Reference - Audacity Manual

Yes, I’m aware about mute/unmute selected track, but I was wondering if there is an option to, for example, assign key “1” to muting/unmuting track 1, key “2” to muting/unmuting track 2 and so on.

And is it possible to set it up to mute the track only when the key is pressed down. As in I press down key “1” and track 1 is muted, but when I release key “1” the track is unmuted.

Thanks :slight_smile:

That is not possible with Audacity’s macros.

This macro will mute the first track (track index = 0):

For a macro to mute the second track, change Track=“0” to Track=“1” in the first command.

You can assign shortcut keys to the macros (Shortcuts Preferences - Audacity Manual)