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)
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:
works perfectly, thanks !
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]
C74 RSS Feed | © Copyright Cycling '74