コード例 #1
0
        public void SetTempoMessage_writes_correctly_to_file()
        {
            var message = new SetTempoMessage(500000);

            message.Write(writer);
            var expectedOutput = new byte[] { 0xff, 0x51, 0x03, 0x07, 0xa1, 0x20 };

            stream.ToArray().Should().Equal(expectedOutput);
        }
コード例 #2
0
 public void SetTempo(SetTempoMessage tempo)
 {
     TransmitEvent(tempo);
 }