Forums > MaxMSP

autopopulate sflist~ via umenu?

Nov 28 2011 | 1:04 pm

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 ;)


Nov 28 2011 | 1:22 pm

[pak 0 0] won’t work because it expects an int.

Try [pak 0 s]

Nov 28 2011 | 3:26 pm

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.

Viewing 3 posts - 1 through 3 (of 3 total)

Forums > MaxMSP