store an artificial noteOn as an eventId?
-
Is it possible to set(store) an eventId on a Synth.addNoteOn or Synth.playNote event?
If it is, where can I find an example how to do it? -
Sure, these methods return the event ID and you can store them for later use - I am using this for the legato MIDI module.
-
@Christoph-Hart Great, do you have an example?
-
@Christoph-Hart My setup is this:
I have a panel divided in several zones and via event.MouseDownX + event.dragX it decides in which zone I am, so dragging from zone 1 to zone 2 sends a noteOff that should kill the noteOn from zone 1, and it also sends a noteOn when inside zone 2. That works perfect, however, this is an iPad app so I would like it to work for, at most, 10 different tones at the same time and I can't figure out a good way to do it without having Id's for each event -
@ulrik said in store an artificial noteOn as an eventId?:
@Christoph-Hart Great, do you have an example?
myId = Synth.playNote(some parameters);
-
@d-healey Haha, beautiful, I didn't know you could do that, thanks!