zl queue vs stack inconsistency
From the zl reference, >>Messages>>Mode:
"queue: functions as a first-in-first-out (FIFO) stack; it outputs the oldest message received. "
"stack: functions as a last-in-first-out (LIFO) stack; it outputs the most recently received message. "
Note the use of the term "message". From this description, I’d expect queue to basically be the opposite of stack, which is what I’m looking for, a FIFO stack for messages.
But in the Output section of the zl reference, I find the following:
"In queue mode, the oldest element received."
"In stack mode, the most recently received message. "
Which seems contradictory to me.
In the following patch, you can see that zl queue does indeed break the message into elements:
----------begin_max5_patcher---------- 635.3ocyW8zaaBCG8LUpeGP9bVD17+cqGxgdZZYU6xzTkIwM0UfgYLcYoZe2 mwFRnMJIHxvIWLgmM1O+xyO9wa2diEHIeMoDX+Y6eXaY8lDwRgUiX0BXAxvq WjhKUCDrHOKivDfIMcJHqEpN91CeY9rsvOkyDkzMj5tfnoNs3EXwhmorUOxI KD5U10KR1usabcqupE4L0w9msOCqJixRIBEAfcPyqDsvNcWXFNSsvf63Tb5V NQWp.ySd4SgaAK3jR49AKn4rNjxKJnlHwN0ssM6nzS7UIpkcpiB4u2dS8U4k ImuRNe1Cyue12GjXhb81IlgdFQLCNkX5FpTvn3wSLSpDhbF3HJCD1wlgbFlx rEViI9SAQO6fDLaEX2j0Qd7Ok7fbzdMz6kmqMikw8Ud.ibbavAWPWyGbg.l8 TiK5BcpAFAFwsUb3EZW4M7cUForDuhruAljRpc1P6lefFjYVGOFnhhfP0o8Z nCnInSnIGwMumbc.oxe3REi7a4TruRUvoLg8lzGmSVMDQRaafPU9WnuQNwCC 9+qCaRs4miBDo7Jdm5fyALInAYRlbPiR3XlT35boB.gWqQEMuSHHtyggKaTA ZDiJ9ZEohLHYR6bfHucE+N5oEwiRXwuNSMPmZ3GbUjWrWgE5QARor89XX0Vp tiOHbk4U7EsKUSQ91c1VKIkBJSUnemAA+vndltbIg8t+kWRKwIoDEaORcc8l WxBN5CwBMNwh5CuhMud0KdICbLNwB6EwBLOw76sCCZVhg5CwhLufAGed0Dog KJdkvKalYMkjg9ujyquOXh9dJSeu9MP.N4UZ6iz.g4xfcgLUuhqCeWGopJUs fxl+A7zLyc. -----------end_max5_patcher-----------
Is there a way to have zl queue work w/ the entire message as opposed to its list elements?
Thanks for any expertise.
zl.queue and zl.stack only take int, float and symbol data types.
The externals handle FIFO and LIFO data structures, taking as input more data types, including list (list of number) and anything (symbol + anything).
Thanks Rafael. I guess I missed the data type restriction in the docs. I’ll give your externals a try.