mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-11 09:31:13 +02:00
Remove spectral selection edges when not in spectral selection.
This commit is contained in:
parent
26707aabfa
commit
d1994e702e
@ -1806,28 +1806,22 @@ static float sumFreqValues(
|
||||
AColor::ColorGradientChoice ChooseColorSet( float bin0, float bin1, float selBinLo,
|
||||
float selBinCenter, float selBinHi, int dashCount, bool isSpectral )
|
||||
{
|
||||
if ( (selBinCenter >= 0) && (bin0 <= selBinCenter) && (selBinCenter < bin1) )
|
||||
if (!isSpectral)
|
||||
return AColor::ColorGradientTimeSelected;
|
||||
if ((selBinCenter >= 0) && (bin0 <= selBinCenter) &&
|
||||
(selBinCenter < bin1))
|
||||
return AColor::ColorGradientEdge;
|
||||
else if (
|
||||
(0 == dashCount % 2) &&
|
||||
(((selBinLo >= 0) && (bin0 <= selBinLo) && ( selBinLo < bin1)) ||
|
||||
((selBinHi >= 0) && (bin0 <= selBinHi) && ( selBinHi < bin1)) ) )
|
||||
if ((0 == dashCount % 2) &&
|
||||
(((selBinLo >= 0) && (bin0 <= selBinLo) && ( selBinLo < bin1)) ||
|
||||
((selBinHi >= 0) && (bin0 <= selBinHi) && ( selBinHi < bin1))))
|
||||
return AColor::ColorGradientEdge;
|
||||
else if (
|
||||
(selBinLo < 0 || selBinLo < bin1) &&
|
||||
(selBinHi < 0 || selBinHi > bin0) )
|
||||
if (isSpectral) {
|
||||
return AColor::ColorGradientTimeAndFrequencySelected;
|
||||
}
|
||||
else {
|
||||
return AColor::ColorGradientTimeSelected;
|
||||
}
|
||||
else
|
||||
if ((selBinLo < 0 || selBinLo < bin1) && (selBinHi < 0 || selBinHi > bin0))
|
||||
return AColor::ColorGradientTimeAndFrequencySelected;
|
||||
|
||||
return AColor::ColorGradientTimeSelected;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void TrackArtist::DrawClipSpectrum(WaveTrackCache &cache,
|
||||
WaveClip *clip,
|
||||
wxDC & dc,
|
||||
|
Loading…
x
Reference in New Issue
Block a user