I use the oscpkt framework a lot in my code. It would be nice if the OscSender could send oscpkt::Message directly. Can we get an implementation of the method:

void OscSender::send(oscpkt::Message msg);

Similarly, I would like the Midi class to be able to write MidiChannelMessage directly, i.e. the method:

int Midi::writeMessage(MidiChannelMessage msg);

What do you think ?

Best,
Hjalte

seems reasonable. In all fairness, OscSender has a bit too much wrapping code already in place to manipulate the internal oscpkt::Message for my taste, so this could actually be a better solution in my opinion.
I have made the changes and confirmed they build, but haven't tested. Can you test and confirm please? they are on this branch here

    24 days later
    13 days later

    giuliomoro Sorry about the looong time before I got to test this... Both implementations work as intended...

    I can now clean up some annoying workarounds in my code 🙂

    Thank you as always...

    How do I know when changes are merged to master ?

      24 days later
      a month later