debuggingdataflowpuredata

Spigot: Unexpected results in Pd


I am getting unexpected results from [spigot], for example:

Piping 4.9 to spigot guarding for above 5, but output is 4.9

Here, I would never expect an output below (or equal to) 5. However, sometimes it does happen, demonstrated in the above screenshot.


Could someone please explain,


Solution

  • This happens because of message order. If you connect one atom with two patch cords, the first connected will transmit first. Your patch is not explicit, as I can't see in the resulting patch which was connected first. To avoid this, always use the trigger object. In your case add a [trigger float float] (or [t f f] for a shorthand) after the numberbox.

    how to set a minimum float value to pass