mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-27 15:50:10 +01:00
Revert the change in display of WaveTrack envelope at high zoom
This commit is contained in:
@@ -1782,7 +1782,13 @@ void TrackArtist::DrawClipWaveform(const WaveTrack *track,
|
||||
std::vector<double> vEnv(mid.width);
|
||||
double *const env = &vEnv[0];
|
||||
clip->GetEnvelope()->GetValues
|
||||
( tOffset, 1.0 / rate, env, mid.width, leftOffset, zoomInfo );
|
||||
( tOffset,
|
||||
|
||||
// PRL: change back to make envelope evaluate only at sample times
|
||||
// and then interpolate the display
|
||||
0, // 1.0 / rate,
|
||||
|
||||
env, mid.width, leftOffset, zoomInfo );
|
||||
|
||||
// Draw the background of the track, outlining the shape of
|
||||
// the envelope and using a colored pen for the selected
|
||||
@@ -1914,7 +1920,13 @@ void TrackArtist::DrawClipWaveform(const WaveTrack *track,
|
||||
std::vector<double> vEnv2(rect.width);
|
||||
double *const env2 = &vEnv2[0];
|
||||
clip->GetEnvelope()->GetValues
|
||||
( tOffset, 1.0 / rate, env2, rect.width, leftOffset, zoomInfo );
|
||||
( tOffset,
|
||||
|
||||
// PRL: change back to make envelope evaluate only at sample times
|
||||
// and then interpolate the display
|
||||
0, // 1.0 / rate,
|
||||
|
||||
env2, rect.width, leftOffset, zoomInfo );
|
||||
DrawMinMaxRMS(dc, rect, env2,
|
||||
zoomMin, zoomMax,
|
||||
dB, dBRange,
|
||||
|
||||
Reference in New Issue
Block a user