How to Set Note Durations
-
Does anyone know the best way to intercept incoming notes, and manually their duration (i.e., when the note-off occurs)? Ideally, this method would be compatible with delayEvent(). Thank you.
-
-
@clevername27 I haven't tested this but you'd need to turn it into an artificial event and then you could probably use
Synth.noteOffDelayedByEventId()
-
Thanks, man.
@d-healey said in How to Set Note Durations:
Synth.noteOffDelayedByEventId()
So I would make a copy of the real event with
Message.makeArtificial()
, and thenMessage.ignoreEvent()
the original?But if
Message.makeArtificial()
returns an event ID, how do I get toSynth.noteOffDelayedByEventId()
?I also don't understand how II should use
Synth
or what that refers to?Thank you - why would it need to be artificial?
-
@clevername27 you don't need to ignore the original, just make it artificial. You can't kill real events so you need to make it artificial first. Synth is just the name of a class, like Content or Engine.
-
@d-healey I guess I'm thrown because the docs say it creates a "copy", which seemed to mean that there were now two identical events?
-
@clevername27 Hmmm, try it and report back.
-
@d-healey You are kind, thank you. I'll donate some code.