sample hold
I'm sure this is very simple, but i cant find the right object for this.. how can i sample and hold values and put them out only when a bang comes?
thanks
Case in point. See my recent post "Reading Manuals: friendly advice - not
complaint." The object is, of course, sah~. Took me
it in the MSP reference manual (pretending that I didn't already know).
Cheers
Gary Lee Nelson
Oberlin College
www.timara.oberlin.edu/GaryLeeNelson
On 3/2/08 9:44 AM, "i.te" wrote:
>
> I'm sure this is very simple, but i cant find the right object for this.. how
> can i sample and hold values and put them out only when a bang comes?
> thanks
On 02-mars-08, at 16:09, Gary Lee Nelson wrote:
> Case in point. See my recent post "Reading Manuals: friendly advice -
> not
> complaint." The object is, of course, sah~. Took me
> find
> it in the MSP reference manual (pretending that I didn't already know).
[sah~ ] is an MSP object, and doesn't respond to the bang message.
[i ], [f ], [zl reg] or [pv ] are also sample and hold units. Choose
the one you need.
p
>> I'm sure this is very simple, but i cant find the right object for
>> this.. how
>> can i sample and hold values and put them out only when a bang comes?
>> thanks
_____________________________
Patrick Delges
Centre de Recherches et de Formation Musicales de Wallonie
http://www.crfmw.be/max
thanks for reply, i found the solution with the integer object.
Anyone know how to sample and hold with non signanls i.e not using sah,
how is your patch based on integer object?
Also, you can use the right inlet of a message object to store a value and the left outlet to bang it out.
@flowdesigner - I don't normally do these kinds of posts but... you are posting a lot of questions in a short time period and of the last 5 topics you started and got helpful replies you did not thank the people that helped once. You just abandoned the post and went onto ask another question. It is beginning to feel like the forum is doing your homework. In this instance your answer is given by Patrick in this very post. Did you read this post before asking your question?
Hehe; didn't spot that grizzle
Anyway, flowdesigner
You can convert signal-domain (MSP) data into control-domain (Max) data in a number of ways, but this is what [snapshot~] is specifically for; here's a patch demonstrating this, plus the use of [int] to store and sample data.
Brendan
@noobmeister, yeah im using sah~ with snapshot and digging it, but I would like to build an non-signal sah~ equivalent, or if anybody has build it, I would like to look at it
@grizzle and everybody, a big THANK YOU!
@grizzle again, no, I did not read Patricks post, thanks! :)
I'd say it's pretty difficult to build a patch of much complexity without having these. If you don't understand how to build one from reading people's responses, it may be worth looking through the Max tutorials because this sample-and-hold combo is an important one. (hot/cold inlets)
yeah, took me a long while (way too long) to figger out (prob cause I didn't do MSP synth for the longest time) :
the data "storage" objects integer /i float/f, etc. are not just "value holding variables", but quite effective data sample registers , in other words "sample and hold" registers.
this live/pickled - hot/cold inlet distinction is indeed very powerful.