IDMIL / T-Stick

T-Stick Digital Musical Instrument (DMI)
4 stars 8 forks source link

Update platformio.ini dependencies, bundle OSC messages #45

Closed aburt2 closed 7 months ago

aburt2 commented 7 months ago

platformio.ini changes

malloch commented 7 months ago

You should be able to reuse the OSC bundle and speed things up even further:

void updateOSC() {
    if (puara.IP1_ready() || puara.IP2_ready()) {
        lo_bundle bundle = lo_bundle_new(LO_TT_IMMEDIATE);
        if (!bundle)
            return;
        updateOSC_bundle(bundle);
        if (puara.IP1_ready())
            lo_send_bundle(osc1, bundle);
        if (puara.IP2_ready())
            lo_send_bundle(osc2, bundle);
        lo_bundle_free_recursive(bundle);
    }
}
aburt2 commented 7 months ago

tested by @kaseypocius on the T-Sticks at IDMIL