I have yet to try this under other hosts on my machine (I have Cakewalk SONAR and Tracktion on here at least), I’m afraid to see what they do, too. What is the “right” way to corelate events? in the context of multiple hosts which seem to have different behaviours. So I guess my question generally is a) WTF? b) how are people handling note on / note off, polyphony, voice stealing, etc. So I have no idea of knowing which note on event this note-off may be a response to.īasically in a nutshell: the behaviour to handle -1/0 pairs for the JUCE VST host causes stuck notes on VSTPluginTestHost. But worse, the note off events with 0 do not have a valid pitch to use to correlate with. However, coming back to testing in VSTPluginTestHost now I’m finding that it also sometimes sends -1 for the note ID. Three Dots: Share or Delete your Quick Note. Grid Icon: Open the Quick Notes folder in the Notes app. The only confusing thing is that the noteId I’m receiving on the NoteOffEvent is “0”, not -1, which is not consistent with the documentation. Done: Tap Done to tuck the note away when you’re finished. So in my code what I’ve attempted to do is look for -1 and if it’s there, substitute the pitch value for the ID, which isn’t ideal because in that case a “release phase” for a given note can’t happen for multiple strikes of the same key. you must trigger a note off event later for this note by calling NoteOff. Int32 noteId ///< note identifier (if not available then -1) A list of keyzones define what samples play when what notes are hit. In that implementation the noteId on NoteOnEvent is always “-1”, which isn’t great, but is acceptable according to the comments in NoteEvent: However I’m making an effort to by cross-platform, and to test in multiple hosts, so I’ve been working in Linux using the “Carla” host which works with Jack there and its VST3 hosting seems to be based on pieces from JUCE. I use this to corelate note on and off events and manage my polyphony. In the VSTPluginTestHost, for each note event I receive a valid noteId. I’m writing a VST3 instrument plugin for the first time, and in testing I see inconsistent behaviour from various hosts in regards to note on and note off events, and I wanted to see if anybody has any tips on how they’ve handled this.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |