@KMETE If you give all the files a number instead of the name it is easy and you don't need [file glob]
AAaaargh...... should be [declare -path] ... not [declare patch]
Output directly into the inlet of [sf-play2~] that takes the file name.
Then start the player....
If you don't then you need to assign a number to each file.
You cannot add it to the name because [sf-play2~] will only play the actual file name.
You have 3 options.
- change the names to numbers before you start.... as above.
- automate replacing the file names with numbers using a command line script after [file glob]....
- associate, in Pd, a number with the file name........ cart5.zip
For it to run in vanilla you will need to get the missing externals, or replace them with the appropriate [file] objects.
[tof/folderpath] [ext13/strippath] and [folder_list]
Dynamic patching......... there will now be another way using [list store].
It creates a [tracklist_button] for each file in a folder and displays it in the sub-patch [pd tracklist].
Each [tracklist_button has 2 arguments.
The first is the file name.
The second argument..... 1 to n...... is the associated number assigned, and sending that number into [s playit] will send the original file name into [readsf~] which can of course be [sf-play2~] instead.
David.