Make all Tracks Fit

Help for Audacity on macOS.
Forum rules
ImageThis forum is for Audacity on macOS 10.4 and later.
Please state which version of macOS you are using,
and the exact three-section version number of Audacity from "Audacity menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
mac_audio
Posts: 122
Joined: Sun Aug 19, 2018 1:28 am
Operating System: macOS 10.15 Catalina or later

Make all Tracks Fit

Post by mac_audio » Fri Aug 24, 2018 5:53 pm

macOS Sierra
Audacity v2.2.2

Audacity is set to record on 3 Channels.

When I open a new project and hit "Record" the 3 Tracks that Audacity creates to map to the 3 Channels I am recording are really tiny.

https://i.imgur.com/KpYSyLU.png

(I find this strange, because before I added a 3rd channel, when I would hit "Record", my stereo tracks are "maximized" by default.)


If I go to View > Track Size > Expand Collapsed Tracks (Shift+Cmd+X) and then View > Track Size > Fit to Height (Shift+Cmd+F), then I get this...

https://i.imgur.com/Rugzb3s.png

Looks good, but what a pain to have to do all of that to get things to look as I feel they should by default.

Is there any way to fix this issue?

Thanks,

Mac Audio

waxcylinder
Forum Staff
Posts: 14571
Joined: Tue Jul 31, 2007 11:03 am
Operating System: Windows 10

Re: Make all Tracks Fit

Post by waxcylinder » Sun Aug 26, 2018 12:27 pm

Go to Tracks preferences and try checking "on" the "Auto-fit track height"
See this page in the Manual: https://manual.audacityteam.org/man/tra ... ences.html

WC
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *

mac_audio
Posts: 122
Joined: Sun Aug 19, 2018 1:28 am
Operating System: macOS 10.15 Catalina or later

Re: Make all Tracks Fit

Post by mac_audio » Sun Aug 26, 2018 7:21 pm

waxcylinder wrote:
Sun Aug 26, 2018 12:27 pm
Go to Tracks preferences and try checking "on" the "Auto-fit track height"
See this page in the Manual: https://manual.audacityteam.org/man/tra ... ences.html

WC
That doesn't work when I have Audacity's "Recording Device" pointing to my virtual Loopback device which has 3 channels and I have Audacity's "Channels" set to 3.

Then I get what I showed in my OP.

steve
Site Admin
Posts: 80677
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Make all Tracks Fit

Post by steve » Sun Aug 26, 2018 8:01 pm

mac_audio wrote:
Sun Aug 26, 2018 7:21 pm
That doesn't work when I have Audacity's "Recording Device" pointing to my virtual Loopback device which has 3 channels and I have Audacity's "Channels" set to 3.
From the code, the behaviour that you observe appears to be what is intended, though I tend to agree that it is not the expected behaviour. I would not expect the tracks to be minimised when "Auto-fit track height" is enabled.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

mac_audio
Posts: 122
Joined: Sun Aug 19, 2018 1:28 am
Operating System: macOS 10.15 Catalina or later

Re: Make all Tracks Fit

Post by mac_audio » Mon Aug 27, 2018 1:32 am

steve wrote:
Sun Aug 26, 2018 8:01 pm
mac_audio wrote:
Sun Aug 26, 2018 7:21 pm
That doesn't work when I have Audacity's "Recording Device" pointing to my virtual Loopback device which has 3 channels and I have Audacity's "Channels" set to 3.
From the code, the behaviour that you observe appears to be what is intended, though I tend to agree that it is not the expected behaviour. I would not expect the tracks to be minimised when "Auto-fit track height" is enabled.
So this is how Audacity is built?

Why does this work for stereo recordings, but not when there are 3 channels/tracks?

steve
Site Admin
Posts: 80677
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Make all Tracks Fit

Post by steve » Mon Aug 27, 2018 1:49 am

mac_audio wrote:
Mon Aug 27, 2018 1:32 am
Why does this work for stereo recordings, but not when there are 3 channels/tracks?
It's not that it "doesn't work". It works exactly the way the code tells it to work.
This is the relevant bit of code:

Code: Select all

if (recordingChannels > 2) {
   newTrack->SetMinimized(true);
}
which is saying, "if more than 2 channels are being recorded, set the tracks to collapsed".

I presume that the reason for this design decision, is the assumption that if the recording is not mono or stereo but "multi-channel", that the project is likely to end up with a lot of tracks, so the tracks are set "collapsed" by default to allow more tracks to be visible on screen. I'd also guess that it was designed this way before the option to "Auto-fit track height" existed.

In my view, the more expected behaviour would be for the code to be:

Code: Select all

if ((recordingChannels > 2) && !(p->GetTracksFitVerticallyZoomed())) {
   newTrack->SetMinimized(true);
}
which is saying "if more than 2 channels are being recorded, set the tracks to collapsed, unless the user has selected the preference to Auto-fit track height".
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

mac_audio
Posts: 122
Joined: Sun Aug 19, 2018 1:28 am
Operating System: macOS 10.15 Catalina or later

Re: Make all Tracks Fit

Post by mac_audio » Mon Aug 27, 2018 1:55 am

Steve,

Thanks for the explanation, but I have a coding background.

Just out of curiosity... What language is Audacity written in?

Oh well, this is a minor annoyance, but not the end of the world.

I have trained my brain to quickly do cmd+shift+x and cmd+shift+f and things look like I want.

steve
Site Admin
Posts: 80677
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Make all Tracks Fit

Post by steve » Mon Aug 27, 2018 1:57 am

mac_audio wrote:
Mon Aug 27, 2018 1:55 am
Just out of curiosity... What language is Audacity written in?
Mostly C++
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

mac_audio
Posts: 122
Joined: Sun Aug 19, 2018 1:28 am
Operating System: macOS 10.15 Catalina or later

Re: Make all Tracks Fit

Post by mac_audio » Mon Aug 27, 2018 1:59 am

steve wrote:
Mon Aug 27, 2018 1:57 am
mac_audio wrote:
Mon Aug 27, 2018 1:55 am
Just out of curiosity... What language is Audacity written in?
Mostly C++
Okay, cool.

And, yes, I would have programmed things as you described above. (Maybe in a future version?)

steve
Site Admin
Posts: 80677
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Make all Tracks Fit

Post by steve » Mon Aug 27, 2018 2:00 am

mac_audio wrote:
Mon Aug 27, 2018 1:55 am
but I have a coding background.
If you want to make the modification yourself, this bit of code is in ControlToolBar.cpp.
The Audacity 2.2.2 source code is here: https://github.com/audacity/audacity/tr ... 7c4bca2de8
Build instructions for macOS are here: https://github.com/audacity/audacity/bl ... /Build.txt
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply