private void findPitchPeriodsButton_Click(object sender, EventArgs e) { findPitchPeriodsButton.Enabled = false; PitchPeriodEstimator pitchPeriodEstimator = speechModifier.PitchPeriodEstimator; pitchPeriodEstimator.ComputePitchPeriods(currentSound, 0.0, currentSound.GetDuration()); //, 0.0050, 0.0120, 0.01); pitchPeriodEstimator.AdjustAndInterpolate(speechTypeSpecification); // , 0.005, true); speechVisualizer.SetPitchPeriodSpecification(pitchPeriodEstimator.PitchPeriodSpecification); pitchPeriodSpecification = pitchPeriodEstimator.PitchPeriodSpecification; findPitchMarksButton.Enabled = true; }
public void SetTimePitchPeriodList(List <List <double> > timePitchPeriodList) { this.pitchPeriodSpecification = new PitchPeriodSpecification(); this.pitchPeriodSpecification.GenerateFromList(timePitchPeriodList); PlotSoundAndPitch(); }
public void SetPitchPeriodSpecification(PitchPeriodSpecification pitchPeriodSpecification) { this.pitchPeriodSpecification = pitchPeriodSpecification; pitchPanelHeight = this.Height - soundPanelHeight - dividerHeight; PlotSoundAndPitch(); }