Example #1
0
 public EventSequence(Preference2 preferences)
     : this()
 {
     _fullChannels = new List<Channel>();
     Channels = new List<Channel>();
     PlugInData = new SetupData();
     Extensions = new SequenceExtensions();
     if (preferences != null) {
         _eventPeriod = preferences.GetInteger("EventPeriod");
         MinimumLevel = (byte) preferences.GetInteger("MinimumLevel");
         MaximumLevel = (byte) preferences.GetInteger("MaximumLevel");
         var profileName = preferences.GetString("DefaultProfile");
         if (profileName.Length > 0) {
             AttachToProfile(profileName);
         }
         AudioDeviceIndex = preferences.GetInteger("DefaultSequenceAudioDevice");
     }
     else {
         _eventPeriod = 100;
         MinimumLevel = 0;
         MaximumLevel = 255;
         AudioDeviceIndex = -1;
     }
     Time = 60000;
 }
Example #2
0
 public EventSequence(Preference2 preferences) : this()
 {
     _fullChannels = new List <Channel>();
     Channels      = new List <Channel>();
     PlugInData    = new SetupData();
     Extensions    = new SequenceExtensions();
     if (preferences != null)
     {
         _eventPeriod = preferences.GetInteger("EventPeriod");
         MinimumLevel = (byte)preferences.GetInteger("MinimumLevel");
         MaximumLevel = (byte)preferences.GetInteger("MaximumLevel");
         var profileName = preferences.GetString("DefaultProfile");
         if (profileName.Length > 0)
         {
             AttachToProfile(profileName);
         }
         AudioDeviceIndex = preferences.GetInteger("DefaultSequenceAudioDevice");
     }
     else
     {
         _eventPeriod     = 100;
         MinimumLevel     = 0;
         MaximumLevel     = 255;
         AudioDeviceIndex = -1;
     }
     Time = 60000;
 }
Example #3
0
 public EventSequence()
 {
     _fullChannels = new List<Channel>();
     Channels = new List<Channel>();
     PlugInData = new SetupData();
     Extensions = new SequenceExtensions();
     EventValues = null;
     _eventPeriod = 100;
     MinimumLevel = 0;
     MaximumLevel = 255;
     Audio = null;
     TotalEventPeriods = 0;
     WindowWidth = 0;
     WindowHeight = 0;
     ChannelWidth = 0;
     EngineType = EngineType.Standard;
     _profile = null;
     TreatAsLocal = false;
     AudioDeviceIndex = -1;
     AudioDeviceVolume = 0;
     Key = Host.GetUniqueKey();
 }
Example #4
0
 public EventSequence()
 {
     _fullChannels     = new List <Channel>();
     Channels          = new List <Channel>();
     PlugInData        = new SetupData();
     Extensions        = new SequenceExtensions();
     EventValues       = null;
     _eventPeriod      = 100;
     MinimumLevel      = 0;
     MaximumLevel      = 255;
     Audio             = null;
     TotalEventPeriods = 0;
     WindowWidth       = 0;
     WindowHeight      = 0;
     ChannelWidth      = 0;
     EngineType        = EngineType.Standard;
     _profile          = null;
     TreatAsLocal      = false;
     AudioDeviceIndex  = -1;
     AudioDeviceVolume = 0;
     Key = Host.GetUniqueKey();
 }