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

Method ShiftBy

libraries/lib-label-track/LabelTrack.cpp:209–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209void LabelTrack::ShiftBy(double t0, double delta)
210{
211 if (mLabels.empty())
212 return;
213 for (auto &labelStruct: mLabels)
214 {
215 if(labelStruct.selectedRegion.t0() >= t0)
216 labelStruct.selectedRegion.move(delta);
217 }
218}
219
220void LabelTrack::Clear(double b, double e)
221{

Callers

nothing calls this directly

Calls 2

moveMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected