Example #1
0
        public override void Process(ref short[] left, ref short[] right)
        {
            if (dspr == null)
            {
                dspr = new PitchShiftTDSOLA();
                dspl = new PitchShiftTDSOLA();
            }
            dspl.Position = dspr.Position = Position;
            dspl.PitchShiftRate = dspr.PitchShiftRate = PitchShiftRate;
            dspl.FormantShiftRate = dspr.FormantShiftRate = FormantShiftRate;

            dspl.PitchShiftTD(left, out left);
            dspr.PitchShiftTD(right, out right);
        }
Example #2
0
        public override void Process(ref short[] left, ref short[] right)
        {
            if (dspr == null)
            {
                dspr = new PitchShiftTDSOLA();
                dspl = new PitchShiftTDSOLA();
            }
            dspl.Position         = dspr.Position = Position;
            dspl.PitchShiftRate   = dspr.PitchShiftRate = PitchShiftRate;
            dspl.FormantShiftRate = dspr.FormantShiftRate = FormantShiftRate;

            dspl.PitchShiftTD(left, out left);
            dspr.PitchShiftTD(right, out right);
        }