Skip to content
Discussion options

You must be logged in to vote

What you describe should work fine, let me know if you run into trouble.

If all you need to do is accept MIDI messages from a pipe, then inheriting from MIDI_Interface and using MIDI_Callbacks would be overkill, though. To interact with pipes, you just need to implement the TrueMIDI_Sink and/or TrueMIDI_Source interfaces (depending on whether you want to send or receive). Here's a minimal example:

#include <Control_Surface.h>

struct MySynthController : TrueMIDI_Sink {
  // Called when we receive a message over a pipe.
  void sinkMIDIfromPipe(ChannelMessage msg) override {
    switch (msg.getMessageType()) {
      case MIDIMessageType::NoteOff:
        Serial << "stop note #"  << msg.getD…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by flubber2077
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants