Forums > MaxMSP

writing divisions of a number to the coll object

July 14, 2011 | 5:03 pm

Hi guys,

I’m trying to work out the best way to write divisions of a number to a coll object, so I can use rates~ goto message to jump to those points within a sound file.

So for instance. 1 divided by 8 = 0.125, so the coll would be populated with

0, 0.0;
1, 0.125;
2, 0.25;
3, 0.375;
4, 0.5;
5, 0.625;
6, 0.75;
7, 0.875;

1 divided by 4 = .25, so the coll would read

0, 0.0;
1, 0.25;
2, 0.5;
3, 0.75;

I’d like to be able to enter the amount of divisions I need, whatever that amount may be, and have them listed in the coll…

Do any of you guys know if this is possible, or the best way to go about it?


July 14, 2011 | 10:04 pm

Exactly like that! Thanks!


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