[Csnd] send OSC message when a string changes

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Csnd] send OSC message when a string changes

zappfinger
I want to send a OSC message when a string changes. E.g a selection form
a Cabbage combobox would have to trigger an OSC message.
So when I have:

gScmb0 chnget "combobox0"

gScmb0 would be different from a previous version of gScmb0.
I have looked at the strcmp opcode, that might be of use. I guess I need
to create an OSC trigger when  the output of strcmp is 1 or -1?

Richard

Csound mailing list
[hidden email]
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd] send OSC message when a string changes

Oeyvind Brandtsegg-3
You can also used the changed opcode with strings

ktrig changed gScmb0



2017-04-18 14:28 GMT-07:00 Richard <[hidden email]>:
I want to send a OSC message when a string changes. E.g a selection form a Cabbage combobox would have to trigger an OSC message.
So when I have:

gScmb0 chnget "combobox0"

gScmb0 would be different from a previous version of gScmb0.
I have looked at the strcmp opcode, that might be of use. I guess I need to create an OSC trigger when  the output of strcmp is 1 or -1?

Richard

Csound mailing list
[hidden email]
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here



--
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd] send OSC message when a string changes

zappfinger

great, most elegant!


On 18/04/17 23:33, Oeyvind Brandtsegg wrote:
You can also used the changed opcode with strings

ktrig changed gScmb0



2017-04-18 14:28 GMT-07:00 Richard <[hidden email]>:
I want to send a OSC message when a string changes. E.g a selection form a Cabbage combobox would have to trigger an OSC message.
So when I have:

gScmb0 chnget "combobox0"

gScmb0 would be different from a previous version of gScmb0.
I have looked at the strcmp opcode, that might be of use. I guess I need to create an OSC trigger when  the output of strcmp is 1 or -1?

Richard

Csound mailing list
[hidden email]
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here



--
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Loading...