Exemplo n.º 1
0
        /// <summary>
        /// Reads the message from a MIDI stream.
        /// </summary>
        /// <param name="data">The MIDI stream containing the message data.</param>
        public override void ReadData(IO.MidiBinaryReader data)
        {
            base.ReadData(data);

            ManufacturerId      = (MidiManufacturerId)data.ReadByte();
            DeviceId            = data.ReadByte();
            UniversalRealTimeId = (UniversalRealTimeId)data.ReadByte();
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MidiSystemExclusiveMessage"/> class.
 /// </summary>
 /// <param name="manufacturerId">The manufacturer identifier.</param>
 /// <param name="universalRealTimeId">The universal real time identifier.</param>
 protected MidiSystemExclusiveMessage(MidiManufacturerId manufacturerId, UniversalRealTimeId universalRealTimeId)
     : base(MidiCommand.SystemExclusiveStart)
 {
     ManufacturerId      = manufacturerId;
     UniversalRealTimeId = universalRealTimeId;
 }