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

Method Flatten

libraries/lib-mixer/Envelope.cpp:140–146  ·  view source on GitHub ↗

Flatten removes all points from the envelope to make it horizontal at a chosen y-value. @value - the y-value for the flat envelope.

Source from the content-addressed store, hash-verified

138/// make it horizontal at a chosen y-value.
139/// @value - the y-value for the flat envelope.
140void Envelope::Flatten(double value)
141{
142 mEnv.clear();
143 mDefaultValue = ClampValue(value);
144
145 ++mVersion;
146}
147
148void Envelope::SetDragPoint(int dragPoint)
149{

Callers 2

setCurveMethod · 0.45
testMeMethod · 0.45

Calls 2

ClampValueFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected