Opposite of 'past' object?
I need to send a bang when a number is reached in a descending run of numbers. Like ‘past’ bangs from low to high, but opposite.
I can’t seem to find something like that.
‘select’ doesn’t respond quickly enough. ‘< ' bangs at every number less than. I need it to bang only when it gets the specified number and only when on the descend.
can you not just use past, with num*-1 and take you number away from 0, i.e. if the threshold is 40
----------begin_max5_patcher---------- 440.3oc0UE0aBBCD9Y3WQWeVMzBnt819crXLEoSqAKj1hyMi+2G8.FpAzEly r8BM20q288806J6ccvQo63ZL5IzKHGm8tNNfKqCmJaG7F1tEILMDFVluIhqv CJ250ToQK9fa2hPG4U4NiYVrRHWNWwWXJyNg5UrMx2apcIDLrtPypNiHFxeZ z5gz5zWTLgLgafRS9J4J1FtgqlykrnDn1dMGHM2TeB5QnTVbFn.OqDrj5BTF r48LdIJwBoAO.giXxkXzLaPGbcseF7aqOgfvPGGbc8g7eVe3uUPg57a36.9i eXHxqUQy+Rhl+DnmxmBKzQgEZFocMKrUMi1ptP5mtbK0iLl1fFFzGMAZf7m9 HzGABTWZB4xCZ+XQo+cIQ4FSpDeMVFPlTOmbgokvdvxaHWzIh3lWD5jKDx3F tPB55owa0remD8TRBX.mHjm+WBfGV+mxbcZtZQcppl6PMLIlqMBIyHJtbahg dRLqDwwb4wHOVnsjATAuVuA9tnwJeWENj+VvI7tAmuycE49cYcVo5.O8UdJ6 rYYYa4JcUNAnTL8tNUYMGO.LExRSHiXEeqnN9.Wa1N39I7.ShbB -----------end_max5_patcher-----------
Simplest way I know is:
----------begin_max5_patcher---------- 369.3ocyU01SCBCD9yrj8en1OuszhHf9CwuXVLEZcqFncgVhSW7+tskWb5xj lH37K8BO2wc2yy0CNLeV.LStmoff6.O.BBNXPBbXVjfNf.XIYedAQ4BDlUq0 RAbQqucDc9VtXyiUrbcSltFgWgV.BiSrln9Sv5tWRTWxEELsKi3iPk05Sf4T WckYOuDi6qaSj5W2wZJJLiH1.Aqctee9Lq0XV3MuDrWLknO+Z1dGcLDToAoI 9P3Hm4lX2C3gI7SRgVPJcL.dOqhRDDn+pQ5fhwwERwey4EGtBM5hzUKM40KM B2bcHc.MJbjznjyqQbgdJjng2Ov2FMQ6GwS25gpfSYUdPq3lQKxdhiPiAsBO OslrM9HjOiv+3Md7Xsw2DHrfKN4y+N1Zc7MoSIqqx6pV6pE3HBSYJMWPzbyk +OCJ8qAskSoLmeTGTImtSZ1Ea6ieZd5cqk5SqY+YxEn2B8o2RtHsF1mVK9+q p86GnV.i4CvlM4+q -----------end_max5_patcher-----------
>select’ doesn’t respond quickly enough
Damn, how fast are you transmitting data here? I’d like to see the patch in question.
Thanks guys! Three great options.
@Wetterberg: I’m using cv.jit.mass for motion tracking. It might be that cv.jit.mass isn’t putting out every number?
(Refreshing memories :)
Hello, the one to be given credit for that [js] solution would be me; it originated in this topic:
Though being an ultra-short routine, it still had redundant code to be simplified, that escaped my attention in my earlier posts to the topic above.
The recent version can be found in the zip attachment I posted to the topic below:
Could you rephrase your question please?
EDIT: I think you were referring to an object (?)
Yes, you were… :)
[trough] seems to be the opposite of [peak], and does not seem to function as the opposite of [past], because -besides outputting different things- (the doc means that) it continuously updates the "threshold", but a constant one is needed in this case…
… I think.
You’re right. I was responding off the top of my head without reading very carefully or giving it much thought (which was not a great idea), and you’re correct that trough is the opposite of peak, not past. I like big_pause’s solution, which is economical and seems pretty problem-free.
Forums > MaxMSP