Forums > MaxMSP

Recording messages from dials and sliders

August 18, 2007 | 11:11 pm

Hi, I know I came across this in the tutorials but can’t for the life of me find it.
I simply want to campture a set of values from an ordinary slider or dial so that they can be regurgitated later on demand (e.g. in response to a bang)

Cheers


August 18, 2007 | 11:34 pm

Connect the output of the slider to the right inlet of [float] or
[int]. When you want the value back, bang the left inlet. If you’re
sending the value back to the slider it came from, you’ll need to use
grab to get the value in the first place.

I think (it’s late!)

David

On 19 Aug 2007, at 0:11, Ross wrote:

>
> Hi, I know I came across this in the tutorials but can’t for the
> life of me find it.
> I simply want to campture a set of values from an ordinary slider
> or dial so that they can be regurgitated later on demand (e.g. in
> response to a bang)
>
>
> Cheers


August 18, 2007 | 11:44 pm

sorry, I meant that I want to record a large sequence of values (they should be outputted as they were recorded as with the timing information retained).
I’m guessing this is kind of like recording midi note events (how this is done has escaped me)


August 18, 2007 | 11:50 pm

At 5:11 PM -0600 8/18/07, Ross wrote:
>Hi, I know I came across this in the tutorials but can’t for the life of me find it.
>I simply want to campture a set of values from an ordinary slider or dial so that they can be regurgitated later on demand (e.g. in response to a bang)

There’s a "gesture recorder" on my site that does just that:

http://www.xfade.com/max/gesture/

Note that it’s less of a "ready to go" thing, and more of a "modify it until it works the way you want it" thing. That said, I think it would be a good starting point.

-C


Chris Muir | "There are many futures and only one status quo.
cbm@well.com | This is why conservatives mostly agree,
http://www.xfade.com | and radicals always argue." – Brian Eno


August 19, 2007 | 12:00 am

I use seq~ for this.

-Randy

On Aug 18, 2007, at 4:44 PM, Ross wrote:

>
> sorry, I meant that I want to record a large sequence of values
> (they should be outputted as they were recorded as with the timing
> information retained).
> I’m guessing this is kind of like recording midi note events (how
> this is done has escaped me)


August 19, 2007 | 12:30 am

On 8/18/07, Ross wrote:
>
>
> Hi, I know I came across this in the tutorials but can’t for the life of
> me find it.
> I simply want to campture a set of values from an ordinary slider or dial
> so that they can be regurgitated later on demand (e.g. in response to a
> bang)
>

Hi.
Have a look at the mtr object.
Cheers.


August 19, 2007 | 4:50 pm

hi,
here is a simple exemple with [mtr]:

max v2;
#N vpatcher 356 114 956 514;
#P window setfont "Sans Serif" 9.;
#P comment 36 119 100 9109513 2-play the sequence;
#P newex 194 306 65 9109513 prepend set 1;
#P newex 85 168 19 9109513 t 0;
#P newex 159 192 40 9109513 change;
#P newex 159 215 28 9109513 sel 1;
#P message 100 253 34 9109513 record;
#P message 73 134 26 9109513 play;
#P newex 142 168 27 9109513 t l 1;
#P user multiSlider 142 82 47 80 -1. 1. 1 2681 47 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P newex 73 281 131 9109513 mtr;
#P comment 125 60 100 9109513 1-move the slider;
#P connect 4 0 1 0;
#P fasten 5 0 1 0 105 275 78 275;
#P fasten 4 0 8 0 78 165 90 165;
#P fasten 6 0 5 0 164 242 105 242;
#P fasten 9 0 2 0 199 331 261 331 261 77 147 77;
#P connect 2 0 3 0;
#P connect 3 1 7 0;
#P fasten 8 0 7 0 90 190 153 190 164 190;
#P connect 7 0 6 0;
#P fasten 3 0 1 1 147 274 199 274;
#P connect 1 1 9 0;
#P pop;


August 20, 2007 | 7:50 pm

mtr, seq~, etc. Also look into pattr; saves only states, not real-time changes, but provides interpolation of many kinds on playback.

You could also store the values one at a time into a table (at specified intervals), thus seeing the changes over time. Then you can access the data in a number of ways whenever you want, including non-linearly.

–CJ


August 21, 2007 | 1:50 pm

Seejay James schrieb:
> mtr, seq~, etc. Also look into pattr; saves only states, not
> real-time changes, but provides interpolation of many kinds on
> playback.

And not to forget primitive but simple: [zl queue]…

get all back bang after bang, if you need no timing information…

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com


August 21, 2007 | 7:18 pm


August 21, 2007 | 7:19 pm


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