Пример #1
0
 public MidiEvent(VariableLengthValue timeDelta, byte eventType, IEnumerable <byte> eventData)
 {
     TimeDelta = new VariableLengthValue(timeDelta);
     EventType = eventType;
     EventData = new List <byte>();
     EventData.AddRange(eventData);
 }
Пример #2
0
 public MetaEvent(VariableLengthValue timeDelta, byte metaEventType, VariableLengthValue eventLength, IEnumerable <byte> eventData)
 {
     EventData = new List <byte>();
     EventData.AddRange(eventData);
     TimeDelta     = new VariableLengthValue(timeDelta);
     MetaEventType = metaEventType;
     EventLength   = new VariableLengthValue(eventLength);
 }
Пример #3
0
 public SysexEvent(VariableLengthValue timeDelta, byte eventType, VariableLengthValue eventLength, List <byte> eventData)
 {
     TimeDelta   = new VariableLengthValue(timeDelta);
     EventType   = eventType;
     EventLength = new VariableLengthValue(eventLength);
     EventData   = new List <byte>();
     EventData.AddRange(eventData);
 }