Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI Control enableModelRunning #9

Open
lahirumaramba opened this issue Sep 5, 2016 · 5 comments
Open

UI Control enableModelRunning #9

lahirumaramba opened this issue Sep 5, 2016 · 5 comments

Comments

@lahirumaramba
Copy link

Hi all,

I am trying to enable a selected model using the following code in Processing. I am not sure what's wrong but it keeps giving me the error:

Model numbers must be between 1 and # models for OSC message /wekinator/control/enableModelRecording

I have more than five models in my project.

OscMessage msg2 = new OscMessage("/wekinator/control/enableModelRunning");
msg2.add(1);
msg2.add(2);

I do not get the error if I add only one message ex: msg2.add(1), but it doesn't enable the model either.

I would really appreciate any help with this.

Thanks!

@fiebrink1
Copy link
Owner

Thanks! I'll look into that.

@lahirumaramba
Copy link
Author

lahirumaramba commented Sep 6, 2016

I tried to debug the code and it seems like the option is available only for Supervised controllers. Mine is a DTW. Is there a way to enable and disable models for a DTW controllers?

    //modelNum between 1 and numOutputs
    public void setModelRunEnabled(int modelNum, boolean enableRun) {
        if (checkEnabled() && isSupervised) {
            supervisedController.setModelRunEnabled(modelNum, enableRun);
        }
    }

Thanks!

@lahirumaramba
Copy link
Author

lahirumaramba commented Sep 6, 2016

Okay, my bad. I just realised that there are no models in DTW, only gesture types. Is there a way to enable/disable gestures (that play icon in front of each gesture) using OSC messages?
Thanks!

@fiebrink1
Copy link
Owner

Not at the moment, though that's a good idea for a feature to add!

@lahirumaramba
Copy link
Author

Yeah, it would be great to have that. For the time being, I added a function in DtwModel.java to fire a Property Change to which I have a listener in DtwLearningRow.java. Seems to be working :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants