What board are you using ?
Arduino Uno R3
Arduino IDE 2.3.2
How are you using MIDI ?
hardwired to Rx & Tx from controller to MIDI monitor
Is your problem related to:
[ ] MIDI Input (reading messages from other devices)
[x ] MIDI Output (sending messages to other devices)
MIDI.turnThruOff(); does not turn off MIDI thru
How comfortable are you with code ?
60 years with embedded ASM, plain C and some Fortran
Not very experienced with C++
Retired EE, designed and built data acquisition systems.
Describe your project and what you expect to happen:
Using your Callback.ino example I added MIDI.turnThruOff(); at line 40 in setup but it seems to be ignored. Both original example and with MIDI.turnThruOff() added, compile, upload and run without error. In both cases all incoming MIDI in is sent out. Midi thru is not turned off.
MIDI.turnThruOff(); was copied directly from your Chaining.ino (but unchained)
Curiously your Chaining.ino example will not compile. It throws an error message: "invalid use of void" and the cursor stops at line 10.
Is the syntax of MIDI.turnThruOff(); wrong?
Note: Attachments (circuit diagrams, code examples) are most welcome and will help us understand your needs better and find a suitable solution for your issue.
--> Callbacks2.ino included below
Describe your problem (what does not work):
MIDI.turnThruOff(); does not turn MIDI thru off
Steps to reproduce
After uploading Callbacks2.ino
Connect a MIDI controller to Rx of UNO and a MIDI monitor to Tx.
Send any MIDI to the UNO and all incoming messages are sent out to the monitor, tho no messages are sent by the explicit code functions.
Thanks for providing this library
MIDI.turnThruOff(); does not turn off MIDI thru
Describe your project and what you expect to happen:
Using your Callback.ino example I added MIDI.turnThruOff(); at line 40 in setup but it seems to be ignored. Both original example and with MIDI.turnThruOff() added, compile, upload and run without error. In both cases all incoming MIDI in is sent out. Midi thru is not turned off. MIDI.turnThruOff(); was copied directly from your Chaining.ino (but unchained) Curiously your Chaining.ino example will not compile. It throws an error message: "invalid use of void" and the cursor stops at line 10.
Is the syntax of MIDI.turnThruOff(); wrong?
Note: Attachments (circuit diagrams, code examples) are most welcome and will help us understand your needs better and find a suitable solution for your issue.
--> Callbacks2.ino included below
Describe your problem (what does not work):
MIDI.turnThruOff(); does not turn MIDI thru off
Steps to reproduce
After uploading Callbacks2.ino Connect a MIDI controller to Rx of UNO and a MIDI monitor to Tx. Send any MIDI to the UNO and all incoming messages are sent out to the monitor, tho no messages are sent by the explicit code functions.