Buddy's hot inlet

Steve Valentin's icon

Hello! im having an issue with the [buddy] object and im wondering if it is my fault or if maybe somebody else has experienced the same problem with [buddy] and knows a solution, or if this might be a bug even.
because: sometimes my [buddy] is suddenly creating a hot inlet (meaning, the inlet is changing its color from blue to red) when beeing confronted with an input. sometimes the hot inlet is created on the left, sometimes on the right (but it usually keeps happening on the same side, that is per object.
As i understand the object, it looses its functionality by having a hot inlet... i can experience this realtime, while this issue is messing up the trigger order of my patches. my solution so far: rename the object quickly and then the inlet stays blue ...most of the time. hmm....
anyone familiar with this behaviour?

Roman Thilenius's icon

it is only reflected here what is happing inside. :)

Steve Valentin's icon

i've been reflecting over your answer for some days now but im afraid, i dont understand what you mean. :)
(at first i thought – but that is probably a bit far fetched and too esoteric – that you mean, buddy is just reacting to my bad karma... in the end i got stuck with the conclusion that you are probably saying that i'm in the wrong forum with my topic...right?)

anyways, thanks for your reply.

Steve Valentin's icon

Ok, problem solved...i just stopped using it and synchronize arriving data with some other objects. ;)
But still i wonder why this sometimes happens, and sometimes not. that behaviour is even reproducable in the help file... but only sometimes... when the moon stands in the right angle to jupiter.

vichug's icon

I think Roman meant that the object behaves exactly as it is supposed to behave... the helpfile says : "Outputs incoming data after something has been received in all inlets". The way that has been implemented is as follow : at first no inlet is a hot inlet, buddy waits for something to arrive in each of its inlet, and when there is only one inlet remaining (that has not received anything yet) ; then that inlet is changed to a hot inlet. Once something is received in that last hot inlet, everything is sent through the outlets at once (well still respecting the right-to-left order) and all inlets are reset to cold inlets, waiting for the process to begin again.
But the color of inlets is not updated very often for any object in Max, because inlets changing color is a very rare event. You have to switch from locked to unlocked mode to perform that update. That's what explains the discrepancies between what you saw and the behaviour you observed.

Steve Valentin's icon

oh, ...i see. thanks for clearing that up!

VincentC's icon

Hi, just to add, there is a clear message for buddy, changing all inlets immediately to cold again without output. As sometimes stopping a running patch at a certain moment and restarting might still mess up the order in buddy, using that message appropriately could also help to avoid unwanted behavior.
edit: and it also changes the color of the inlets again