Exemple #1
0
 public void RefreshPitchShifting(PlayerPitchShiftingEntity entity)
 {
     Dispatcher.BeginInvoke(DispatcherPriority.Render, new Action(() =>
     {
         lblInterval.Content = entity.Interval;
         lblCurrentKey.Content = entity.NewKey.Item2;
         lblReferenceKey.Content = entity.ReferenceKey.Item2;
         //    trackPitch.SetValueWithoutTriggeringEvent(entity.IntervalValue);
         trackPitchShifting.Value = (int)entity.IntervalValue;
     }));
 }
 public void RefreshPitchShifting(PlayerPitchShiftingEntity entity)
 {
     InvokeOnMainThread(() => {
         try
         {
             _currentKey = entity.ReferenceKey;
             lblKey.Text = entity.ReferenceKey.Item2;
             lblNewKey.Text = entity.NewKey.Item2;
             lblInterval.Text = entity.Interval;
             slider.Value = entity.IntervalValue;
         }
         catch(Exception ex)
         {
             Console.WriteLine("PitchShiftingViewController - RefreshPitchShifting - Exception: {0}", ex);
         }
     });
 }
        public void RefreshPitchShifting(PlayerPitchShiftingEntity entity)
        {
            try
            {
                Activity.RunOnUiThread(() => {
                    _currentKey = entity.ReferenceKey;
                    _lblReferenceKeyValue.Text = entity.ReferenceKey.Item2;
                    _lblNewKeyValue.Text = entity.NewKey.Item2;
                    _lblCurrentKeyValue.Text = entity.Interval;

                    // Pitch shifting range: -12 to +12. Seek bar range: 0-23
                    int seekBarProgress = entity.IntervalValue + 12;
                    //Console.WriteLine("PitchShiftingFragment - RefreshPitchShifting - interval: {0} seekBarProgress: {1}", entity.IntervalValue, seekBarProgress);
                    _seekBar.Progress = seekBarProgress;
                });
            }
            catch (Exception ex)
            {
                Console.WriteLine("PitchShiftingFragment - RefreshTimeShifting - Exception: {0}", ex);
            }
        }
Exemple #4
0
 public void RefreshPitchShifting(PlayerPitchShiftingEntity entity)
 {
 }
 public void RefreshPitchShifting(PlayerPitchShiftingEntity entity)
 {
     InvokeOnMainThread(() =>{
         txtIntervalValue.StringValue = entity.Interval;
         lblNewKeyValue.StringValue = entity.NewKey.Item2;
         lblReferenceKeyValue.StringValue = entity.ReferenceKey.Item2;
         trackBarPitchShifting.Value = (int)entity.IntervalValue;
     });
 }