Weird behaviour with list and funnel (Bug?)

EraserHead's icon

Hi everybody, I just noticed a very weird behaviour using a list of 4 floats and the funnel object. For some weird reasons only the first item of the list go through fennel, the other 3 are ignored. However when I move the integer boxes before funnel, the object behave correctly!
Am I doing something wrong or it is a bug?

I'm on a MacBook Pro 2019, Mojave 10.14.3 and Max 7.3.6.

Thank you!

FunnelBug.maxpat
Max Patch

EraserHead's icon

I also tried to simplify the path, bypassing the scale object, made all boxes Integers and used join 4 @triggers -1 and unjoin 4. Same problem. It seem that fennel doesn't like lists...

FunnelBug2.maxpat
Max Patch

Rick's icon

Try this

Max Patch
Copy patch and select New From Clipboard in Max.

EraserHead's icon

I fixed the problem temporarily inserting a change object between unjoin and the integers boxes.

Jean-Francois Charles's icon

To really see what's coming out of the output, use [print] and observe the Max Window. Everything works as expected:

Max Patch
Copy patch and select New From Clipboard in Max.

EraserHead's icon

Hi Rick, Jean Francois, thank you very much, I can see it's working properly in the Max Window even if it's not showing on the message box...
I still don't get why it's doing that, especially why it does work when I put a change object between the unjoin object and the integers... weird!

Best!

Jean-Francois Charles's icon

- without your "change" object, you give four values to the four inputs of [funnel] each time you touch one of the numbers. That's because of your [join]/[unjoin] (same with [pack]/[unpack]). Because you are giving four numbers to each input of [funnel], [funnel] gives you four values (which print very fast, and you see just the last one in the [message])
- with [change], you are just filtering out numbers when they don't change, so you are forwarding to [funnel] only one number... Then you get only one list out.

EraserHead's icon

Clair come de l'eau de roche, thanks Jean-François!!