Pattr in C

Lee's icon

Hi, there are a couple of reference in the SDK doc to a pattr SDK.. is this still a thing?

I'm looking for ways to get/set preset values in a pattrstorage object from C without having to break out into Max...

Cheers

Lee's icon

Also looking for help on getvalue/setvalue/notifyclients usage in C...

Lee's icon

ah, thanks!

this was the bit I was missing I think:

object_notify (x, gensym ("modified"), NULL);

Timothy Place's icon

Hi Lee -- There is no separate "Pattr SDK" these days as it was all folded into the main SDK in Max 5. The text apparently is a bit archaic in places...

The jslider example is the best of the bunch in terms of this functionality. Hope this helps!

Lee's icon

thx Tim, that and Jojo example got me working with get/set/notify...

What I was wondering was whether:

1) it's possible to get notifications in C when the pattrstorage changes when outputmode is 1.
2) whether it's possible to update the pattrstorage from C in a similar way to using pattrforward..

thx for any tips!

Timothy Place's icon

Hi Lee -- I'm not aware of a way to do this. Best wishes...