Page 1 of 1
Pass on Int value from Bag node in Wire
Posted: Mon Aug 21, 2023 21:21
by tojacob
Hi,
Please help me with the following Wire node connection (according to picture).
I want to pass on a Int value from a "Bag" node according to the following:
If the (user input) Int in=5, pass the int value from the Bag node ONLY to 1st switch node.
If the (user input) Int in=4, pass the int value from the Bag node ONLY to 2nd switch node.
If the (user input) Int in=3, pass the int value from the Bag node ONLY to 3rd switch node.
If the (user input) Int in=2, pass the int value from the Bag node ONLY to 4th switch node.
How can I represent this using the nodes in Wire?

Re: Pass on Int value from Bag node in Wire
Posted: Mon Aug 21, 2023 21:56
by Arvol
Not sure what you're after here? What are you trying to do with this setup?

Re: Pass on Int value from Bag node in Wire
Posted: Tue Aug 22, 2023 21:38
by tojacob
BIG thanks for the fantastic support! I can't believe how fast the response you have on this forum!
It ALMOST works, the suggested solution still sends out a 0 (zero int) from 4 out of the 5 switch nodes on the right. Is it possible to have a setup that only sends out the "Bag int" from one of the 5 switch nodes (and nothing from the other switch nodes, i.e. "killing the signal" on 4 switch nodes which are false)?
If not, I think I need to divide the code, maybe routing the signal by triggering an external OSC command. This way the signal only reaches the "correct" (one out of five) switch node. Sorry for being a Wire n00b.
(It's for a complex routing inside a patch I will share on Juice Bar once it's done. I understand it would be easier to understand the underlaying problem but then I would need to take up a lot of your time to explain. I'm very thankful for the help I get for bits and pieces.

Re: Pass on Int value from Bag node in Wire
Posted: Tue Aug 22, 2023 23:29
by Arvol
Shoot me a DM with what you want to do and the project file and I can take a look.
What are these being connected to? The end point still needs something connected to it, so you can't just sever the connection, but you can send a value to it that would be out of range? What is it that can't take a Zer0? What would it need instead?
Re: Pass on Int value from Bag node in Wire
Posted: Thu Aug 24, 2023 21:24
by Zoltán
It ALMOST works, the suggested solution still sends out a 0 (zero int) from 4 out of the 5 switch nodes on the right. Is it possible to have a setup that only sends out the "Bag int" from one of the 5 switch nodes (and nothing from the other switch nodes, i.e. "killing the signal" on 4 switch nodes which are false)?
Try to use Gate in Event flow instead of Switch.
Re: Pass on Int value from Bag node in Wire
Posted: Sun Oct 01, 2023 16:20
by tojacob
This is how it turned out:
--begin-wire-patch--
1256.3oc6Y00iiZCE8uRkeNf72XOuMytck1W19PqTeX0nJB3j3VBjBl4icU9u2qAFBgYRftspJaUlHMww43iwWeNWeC7UTRQdtIwYKxqP274uhVUVrEZfWfJpc6pcXz8KPtBnKxBTkIqEK598K5wReAaOT17gxmOTw7gJmOznSAk8JnPDvlCcPNBG+j3nGgSbRbrivIOIN9Q3hNINAf69t1+TYpozuvgN1Zbwna9JJt1so.5DgVfRhcl0EkOitIuNKaAJ0rKq34slb2uDWt1373WVFmmroEed7VCz5WskF3SOXJq7wM.z13e2yIbUs0l6aQf.ytXmef3868LWkTZ20DmanJ0VsKK94O0xHzgMElV6Jq+BFfmRRSRXALFOIfqRSCTJCOHllPIJgRphWAiIylXxqLevl0QRWGGXcarMqsUQocsMON6e7JSd7J6OqiyrNHDxnJA7cklphrZW2v2Xrq2.yFAq.W0i1TGLNhlhgQVE+f4e6qF2l5sKy6Wz0kcMdvjm1tqCfxMO49TQp4ionaTvGglUd1wM5Cmqztr10zE.dYQcdZ0wqE4fkBnreBcCmvBUJp.GwnbXKJB59Y+WSBizB3EOhJERp.XLIKtpgPKL+nnHo1+cAu+8DR.+1Obafhq+w.96t6VRj7NFlqGFDvMLTj7GvXe.DMEdcbQVyhaE7mLFia5JuxEm6pZCaO4ey87NeX0lCpdPlAjFmUC8v22DOmBBry1tU0ABhSqOBj2D42WMlzywkeE7xXmhM.5FaJXM.WbKwKPls6.8188xj6hWiFry+aOXqrK8NBWYsAHf7psUv3WYBZm3CW.925m89KaffUYEON.XyGO.z.ZKmGlsIhmzNCmZwS1OHk67uDprewbNZk6eaoZj5MkprHkFCpwFQJKRGRnscbZ4oTo0f7T+t.E816BzbMiKwP9INdn7j7MHOaxUimJp0c5yYPQ22e1yYPw12exyDB9tycNCJw99Scl6d94oajd+HcxhAx1EunBaDFC0dG7E+7iVehwyYMnu1ZLSw9l3pfiSq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