Esempio n. 1
0
        private void applyPitchAdjustment(ValueChangedEvent <bool> adjustPitchSetting)
        {
            // remove existing old adjustment
            track?.RemoveAdjustment(adjustmentForPitchSetting(adjustPitchSetting.OldValue), SpeedChange);

            track?.AddAdjustment(adjustmentForPitchSetting(adjustPitchSetting.NewValue), SpeedChange);
        }
Esempio n. 2
0
 private void adjustPitchChanged(ValueChangedEvent <bool> adjustPitchSetting)
 {
     track?.RemoveAdjustment(adjustmentForPitchSetting(adjustPitchSetting.OldValue), SpeedChange);
     track?.AddAdjustment(adjustmentForPitchSetting(adjustPitchSetting.NewValue), SpeedChange);
 }
Esempio n. 3
0
 public void ApplyToSample(IAdjustableAudioComponent sample)
 {
     sample.AddAdjustment(AdjustableProperty.Frequency, SpeedChange);
 }
Esempio n. 4
0
 public override void ApplyToTrack(IAdjustableAudioComponent track)
 {
     // base.ApplyToTrack() intentionally not called (different tempo adjustment is applied)
     track.AddAdjustment(AdjustableProperty.Frequency, freqAdjust);
     track.AddAdjustment(AdjustableProperty.Tempo, tempoAdjust);
 }
Esempio n. 5
0
 public virtual void ApplyToTrack(IAdjustableAudioComponent track)
 {
     track.AddAdjustment(AdjustableProperty.Tempo, SpeedChange);
 }