Thru::Mode or MIDIUART.turnThruOff(); ?? #351
Replies: 5 comments 4 replies
-
Hi |
Beta Was this translation helpful? Give feedback.
-
Thanks for your suggestion. Yes, I found MIDI.turnThruOff(); In the library and tried it but it doesn't turn off MIDI thru. Any suggestions? I just posted details and the code. Thanks for your reply, Aaron |
Beta Was this translation helpful? Give feedback.
-
It's not a good habit to attach code, it's better to post the code as part of the body and tag it with ``` (the |
Beta Was this translation helpful? Give feedback.
-
Code looks good at first glance - assuming you are using a MIDI shield? |
Beta Was this translation helpful? Give feedback.
-
Cool Calling in arduino_midi_library/src/MIDI.hpp Lines 96 to 97 in 2d64cc3
arduino_midi_library/src/MIDI.hpp Lines 1440 to 1441 in 2d64cc3 So that part of the code is looking good, AFAIK this should work. How do you know that Thru is still on? |
Beta Was this translation helpful? Give feedback.
-
Hello, I'm using the Callbacks.ino example as a starting point for processing MIDI in and out. The example works fine but I cannot turn off MIDI Thru. It seems that MIDIUART.turnThruOff(); is no longer in the MIDI library. Thru::Mode is listed as a structure current docs but wont compile tho I do <#include midi_Defs.h> and tried both Thru::Off, Thru::0 and Thru.Off and 0.
Can anyone help me to turn off MIDI Thru? I'm also curious why the scope resolution operator :: is shown to address a structure instead of the dot operator. I confess I'm a newbee at C++ but have been writing ASM and plain C for many years and wrote a lot of MIDI processing code 40 years in DOS and a synth editor in Win98. Now I getting back into MIDI processing in my retirement and am slow catching up with C++ Thanks for any help. Aaron
Beta Was this translation helpful? Give feedback.
All reactions