for maxmsp class i have to write a patch that automatically stores the sound files of a folder in an sflist~ object, so that im able to play sound files as cues 1,2,3,4 & co..
i tried to pak the number of the sound with its name and then prepend "preload" to it, so i’ll get preload 1 blabla.aif, preload 2 blabla2.aif etc. but pak doesn’t work. i guess i need to get rid of the quotation marks of the message containing the sound file name coming out of umenu..
i’m getting lost! i hope you know what i’m trying to ask ;)
I don’t have time to examine your patch closely, but…
In addition to what tep mentioned regarding setting the inlet type for each inlet of pak, it’s very likely that you actually want pack, not pak. The pak object triggers output whenever it receives input in ANY inlet (thus you’re creating spurious extra messages to sflist~), whereas pack’s output is triggered only when a message is received in the leftmost inlet.