Forums > MaxMSP

counter, count range?

February 28, 2008 | 11:47 pm

I want to make a sequencer where I can specify the range.

For example, say I have a 16 step sequencer. I want to play the range of steps from 3 to 11, and have the playing ping-pong (aka updown). How would I force counter to do this? And still have control over the range, like being able to change it from 3-11 to 5 through 9.

Basically, I would love a counter that can change the first step since the counter can specify the highest step in my sequencer. Would I need to patch up something that would continuously reset the current step to whatever I enter into my 1st step number box?

Is there an object like counter, but with that 1st step built in?

Thanks.


February 28, 2008 | 11:57 pm

You could change the range to get different lengths and then add a
constant number to the output to get the starting position.

On Feb 28, 2008, at 4:47 PM, Don K wrote:

>
> I want to make a sequencer where I can specify the range.
>
> For example, say I have a 16 step sequencer. I want to play the
> range of steps from 3 to 11, and have the playing ping-pong (aka
> updown). How would I force counter to do this? And still have
> control over the range, like being able to change it from 3-11 to 5
> through 9.
>
> Basically, I would love a counter that can change the first step
> since the counter can specify the highest step in my sequencer.
> Would I need to patch up something that would continuously reset
> the current step to whatever I enter into my 1st step number box?
>
> Is there an object like counter, but with that 1st step built in?
>
> Thanks.
>
>

—-
Steven M. Miller
Professor, Contemporary Music Program
College of Santa Fe

Home < http://pubweb.csf.edu/~smill>
SFIFEM <
http://sfifem.csf.edu>
Atrium Sound Space <
http://atrium.csf.edu>
OVOS <
http://pubweb.csf.edu/~smill/ovos.html>
CMP <
http://www.csf.edu/academics/contemporary_music/>


February 29, 2008 | 12:25 am

On Feb 28, 2008, at 3:47 PM, Don K wrote:

> Is there an object like counter, but with that 1st step built in?

Yeah, it’s called counter.

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 214 147 44 196617 max $1;
#P message 161 147 41 196617 min $1;
#P number 214 120 35 9 1 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 161 119 35 9 0 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 135 57 58 196617 metro 500;
#P number 135 253 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 135 35 15 0;
#P button 135 92 15 0;
#N counter;
#X flags 0 0;
#P newobj 135 186 66 196617 counter;
#P connect 6 0 8 0;
#P connect 5 0 7 0;
#P connect 7 0 0 0;
#P connect 8 0 0 0;
#P connect 0 0 3 0;
#P connect 1 0 0 0;
#P connect 4 0 1 0;
#P connect 2 0 4 0;
#P window clipboard copycount 9;

Chris Muir
cbm@well.com


February 29, 2008 | 12:40 am

Placing foot in my mouth. I didn’t know you could do that. I even looked at the help file, but I guess I was busy looking at the inlets and not the important bits in the help file.

Thanks yet again Chris!


February 29, 2008 | 9:15 am

..and on the gui side, be sure to check out
ad.rangeslider from http://www.underhund.com/anders/max.php -
like rangeslider, but better
cheers
Roger

— Don K wrote:

>
> I want to make a sequencer where I can specify the
> range.
>
> For example, say I have a 16 step sequencer. I want
> to play the range of steps from 3 to 11, and have
> the playing ping-pong (aka updown). How would I
> force counter to do this? And still have control
> over the range, like being able to change it from
> 3-11 to 5 through 9.
>


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