hi
sometimes i get stucked on easy things like this while using PD, i guess because my head is too used to text programming...
I need to loop a list of symbols. I have an arbitrary length list like |hi hola kaixo moi(
and i need to be able to get the individual items to loop it.
The idea is that given a list with sound/video files names, to be able to jump from one to the next when the prev has ended, and maybe come back to the first when all are played.
i know this must be absolutely trivial but i just dont know where to start from. I havent done much work with lists in PD so far.
thanks
enrike
The textfile, coll, pool, and iem_matrix objects are all good places to start looking.... I personally use [coll] for storing/retrieving file names by line number. Plus some kind of counter structure, with a [mod] equivalent to the number of symbols in your list, would allow looping of the line numbers.
[playlist] would be an option as well, if all your files are in the same directory.
d.
altern wrote:
hi
sometimes i get stucked on easy things like this while using PD, i guess because my head is too used to text programming...
I need to loop a list of symbols. I have an arbitrary length list like |hi hola kaixo moi(
and i need to be able to get the individual items to loop it.
The idea is that given a list with sound/video files names, to be able to jump from one to the next when the prev has ended, and maybe come back to the first when all are played.
i know this must be absolutely trivial but i just dont know where to start from. I havent done much work with lists in PD so far.
thanks
enrike
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
thanks!, [coll] does what I needed
enrike
Derek Holzer(e)k dio:
The textfile, coll, pool, and iem_matrix objects are all good places to start looking.... I personally use [coll] for storing/retrieving file names by line number. Plus some kind of counter structure, with a [mod] equivalent to the number of symbols in your list, would allow looping of the line numbers.
[playlist] would be an option as well, if all your files are in the same directory.
d.
altern wrote:
hi
sometimes i get stucked on easy things like this while using PD, i guess because my head is too used to text programming...
I need to loop a list of symbols. I have an arbitrary length list like |hi hola kaixo moi(
and i need to be able to get the individual items to loop it.
The idea is that given a list with sound/video files names, to be able to jump from one to the next when the prev has ended, and maybe come back to the first when all are played.
i know this must be absolutely trivial but i just dont know where to start from. I havent done much work with lists in PD so far.
thanks
enrike
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hallo, altern hat gesagt: // altern wrote:
sometimes i get stucked on easy things like this while using PD, i guess because my head is too used to text programming...
I need to loop a list of symbols. I have an arbitrary length list like |hi hola kaixo moi(
and i need to be able to get the individual items to loop it.
The idea is that given a list with sound/video files names, to be able to jump from one to the next when the prev has ended, and maybe come back to the first when all are played.
The [list]-abs collection has several objects that would do this, like [list-dripslow], or [list-seek]. These are abstractions so you could study how it's done. But you could also use [textfile] with [until]. For a ready-made abstraction, see attached "ezmenu". Use a counter in front of it to scroll back and forth.
Frank Barknecht _ ______footils.org__
Hallo,
oops, forgot example txt-file for ezmenu. Attached again.
Frank Barknecht _ ______footils.org__