Example #1
0
        public static Mixer SendToMixer(this Attenuator attenuator)
        {
            Mixer mixer = new Mixer();

            mixer.Inputs.Add(attenuator);
            attenuator.Output = mixer;
            return(mixer);
        }
Example #2
0
 public static Attenuator Attenuate(this Mixer mixer, FrameworkElement target, DependencyProperty property)
 {
     Attenuator attenuator = new Attenuator() { Input = mixer };
     Binding binding = new Binding();
     binding.Mode = BindingMode.TwoWay;
     binding.Source = attenuator;
     binding.Path = new PropertyPath("Attenuation");
     target.SetBinding(property, binding);
     return attenuator;
 }
Example #3
0
        public static Attenuator Attenuate(this Panner panner, double attenuation)
        {
            Attenuator item = new Attenuator()
            {
                Attenuation = attenuation, Input = panner
            };

            panner.Output = item;
            return(item);
        }
Example #4
0
        public static Attenuator Attenuate(this Oscillator oscillator, double attenuation)
        {
            Attenuator item = new Attenuator()
            {
                Attenuation = attenuation, Input = oscillator
            };

            oscillator.Output = item;
            return(item);
        }
Example #5
0
        public static Panner Pan(this Attenuator attenuator, short pan)
        {
            Panner panner = new Panner()
            {
                Pan = pan, Input = attenuator
            };

            attenuator.Output = panner;
            return(panner);
        }
Example #6
0
        public static Attenuator Attenuate(this Attenuator attenuator, FrameworkElement target, DependencyProperty property)
        {
            Binding binding = new Binding();

            binding.Mode   = BindingMode.TwoWay;
            binding.Source = attenuator;
            binding.Path   = new PropertyPath("Attenuation");
            target.SetBinding(property, binding);
            return(attenuator);
        }
Example #7
0
 public static Attenuator Attenuate(this Panner panner, FrameworkElement target, DependencyProperty property)
 {
     Attenuator attenuator = new Attenuator() { Input = panner, Attenuation = (double)target.GetValue(property) };
     Binding binding = new Binding();
     binding.Mode = BindingMode.TwoWay;
     binding.Source = attenuator;
     binding.Path = new PropertyPath("Attenuation");
     target.SetBinding(property, binding);
     panner.Output = attenuator;
     return attenuator;
 }
Example #8
0
        public static Attenuator Attenuate(this Oscillator oscillator, FrameworkElement target, DependencyProperty property)
        {
            Attenuator attenuator = new Attenuator();

            attenuator.Input  = oscillator;
            oscillator.Output = attenuator;
            Binding binding = new Binding();

            binding.Mode   = BindingMode.TwoWay;
            binding.Source = attenuator;
            binding.Path   = new PropertyPath("Attenuation");
            target.SetBinding(property, binding);
            return(attenuator);
        }
Example #9
0
        public static Attenuator Attenuate(this Panner panner, FrameworkElement target, DependencyProperty property)
        {
            Attenuator attenuator = new Attenuator()
            {
                Input = panner, Attenuation = (double)target.GetValue(property)
            };
            Binding binding = new Binding();

            binding.Mode   = BindingMode.TwoWay;
            binding.Source = attenuator;
            binding.Path   = new PropertyPath("Attenuation");
            target.SetBinding(property, binding);
            panner.Output = attenuator;
            return(attenuator);
        }
Example #10
0
 public static Attenuator Attenuate(this Panner panner, double attenuation)
 {
     Attenuator item = new Attenuator() { Attenuation = attenuation, Input = panner };
     panner.Output = item;
     return item;
 }
Example #11
0
 public static Attenuator Attenuate(this Oscillator oscillator, double attenuation)
 {
     Attenuator item = new Attenuator() { Attenuation = attenuation, Input = oscillator };
     oscillator.Output = item;
     return item;
 }
Example #12
0
 public static Attenuator SendToMixer(this Attenuator attenuator, Mixer mixer)
 {
     mixer.Inputs.Add(attenuator);
     attenuator.Output = mixer;
     return(attenuator);
 }