Ejemplo n.º 1
0
        public Data1ChannelEventList(Data1ChannelPair pair, IEnumerable <MidiEventPair> events = null)
        {
            this.Data1ChannelPair = pair;

            this.Events = new List <MidiEventPair>();

            if (events != null)
            {
                Events.AddRange(events);
            }
        }
 public MidiEventPair(GuitarMessageList owner, MidiEvent down, MidiEvent up)
 {
     this.owner = owner;
     this.down  = down;
     this.up    = up;
     _downTick  = (down == null ? Int32.MinValue : down.AbsoluteTicks);
     _upTick    = (up == null ? Int32.MinValue : up.AbsoluteTicks);
     if (down == null)
     {
         dPair = Data1ChannelPair.NullValue;
     }
     else
     {
         dPair = new Data1ChannelPair(down.Data1, down.Channel);
     }
 }
Ejemplo n.º 3
0
 public override string ToString()
 {
     return(Data1ChannelPair.ToString() + " Events: " + Events.Count());
 }
 public Data1ChannelPairEventList(int data1, int channel)
 {
     this.Data1ChannelPair = new Data1ChannelPair(data1, channel);
 }