mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-09 00:21:16 +02:00
Bug 1671 (part 1) - Clock icons do not propagate into Sync-locked MIDI Spectrogram view tracks
This is only half of the bug. MIDI tracks still to do.
This commit is contained in:
parent
c15bbc59db
commit
78f273f30c
@ -2259,7 +2259,10 @@ void TrackArtist::DrawClipSpectrum(WaveTrackCache &waveTrackCache,
|
||||
wxImage image((int)mid.width, (int)mid.height);
|
||||
if (!image.IsOk())
|
||||
return;
|
||||
image.SetAlpha();
|
||||
|
||||
unsigned char *data = image.GetData();
|
||||
unsigned char *alpha = image.GetAlpha();
|
||||
|
||||
const auto half = settings.GetFFTLength() / 2;
|
||||
const double binUnit = rate / (2 * half);
|
||||
@ -2599,7 +2602,10 @@ void TrackArtist::DrawClipSpectrum(WaveTrackCache &waveTrackCache,
|
||||
}
|
||||
#endif //EXPERIMENTAL_FFT_Y_GRID
|
||||
|
||||
int px = ((mid.height - 1 - yy) * mid.width + xx) * 3;
|
||||
int px = ((mid.height - 1 - yy) * mid.width + xx);
|
||||
// More transparent the closer to zero intensity.
|
||||
alpha[px]= wxMin( 200, (value+0.3) * 500) ;
|
||||
px *=3;
|
||||
data[px++] = rv;
|
||||
data[px++] = gv;
|
||||
data[px] = bv;
|
||||
|
Loading…
x
Reference in New Issue
Block a user