querying min and max values for patterized objects

    May 31 2011 | 10:42 am
    Hello maxers
    I'm currently trying to implement a midi learn feature in my synth, but does anybody knows if there's a message you can send to pattrstorage to retrieve the min and max values (if any) allowed for a patterized object ?
    This is for automatic scaling of incoming midi cc data accordingly...
    thanks in advance for your reply(ies)

    • May 31 2011 | 11:09 am
      In general, you can send the following to pattrstorage:
      This will retrieve the value of the named attribute for the client with scripting name "X"
      More specifically, to retrieve the value of the 'min' attribute (the attribute may possibly be called "minimum", i'm not a max computer to check) of, say, a number box with the scripting name MyNumberBox, the message you want would be:
    • May 31 2011 | 11:42 am
      works perfectly, thanks !
    • May 31 2011 | 12:00 pm
      It may also be useful to know that a pattr object can bind to a given object attribute, allowing you to remotely get/set that attribute:
      e.g. [pattr @name myPattrObject @bindo clientX::attributeName]