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

Method ReconfigureMusicGrid

src/AudacityMirProject.cpp:62–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62void AudacityMirProject::ReconfigureMusicGrid(
63 double newTempo, std::optional<MIR::TimeSignature> timeSignature)
64{
65 AdornedRulerPanel::Get(mProject).SetTimeDisplayMode(
66 TimeDisplayMode::BeatsAndMeasures);
67 auto& projTimeSignature = ProjectTimeSignature::Get(mProject);
68 projTimeSignature.SetTempo(newTempo);
69 if (timeSignature.has_value())
70 {
71 projTimeSignature.SetUpperTimeSignature(
72 MIR::GetNumerator(*timeSignature));
73 projTimeSignature.SetLowerTimeSignature(
74 MIR::GetDenominator(*timeSignature));
75 }
76 mProjectWasModified = true;
77}
78
79double AudacityMirProject::GetTempo() const
80{

Callers

nothing calls this directly

Calls 8

GetFunction · 0.85
GetNumeratorFunction · 0.85
GetDenominatorFunction · 0.85
SetTimeDisplayModeMethod · 0.80
SetTempoMethod · 0.80
has_valueMethod · 0.80
SetUpperTimeSignatureMethod · 0.80
SetLowerTimeSignatureMethod · 0.80

Tested by

no test coverage detected