ArrayArrayArrayArrayArray BrainModular BrainModular Users Forum 2025-05-31T18:42:20+02:00 https://brainmodular.org/forums/app.php/feed/topic/7309 2025-05-31T18:42:20+02:00 2025-05-31T18:42:20+02:00 https://brainmodular.org/forums/viewtopic.php?t=7309&p=45883#p45883 <![CDATA[Re: Alternatives to 'has changed'?]]>
It's a bit complicted, but I will try that.

Statistics: Posted by woodslanding — 31 May 2025, 18:42


]]>
2025-05-29T12:09:23+02:00 2025-05-29T12:09:23+02:00 https://brainmodular.org/forums/viewtopic.php?t=7309&p=45879#p45879 <![CDATA[Re: Alternatives to 'has changed'?]]> I did something like this for Arduino talking to Usine in OSC :
each time a value is sent (generally a character from a keyboard) the micro-controller send an OSC message with the char.value and a random 16bit integer.
On Usine side, the second value will go to a "has change" module to trigger the inserting of the character in the string.

because you need 2 informations : the value of you data (the Char) AND the information that it should be taken into account (the trig)

Statistics: Posted by oli_lab — 29 May 2025, 12:09


]]>
2025-05-27T19:49:28+02:00 2025-05-27T19:49:28+02:00 https://brainmodular.org/forums/viewtopic.php?t=7309&p=45873#p45873 <![CDATA[Re: Alternatives to 'has changed'?]]> Statistics: Posted by woodslanding — 27 May 2025, 19:49


]]>
2025-05-26T21:46:33+02:00 2025-05-26T21:46:33+02:00 https://brainmodular.org/forums/viewtopic.php?t=7309&p=45870#p45870 <![CDATA[Re: Alternatives to 'has changed'?]]> Statistics: Posted by sm_jamieson — 26 May 2025, 21:46


]]>
2024-12-04T19:48:14+02:00 2024-12-04T19:48:14+02:00 https://brainmodular.org/forums/viewtopic.php?t=7309&p=45591#p45591 <![CDATA[Alternatives to 'has changed'?]]>
I get around this most times by using a mousedown to actually trigger the next thing, so it happens regardless whether there has been a change in value. But when I set a value by object, that doesn't happen. This is especially an issue in scripts that need to do some kind of refresh.

I guess I can have my recall of the object fake a mouse click. But maybe there's a less awkward way to do it? Is there any way that a control can know that its value has been set via usine objects, if the value doesn't actually change?

Another option I guess is to adjust my recall script to also change whatever is downstream from the main object, so the object doesn't have to do it. That might be a better solution.... or maybe there is a better alternative to hasChanged, that I don't know about?

Thanks as always!
-eric

Statistics: Posted by woodslanding — 04 Dec 2024, 18:48


]]>
BrainModular BrainModular Users Forum 2025-05-31T18:42:20+02:00 https://brainmodular.org/forums/app.php/feed/topic/7309 2025-05-31T18:42:20+02:00 2025-05-31T18:42:20+02:00 https://brainmodular.org/forums/viewtopic.php?t=7309&p=45883#p45883 <![CDATA[Re: Alternatives to 'has changed'?]]>
It's a bit complicted, but I will try that.

Statistics: Posted by woodslanding — 31 May 2025, 18:42


]]>
2025-05-29T12:09:23+02:00 2025-05-29T12:09:23+02:00 https://brainmodular.org/forums/viewtopic.php?t=7309&p=45879#p45879 <![CDATA[Re: Alternatives to 'has changed'?]]> I did something like this for Arduino talking to Usine in OSC :
each time a value is sent (generally a character from a keyboard) the micro-controller send an OSC message with the char.value and a random 16bit integer.
On Usine side, the second value will go to a "has change" module to trigger the inserting of the character in the string.

because you need 2 informations : the value of you data (the Char) AND the information that it should be taken into account (the trig)

Statistics: Posted by oli_lab — 29 May 2025, 12:09


]]>
2025-05-27T19:49:28+02:00 2025-05-27T19:49:28+02:00 https://brainmodular.org/forums/viewtopic.php?t=7309&p=45873#p45873 <![CDATA[Re: Alternatives to 'has changed'?]]> Statistics: Posted by woodslanding — 27 May 2025, 19:49


]]>
2025-05-26T21:46:33+02:00 2025-05-26T21:46:33+02:00 https://brainmodular.org/forums/viewtopic.php?t=7309&p=45870#p45870 <![CDATA[Re: Alternatives to 'has changed'?]]> Statistics: Posted by sm_jamieson — 26 May 2025, 21:46


]]>
2024-12-04T19:48:14+02:00 2024-12-04T19:48:14+02:00 https://brainmodular.org/forums/viewtopic.php?t=7309&p=45591#p45591 <![CDATA[Alternatives to 'has changed'?]]>
I get around this most times by using a mousedown to actually trigger the next thing, so it happens regardless whether there has been a change in value. But when I set a value by object, that doesn't happen. This is especially an issue in scripts that need to do some kind of refresh.

I guess I can have my recall of the object fake a mouse click. But maybe there's a less awkward way to do it? Is there any way that a control can know that its value has been set via usine objects, if the value doesn't actually change?

Another option I guess is to adjust my recall script to also change whatever is downstream from the main object, so the object doesn't have to do it. That might be a better solution.... or maybe there is a better alternative to hasChanged, that I don't know about?

Thanks as always!
-eric

Statistics: Posted by woodslanding — 04 Dec 2024, 18:48


]]>