By "modulate the note number" do you think "send other note on message" ?to have a single noteOn on entering the box,x or y might modulate the note number, a noteOff on leaving
This will cause problem if there is no note off corresponding, like now.
The ideal will be perhaps to have several modes :
- simple gate (buttons) : a defined note on number and velocity is send when enter, and a corresponding note off when going out, or when posing and removing the pen inside the button
- variable gate (XY) : idem but the note on value and the velocity can be set to X and Y. Only one note on (going in the box or clicking on it) can be sent before a note of event is sent (by going out of the box or removing the pen). A note of event use always the same note number that the last note on whatever is the actual position of the pen.
- multiple triggers (XY) : a note off is sent after each note on (fixe time value or depending of another parameter ???), notes are sent each time the pen is moving inside the box, or, if possible, inside a quantization grid ?
Only some suggestions...