changePage via OSC

Home Forums Control changePage via OSC

This topic contains 3 replies, has 1 voice, and was last updated by  psc 4 years, 12 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #93283

    psc
    Member

    Bravo for this application, the fact that it’s open source and so well documented, but unfortunately I cannot find the information on how to changePage via OSC? What message should I send?

    I tried /control/changePage 2 without success.

    Thanks again for this application
    (will do a video of it running in my project)

    #93284

    psc
    Member

    sorry for the noise, found it (not tested) on this post:
    http://charlie-roberts.com/Control/?cat=3
    oscManager.delegate = {
    processOSC : function(oscAddress, typetags, args) {
    switch(oscAddress) {
    case “/nextPage”:
    control.changePage(‘next’);
    break;
    case “/previousPage”:
    control.changePage(‘previous’);
    break;
    case “/changeToPage”:
    control.changePage(args[0]);
    break;
    }
    }
    }

    #93285

    psc
    Member

    It’s working (Android version with PureData) BUT with this piece of code in my interface, I cannot update widgets anymore!

    What would be the solution to have both, custom delegate and the default behaviour on the widget (send /myslider 0.4)?

    My interface:
    https://github.com/patricksebastien/heavybox/blob/master/control/heavybox.js#L47

    Thanks!

    • This reply was modified 4 years, 12 months ago by  psc.
    #93287

    psc
    Member

    Everyone, I am very sorry for this thread… I found the solution (I tried to delete my last question, ┬áno option). For those interested:

    https://github.com/patricksebastien/heavybox/blob/master/control/heavybox.js#L47
    default:
    oscManager.processOSC(oscAddress, typetags, args);
    break;

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

This work is licensed under GPL - 2009 | Powered by Wordpress using a heavily modified version of the theme aav1