sending a list of numbers one at a time in order to a number box

Spence Townsend's icon

Hi,

I feel like this should be easy but for some reason I'm having difficulty sending a list of numbers one at a time in sequential order to a number box. The big idea is to have a list of 365 numbers in a message box and for them to pop up one at a time in 1 number box, controlled by a metronome. Anyone know how to do this?

Roman Thilenius's icon

that is not one problem, that is two.

first you need to sort the list, which can be done using [zl sort].

then you need read single values from it from left to right - which can be done by [metro] -> [counter] -> [zl nth]

whenever you are looking at a list and the list is looking back, switch to the zl helpfile.

Spence Townsend's icon
Spence Townsend's icon

Thanks, am I on the right track here? The number box just keeps counting up higher and higher.

Spence Townsend's icon

Thanks, am I on the right track here? The number box just keeps counting up higher and higher.

dequalsrxt's icon

You want the list to go into the left inlet of zl.nth and the counter into the right inlet.

Roman Thilenius's icon

counter also has a nice helpfile. which suggest methods how to loop.

the metro helpfile will show how to start and stop it, and the message helpfile might reveal how to write a list into it.

Source Audio's icon

You are completely on wrong track.

starting with comma separated list run through zl.sort ?

even worse, input that into metro ?

After reading help files of zl.objects, metro etc ...

why should one sort the list ?

if it is 33 2 45 666 77... , then maybe it has it's reasons to be like that.

where to store that list and play it

depends on what relation that list has to time, or maybe not at all.

counting and iterring through the list using zl objects is ok,

tbut ake care about list length limit.

other option would be to insert list into coll, umenu etc

anything that can store and recall list items.

Wil's icon

you should search about how to get rid of comma

then easy

Untitled.mov


Source Audio's icon

if the list is allready comma separated, and you want to keep it so, then no problem -

it will iter into coll or umenu using append or insert messages.

if it is not, and you just tried using commas not knowing better way to iter the list,

that you can dump the list again into zl.mth, coll, menu ... whatever.

when you have that list in coll or umenu, message next alone will

scroll through the list indexes, no need for counter.

here random list and insert into coll

Spence Townsend's icon