MCPcopy Create free account
hub / github.com/audacity/audacity / isSpectralSelectionView

Function isSpectralSelectionView

src/tracks/ui/SelectHandle.cpp:117–123  ·  view source on GitHub ↗

This returns true if we're a spectral editing track.

Source from the content-addressed store, hash-verified

115
116 // This returns true if we're a spectral editing track.
117 inline bool isSpectralSelectionView(const ChannelView &channelView) {
118 const WaveChannel *pChannel{};
119 return
120 channelView.IsSpectral() &&
121 (pChannel = channelView.FindChannel<const WaveChannel>().get()) &&
122 SpectrogramSettings::Get(*pChannel).SpectralSelectionEnabled();
123 }
124
125 enum SelectionBoundary {
126 SBNone,

Callers 5

ChooseBoundaryFunction · 0.70
ClickMethod · 0.70
PreviewMethod · 0.70
StartFreqSelectionMethod · 0.70

Calls 4

GetFunction · 0.85
IsSpectralMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected