adafruit / Adafruit_TinyUSB_Arduino

Arduino library for TinyUSB
MIT License
450 stars 120 forks source link

USB MIDI mirrors back every command that is received #314

Closed amowry closed 1 year ago

amowry commented 1 year ago

Operating System

Windows 11

Arduino IDE version

2.1.0

Board

ItsyBitsy NRF52840 Express

ArduinoCore version

1.3.0

TinyUSB Library version

release

Sketch as ATTACHED TXT

MIDI command mirror test.txt

Compiled Log as ATTACHED TXT

none

What happened ?

I believe that the bug I reported earlier today (#313) ended up just being a result of this:

The MIDI device sends back every command that is received. I stripped down the MIDI example to the above code that only reads incoming messages and doesn't handle any of them. Even with this basic code, every message that is received is mirrored back to the host.

I have tested this on multiple devices.

How to reproduce ?

Install the above sketch

Connect to a MIDI host and listen for incoming messages

Send any message from the MIDI host

A identical message is received back from the ItsyBitsy

**If you don't have a MIDI host device you can go to this website

It should show that it is connected to the device. Then, paste this command in the lower panel, substituting the MIDI device name that is shown as being connected: device("device_name").ch(15).cc(14, 42)

That will send a CC message to the ItsyBitsy and you will see that the same message is received back (shown in the upper panel).

Debug Log

No response

Screenshots

No response

amowry commented 1 year ago

I didn't realize that the MIDI.h library has thru enabled by default :).