MIDI pipe "exclusive" #910
Replies: 2 comments
-
Hi, Please post a complete example with the complete error message. If you're sending NRPN using Control Surface, exclusive access is not necessary (except if you call If you need to receive NRPN from the Control-Surface/src/MIDI_Interfaces/MIDI_Interface.hpp Lines 121 to 140 in 39182bb You can see how the exclusive access works: if you call |
Beta Was this translation helpful? Give feedback.
-
Thanks. |
Beta Was this translation helpful? Give feedback.
-
Pieter, great library.
I have defined three pipes (two are to replace the default Control_Surface ones):
MIDI_Pipe txPipe;
MIDI_Pipe rxPipe;
MIDI_Pipe thruPipe;
then:
Control_Surface >> txPipe >> serialMIDI; // MIDI output pipe.
Control_Surface << rxPipe << serialMIDI; // MIDI input pipe.
serialMIDI >> thruPipe >> serialMIDI; // loopback all incoming MIDI to the output.
That all works OK.
I need txPipe to have exlusive use of the serialMIDI output while sending NPRN's, but can't get the syntax of the "exclusive" function. I had assumed:
txPipe.exclusive(0, true); but that gives 'txPipe' is not a class, namespace, or enumeration
Can you clarify how to correctly use "exclusive" please, I did find a reference to it, but it is currently being elusive.
Many thanks.
Beta Was this translation helpful? Give feedback.
All reactions