stop changing level
quite a confusing one so bare with me:
Im trying to take a reading from a sensor to control a slider in max, but i want to make it so when i take my hand away from the sensor the slider doesn’t go back to its original position. to make it harder the sensor is outputting a number continuously.
can anyone suggest an object or series of objects that can help with this?
this is a fairly common request, and depending on the exact desired functionality, there are several objects which apply; I think you need to examine [change +], [change -] or [past].
I’m not too sure they will help, im not too sure what i want to do is possible as im using infrared sensors to control say a volume slider in abelton. this means that i need to be able to adjust the level again once i have set it the first time.
the only way i can see round it is by making something that measures the speed of the hand movement so if you bring you hand in quickly from the side it will take a new reading, but if you raise your hand slowly it will record the movement.
do you know any objects for that?
[change +] will output a 1 when the number stream is rising, therefore you could keep a [gate] open with it; use [==] to determine the delta of the number stream and close the gate when it’s 0; ne c’est pas?
I think i see what you mean, but that still doesn’t really help.
Iv had another thought though,
----------begin_max5_patcher---------- 578.3ocyVtsiaBCDF9ZxSgkUuLMBaGN3dQk1mipUUFvIwsfIBbzl1U66dsMP aJAx5MGH4FRvLw7++kYFOuNyClTtmWCAeA7Mfm2qy77rKYVvq8dOXAaeZNq1 FFLYmRUJgyadjbWgPlyU1mgZWTjYirL4GedY3AQVtS0OzlkT+ZKuQCvDlbMD 7b6i2xToaDx0euhmpZh.iQK7mCHgQlOv9cWAOa9IuMal4xbGMiVTI7JWMCgz E4pRoRxJrhF9TkfkOrMwiYSgTAm22slcsV7aaLHr1XiCAZnw2KaXQvTBAzxG EHPZyDvAWAHTvqqYq4cNPw2aeKvfkCBF7wfI7ixkQqANGXfnwVXPCZXxhf4. T74lQveQ6niXQA6mbYohOHQHGSD7UKSYUdIylqz7kyohgPsULgln.gjKqhYX 9XXiV5thGzGEO9msqoM8IP2BWWADUHxfl1efdnT7csNAiZgfMCfDeKHhXE3S BD3q5MFn1vk.aGNWOjgFbmajXajRHVNgtzCXGlP0orbNvG3uHReEgiFjNgCQ m36a5iu8fWbSCDjO9hnitalVqtmYPu9MTOwgunEAz.TbzolEqo9gFchSfsaN LWH6OmocCMq++DptbWUZmN6F6RmkzowLdsRHYJgdJz+EjtqB.+2X1Hxx3xCa AUHx1VpG3nUCi72kyRxTj9tZxL76AA8XHpoVSTGzTeke6UE1IUE+.xJy72Sn n585Fu3CMYRJzQEMcPxkrIzjqHjCJBMgY2wNUyQu.Nou4sY+AncnXqH -----------end_max5_patcher-----------
This is what i came up with, the only problem I have now is every time the sensors detects the slightest of movements it plays the note again. do you know how i could get round this?