Bugzilla – Bug 2493
No command for setting Multi-view
Last modified: 2020-09-11 07:40:25 UTC
In 2.3.3 you could change the track view to any supported view (Waveform / Waveform (dB) / Spectrogram) with the "Set Track Visuals" command. Example: SetTrackVisuals:Display="Waveform" Scale="dB" If that command is saved as a Macro, then you can set a keyboard shortcut for it. Now we have "Multi-View" but no scripting / Macro command to enable (or disable) it. It is "possible" to enable / disable Multi-view from the keyboard (using the track context menu, cursor keys and Enter), but you can't set a keyboard shortcut. (It would also be nice to be able to "get" the current view without having to resort to Nyquist)
DEVEL-FIX MADE https://github.com/audacity/audacity/commit/7e573b9b2ffa4dd013bf965bc79755a314db258a
In the Macro command "Set Track" the "Display" drop-down offers "Multi-view"
>In the Macro command "Set Track" the "Display" drop-down offers "Multi-view" testing on W10 and macOS 10.15.6 with Audacity 3.0.0 f06b9a9 This is true on both plaforms
Author of the feature has objections to the implementation. This needs review and rework to avoid "magic numbers."
Strong objections to this fix. "Multi-view" is not to be treated as another type of view. Rather it requests that one of each kind of view be shown. A track (really a view of a track, not the same thing) no longer has view type as a single property. There must be a list of the types of sub-views that are shown if there is more than one view, and "Multi-view" will not be another atom to put into that list. See Nyquist.cpp around line 1130 where 'VIEW property is computed.
Reimplemented at https://github.com/audacity/audacity/commit/c7896a36564da05907a3f6603cb3e7c68ade6d49 Please re-test.
(In reply to Paul L from comment #6) Tested on W10 with Audacity 3.0.0 c7896a3 This still works