Пример #1
0
        /// <remarks>
        /// Sets both RegisteredParameter controls to 0 (zero). This is standard MIDI for selecting the
        /// pitch wheel so that it can be set by the subsequent DataEntry messages.
        /// A DataEntryFine message is not set in this constructor, because it is not needed, and has no effect anyway.
        /// However, RegisteredParameterFine MUST be set, otherwise the messages as a whole have no effect!
        /// </remarks>
        public PitchWheelDeviation(int channel, byte value)
            : base(channel, ControllerType.RegisteredParameterCoarse, ControllerType.RegisteredParameterFine, 0)
        {
            DataEntryCoarse valueData = new DataEntryCoarse(channel, value);

            this.ChannelMessages.AddRange(valueData.ChannelMessages);
        }
Пример #2
0
 /// <remarks>
 /// Sets both RegisteredParameter controls to 0 (zero). This is standard MIDI for selecting the
 /// pitch wheel so that it can be set by the subsequent DataEntry messages.
 /// A DataEntryFine message is not set in this constructor, because it is not needed, and has no effect anyway.
 /// However, RegisteredParameterFine MUST be set, otherwise the messages as a whole have no effect!
 /// </remarks>
 public PitchWheelDeviation(int channel, byte value)
     : base(channel, ControllerType.RegisteredParameterCoarse, ControllerType.RegisteredParameterFine, 0)
 {
     DataEntryCoarse valueData = new DataEntryCoarse(channel, value);
     this.ChannelMessages.AddRange(valueData.ChannelMessages);
 }