Page 1 of 2

Make all Tracks Fit

Posted: Fri Aug 24, 2018 5:53 pm
by mac_audio
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

Re: Make all Tracks Fit

Posted: Sun Aug 26, 2018 12:27 pm
by waxcylinder
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

Re: Make all Tracks Fit

Posted: Sun Aug 26, 2018 7:21 pm
by mac_audio
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.

Re: Make all Tracks Fit

Posted: Sun Aug 26, 2018 8:01 pm
by steve
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.

Re: Make all Tracks Fit

Posted: Mon Aug 27, 2018 1:32 am
by mac_audio
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?

Re: Make all Tracks Fit

Posted: Mon Aug 27, 2018 1:49 am
by steve
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".

Re: Make all Tracks Fit

Posted: Mon Aug 27, 2018 1:55 am
by mac_audio
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.

Re: Make all Tracks Fit

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

Re: Make all Tracks Fit

Posted: Mon Aug 27, 2018 1:59 am
by mac_audio
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?)

Re: Make all Tracks Fit

Posted: Mon Aug 27, 2018 2:00 am
by steve
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