Csound Csound-dev Csound-tekno Search About

send OSC message when a string changes

Date2017-04-18 22:28
FromRichard
Subjectsend OSC message when a string changes
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
Csound@listserv.heanet.ie
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

Date2017-04-18 22:33
FromOeyvind Brandtsegg
SubjectRe: send OSC message when a string changes
You can also used the changed opcode with strings

ktrig changed gScmb0



2017-04-18 14:28 GMT-07:00 Richard <zappfinger@gmail.com>:
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
Csound@listserv.heanet.ie
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 Csound@listserv.heanet.ie 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

Date2017-04-18 22:36
FromRichard
SubjectRe: send OSC message when a string changes

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 <zappfinger@gmail.com>:
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
Csound@listserv.heanet.ie
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 Csound@listserv.heanet.ie 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