hi! newbie here.
I am using gemwin - gemmouse to get my mouse x coordinate. After a small expression, I am using the number object of my coordinate to create a midi note (using makenote object). The problem is that the values of the X are coming constantly (very fast) and as a result the sound isn't clear.
I am looking for a way to add a delay between each triggered note, making it smoother to use, but i want the value of my X not to be altered.
Are there any ideas?
Thank you in advance
-
: delay between triggers of a number/note
-
@evankelo Welcome to the forum...!
You could use a [delay] to close and then open a [spigot] and so stop the stream of values for the time of the [delay].
David.
If you want the notes to be sent faster as you move the mouse faster you could [count] the numbers arriving and for example output every 10th one.
But the result will be slightly "musical" changing more when you change direction (up > down or down > up) than when you are only going in one direction.
Here is the [count] object..... count.zip
-
@evankelo [iemguts/receivecanvas] might be a better option for dealing with the mouse if you are not using gem for other things as well, [iemguts/receivecanvas] only puts out mouse events when they change instead of constantly. We can make gemmouse act this way with [change] and we can further slow things down with a [metro] if need be. Here it is implemented with [iemguts/receivecanvas] since I do not have gem installed.