コード例 #1
0
        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;
        }
コード例 #2
0
 public void SetTimePitchPeriodList(List <List <double> > timePitchPeriodList)
 {
     this.pitchPeriodSpecification = new PitchPeriodSpecification();
     this.pitchPeriodSpecification.GenerateFromList(timePitchPeriodList);
     PlotSoundAndPitch();
 }
コード例 #3
0
 public void SetPitchPeriodSpecification(PitchPeriodSpecification pitchPeriodSpecification)
 {
     this.pitchPeriodSpecification = pitchPeriodSpecification;
     pitchPanelHeight = this.Height - soundPanelHeight - dividerHeight;
     PlotSoundAndPitch();
 }