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

Method ChangeLabelsOnReverse

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

Source from the content-addressed store, hash-verified

280}
281
282void LabelTrack::ChangeLabelsOnReverse(double b, double e)
283{
284 for (auto &labelStruct: mLabels) {
285 if (labelStruct.RegionRelation(b, e, this) ==
286 LabelStruct::SURROUNDS_LABEL)
287 {
288 double aux = b + (e - labelStruct.getT1());
289 labelStruct.selectedRegion.setTimes(
290 aux,
291 e - (labelStruct.getT0() - b));
292 }
293 }
294 SortLabels();
295}
296
297void LabelTrack::ScaleLabels(double b, double e, double change)
298{

Callers 1

ProcessMethod · 0.80

Calls 2

RegionRelationMethod · 0.80
setTimesMethod · 0.80

Tested by

no test coverage detected