Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: gfvalvo

Search: Search took 0.00 seconds.

  1. You can also instantiate an array of objects...

    You can also instantiate an array of objects directly:

    #include "Arduino.h"
    #include "MIDI.h"

    midi::MidiInterface<HardwareSerial> interfaceArray[] = {
    { Serial1 }, { Serial2 }, { Serial3 },...
  2. I know nothing of MIDI. But, using standard C++...

    I know nothing of MIDI. But, using standard C++ techniques, you can define your array of MIDI object pointers like this:

    #include "Arduino.h"
    #include "Audio.h"
    #include "MIDI.h"
    ...
Results 1 to 2 of 2