Example #1
0
        public void PitchBendChangeMessage_writes_correctly_to_file(ushort value, byte expectedValue1, byte expectedValue2)
        {
            var message = new PitchBendChangeMessage(4, value);

            message.Write(writer);
            stream.ToArray().Should().Equal(new byte[] { 0xe4, expectedValue1, expectedValue2 });
        }
Example #2
0
        protected void TransmitPitchBend(int channel, ushort value)
        {
            var evt = new PitchBendChangeMessage(channel, value);

            TransmitEvent(evt);
        }