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

            track?.AddAdjustment(adjustmentForPitchSetting(adjustPitchSetting.NewValue), SpeedChange);
        }
 public virtual void ApplyToTrack(ITrack track)
 {
     track.AddAdjustment(AdjustableProperty.Tempo, SpeedChange);
 }
示例#3
0
        private void adjustPitchChanged(ValueChangedEvent <bool> adjustPitchSetting)
        {
            track?.RemoveAdjustment(adjustmentForPitchSetting(adjustPitchSetting.OldValue), SpeedChange);

            track?.AddAdjustment(adjustmentForPitchSetting(adjustPitchSetting.NewValue), SpeedChange);
        }
示例#4
0
 public override void ApplyToTrack(ITrack track)
 {
     // base.ApplyToTrack() intentionally not called (different tempo adjustment is applied)
     track.AddAdjustment(AdjustableProperty.Frequency, freqAdjust);
     track.AddAdjustment(AdjustableProperty.Tempo, tempoAdjust);
 }