1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-24 16:20:05 +02:00

bug 309: Get rid of incremental fix now that correct fix is in PitchIndex().

This commit is contained in:
v.audacity 2013-06-15 00:28:04 +00:00
parent 0e9fa580f5
commit 820b889475
2 changed files with 0 additions and 17 deletions

View File

@ -462,14 +462,6 @@ bool ChangePitchDialog::TransferDataFromWindow()
// calculations
//vvvvv Probaly unnecessary with fix to FreqToMIDInoteNumber(), but leave it in until we decide how to handle very low freq values.
void ChangePitchDialog::Calc_FromPitchIndex()
{
m_FromPitchIndex = (int)(m_ToPitchIndex - m_SemitonesChange) % 12;
if (m_FromPitchIndex < 0)
m_FromPitchIndex += 12;
}
void ChangePitchDialog::Calc_ToPitchIndex()
{
int nSemitonesChange =
@ -601,14 +593,6 @@ void ChangePitchDialog::OnText_FromFrequency(wxCommandEvent & WXUNUSED(event))
this->Calc_ToFrequency();
this->Calc_ToPitchIndex();
//vvvvv Probaly unnecessary with fix to FreqToMIDInoteNumber(), but leave it in until we decide how to handle very low freq values.
// This is Steve's incremental fix for cross-updating issues related to bug 309.
// It's weird that in prior code (3 lines above this), we set m_FromPitchIndex,
// then call 2 Calc methods for the other members, and then this call to
// recalculate m_FromPitchIndex. Something's wrong there, but I want to figure
// out the overall best scheme, and this is an incremental fix.
// this->Calc_FromPitchIndex();
m_bLoopDetect = true;
this->Update_Choice_FromPitch();
this->Update_Choice_ToPitch();

View File

@ -95,7 +95,6 @@ class ChangePitchDialog:public EffectDialog {
private:
// calculations
void Calc_FromPitchIndex(); // Update m_FromPitchIndex from new m_ToPitchIndex.
void Calc_ToPitchIndex(); // Update m_ToPitchIndex from new m_SemitonesChange.
void Calc_SemitonesChange_fromPitches(); // Update m_SemitonesChange from new m_*PitchIndex-es.
void Calc_SemitonesChange_fromPercentChange(); // Update m_SemitonesChange from new m_PercentChange.