Oopsy Param modifiers?

Ahoy all! Quick question on what I might be able to do with switch params inside Gen~… Specifically something like an argument that would return a float representing the number of seconds the switch has been held down?

There’s something like this in the PD integration, but I haven’t been able to find anything like it for Oopsy? In another post, Mr. GrrrWaaa explained things like:

E.g. [param cv1_int_foo @min 0 @max 4] will only ever send 0, 1, 2, 3 or 4.

Also, [param cv2_bool_foo @min 2 @max 5] will only ever be 2 or 5, etc.

Is there more here than just offs and ons?

1 Like

Yep, i need this info too! And another question about param modifiers for Encoder on Daisy Patch.

“Is there more here than just offs and ons?” – yes – if you don’t use “int” or “bool” in the param name, you will get full unquantized floating point resolution. Apologies if I’m misunderstanding the question.

For “the number of seconds the switch has been held down”, there’s a few different ways to approach it – depending on whether this is something you want to know continuously, or only after the button is released, etc. Here’s a patch that shows both of those – you could turn the core of this into an abstraction for re-use:


----------begin_max5_patcher----------
1663.3oc2Z00iahCE84L+Jr30c5Trg.jUpRc+cTsJh.dHtELHrYlosp8295u
f.IPfzDBi1WlLXar84368bu13e9vJqc4ugYVf+F7EvpU+7gUqTEIKXk44UVY
guEkFxTMyhVksCW9aqG008bNkSCyvp59mRRXZcMhFlWwSwb06gLkpKh+8Brd
PsXjDp7k.VOmlGxs.+qokY4w31uobjdNLRUlsorhPdzdBMYaINhq6PmM9OY+
H.gPxefvM5mdxtoiEinpOdptWHwpYe9tu9gMswEi7C0nAQMMU.JBsASxx90C
OH+yi+Og9PdatB5KX1oO7qhwodT332TSaqLLuLGr11F74vHN4EL.1OOBGhG2
ERSNPdCSL9tCwKsnAeqaEd44IIo3KDKDJeJPAZuVAB25+1GTb6EJvlNuTX7x
wkawzvcoZiqa2xZBl969wt639Cm4+lB4DHMvEpImacFNB4H5bboA1FbKbMHo
3WvkLRNsUqWYEVTzp3UsdEIY80bUGE7XSQDptHmlhJwuPpe+CkFVJfHWfupR
sLyad0KpFYhRZEQMUzEJV1LSI0BjTdhUXTNrhYEOIVVp6.qCDmWfxbB5n9IP
aVs1skckvJHIMO5a33VhPh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m5BD8Bbqb6MfOKl
Ahc18YwqOem+p1qvvQAiG0cPNx99vQ+07RDlyIAtd7ChdoyFSJO.UG03UqMX
NfLiz.bTreYodc3yYIiuMvGoPMqj02OovxqJipWKq+N.ftSvXLiSnMecuub3
DykMbRKJW7rXhSB2SZWdYr961hVzIlbSEBqn1MLiDWjSnbyBku5j4cLNDhso
3e5in05ys2Qs4N0S8CV3xBVzIMrev5owgmayS8CG6YANnoZZCclFdfPyNM2z
7z6S7XOrax7X4frmpJh1MYVlDJevoLIpmsyyrvcpTwYDyrW1oVOL4LqyN8oF
5Dg1Y11FNUYwdBkdjLRsxgPtGIO8Nn+gGuqFBSVo28dqjzSrk9mZalSe3KQN
a1lDSUMyavIgoPcIW387KjyKqHW30Y7v00S955MlZ1Fl032iOWm16vbfKxG5
ptkipdra9yZx33UGCkbxpRGkwymkZuj9TGG2ILNnav3flv3.uAiCrsr83tzW
03LFdBNYbzlEGcsNkCwQWmyitJmmdMNG9Jbd702Tc0M66ZaJcKe3WO7e.K9C
6bC
-----------end_max5_patcher-----------
1 Like

I very glad to see mr. Grrrwaaa here! :slightly_smiling_face:
May be you can answer my question about param modifiers for encoder in daisy patch?
Int, bool etc works with main four knobs (cv1-cv4), but when i create more then four params, as you know, i can use encoder and oled screen for them. But all modufiers, such as bool, int not working with it. Only floating numbers. I wanna use encoder for switches, for change some int numbers (for samples, pitches or waves ,for example), but i cant :frowning: