Forums > MaxMSP

Is there a way/workaround to add a changeable argument to cycle?

October 25, 2013 | 3:12 am

<code>

– Pasted Max Patch, click to expand. –

</code>


October 25, 2013 | 7:18 am

It looks like you’re trying to cycle through values, and coll and the "next" message instead. You’ll need to store the files with an index (or you could be lazy and use "insert 0", then use the "prev" message to read through coll backwards instead of forwards).

BTW, this is a great place to use poly~ for the playback.


October 26, 2013 | 2:24 am

Thanks for replying Peter


October 26, 2013 | 2:35 am

Thanks for replying Peter, for some stupid reason it wont let me past my latest ‘copy compressed’ patch.

Ultimately what i want to do, is;

1. drop a folder in the dropfile
2.The individual files (&Filepaths, i did this with sprintf) within are recognised and routed out of an object.
3.then loaded on to cells in a matrixctrl object ready to be sequenced.

I think i have achieved most of what i want with my latest patch (although there was probably a much simpler way haha).
But the cycle object only operates within the patch correctly if the number of files in the folder match its argument.
If the cycle object had an input for an integer that dictated the number of outputs it would be perfect

if you have an email or something i could wetransfer you the .amxd or something.

my patch pasted fine yesterday, it just wont do it now

Thanks again

Danny


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