Exemplo n.º 1
0
 public EQ(EQ src)
 {
     eqBands = new ObservableCollection <Band>(src.eqBands.Select(x => new Band(x)));
     on      = new BoolParameter(src.on);
     mix     = new DoubleParameter(src.mix);
     gain    = new DoubleParameter(src.gain);
 }
Exemplo n.º 2
0
 public ScribbleStrip(ScribbleStrip src)
 {
     content              = new StringParameter(src.content);
     color                = new ColorParameter(src.color);
     fontSize             = new DoubleParameter(src.fontSize);
     scribbleStripCommand = src.scribbleStripCommand;
 }
Exemplo n.º 3
0
 public ChannelSend(ChannelSend src)
 {
     targetIndex = new IntParameter(src.targetIndex);
     targetType  = new EnumParameter <ChannelType>(src.targetType);
     level       = new DoubleParameter(src.level);
     on          = new BoolParameter(src.on);
 }
Exemplo n.º 4
0
 public Band(Band src)
 {
     gain     = new DoubleParameter(src.gain);
     q        = new DoubleParameter(src.q);
     freq     = new DoubleParameter(src.freq);
     bandType = new EnumParameter <EQBandType>(src.bandType);
 }
Exemplo n.º 5
0
 public ChannelSend(int index, ChannelType type)
 {
     targetIndex = index;
     targetType  = type;
     level       = 0;
     level.Min   = -99;
     level.Max   = 10;
     on          = true;
 }
Exemplo n.º 6
0
 public MixChannel(MixChannel src) : base(src)
 {
     pan        = new DoubleParameter(src.pan);
     sendLevels = new ObservableCollection <ChannelSend>(src.sendLevels.Select(x => new ChannelSend(x)));
     routing    = new ObservableCollection <ChannelRouting>(src.routing.Select(x => new ChannelRouting(x)));
     eq         = new EQ(src.eq);
     dynamics   = new Dynamics(src.dynamics);
     //TODO: Implement insert FX
     //private string insertFX;
 }
Exemplo n.º 7
0
        public Channel(Channel src)
        {
            faderLevel = new DoubleParameter(src.faderLevel);
            on         = new BoolParameter(src.on);
            solo       = new BoolParameter(src.solo);

            scribbleStrip = new ScribbleStrip(src.scribbleStrip);
            selected      = new BoolParameter(src.selected);

            channelIndex = src.channelIndex;
            channelType  = src.channelType;
        }
Exemplo n.º 8
0
        public override void CopyValueFrom(Parameter p, bool copyMinMax = true)
        {
            DoubleParameter src = (DoubleParameter)p;

            this.value = src.value;
            if (copyMinMax)
            {
                this.max = src.max;
                this.min = src.min;
            }
            this.Enabled        = src.Enabled;
            this.MultipleValues = src.MultipleValues;
        }
Exemplo n.º 9
0
 public DoubleParameter(DoubleParameter src) : base(src)
 {
     this.value = src.value;
     this.max   = src.max;
     this.min   = src.min;
 }