Example #1
0
 private void UpdateIntensitiesAndSuppressed(object sender, EventArgs e)
 {
     for (int i = 1; i <= numChannelsDisplayed; i++)
     {
         UpdateIntensity(i, DMXController.GetLevel(i), DMXController.IsSuppressed(i));
     }
 }
Example #2
0
        public int GetLevel()
        {
            // A bit of a hack; we reverse engineer the level based on one photon
            // (might be weird if some of these channels were set by a different source)

            // Get channel's level
            int dmxValue = DMXController.GetLevel(_photons[0].Channel);

            // Return the level scaled by the photon's intensity
            // (the inverse of what we did in SetLevel)
            return((dmxValue * 255) / _photons[0].Intensity);
        }
Example #3
0
 //The Pan will use the superclass _end and _start etc.
 public PanTiltCoarseFineFader(string setterName, int panCoarseChannel, int panFineChannel, int panBigEnd, int tiltCoarseChannel, int tiltFineChannel, int tiltBigEnd, double fadeTimeSecs)
     : base(setterName, panCoarseChannel, (DMXController.GetLevel(panCoarseChannel) * 256) + DMXController.GetLevel(panFineChannel), panBigEnd, fadeTimeSecs)
 {
     _panCoarseChannel  = panCoarseChannel;
     _panFineChannel    = panFineChannel;
     _tiltCoarseChannel = tiltCoarseChannel;
     _tiltFineChannel   = tiltFineChannel;
     _tiltStart         = (DMXController.GetLevel(tiltCoarseChannel) * 256) + DMXController.GetLevel(tiltFineChannel);
     _tiltEnd           = tiltBigEnd;
     _tiltIncrement     = Math.Abs(_tiltStart - _tiltEnd) / Math.Ceiling((_ms / FADER_TIMER_TICK_INTERVAL) * (100 / Controller.Rate));
     _tiltCurrent       = _tiltStart;
 }
Example #4
0
 public Fader(string setterName, int channel, int end, double fadeTimeSecs) :
     this(setterName, channel, DMXController.GetLevel(channel), end, fadeTimeSecs)
 {
 }
Example #5
0
 /*
  * Get the level of the specified channel.
  */
 public int GetLevel(int channel)
 {
     return(DMXController.GetLevel(channel));
 }