TheMooseman Posted October 19, 2018 Share Posted October 19, 2018 Is there a note length parameter or way to delay the noteOff from an event in the scripter? I don't see anything in the manual but I'm sure someone here would know more or a work around. Quote Link to comment Share on other sites More sharing options...
TheMooseman Posted October 20, 2018 Author Share Posted October 20, 2018 I think I figured it out, I just generate note on and off events when it gives me an event. I define the things that a want on that new event Quote Link to comment Share on other sites More sharing options...
TheMooseman Posted October 20, 2018 Author Share Posted October 20, 2018 Now I have a separate issue, my GetParameter is never equal to the value I give it even though "C" is selected in the window. Am I using it incorrectly? var PluginParameters = [{ type: "menu", name: "Note Selector", valueStrings: ["none", "C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B"], defaultValue: 0, }]; function HandleMIDI(event) { if(event) { var pitch = GetParameter("Note Selector"); if(GetParameter("Note Selector") == "C") { event.pitch = 48; event.send(); } } } Quote Link to comment Share on other sites More sharing options...
TheMooseman Posted October 20, 2018 Author Share Posted October 20, 2018 Looks like GetParameter is actually returning the index that is selected, not the string. Silly me, also just learned you can "Trace(var);" for testing Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.