Hi everyone! I’m new here and new to scripting as well. I was playing with GP scripting and I tried the following piece of code from the language manual,
// Declare a global variable var A800 : MidiInBlock // A800 is a named block in Gig Performer // Callback whenanoteevent(onoroff)isreceived On NoteEvent (m : NoteMessage) From A800 SendNow(A800, m) // Send the note to the A800 MidiIn block End SendNow(A800, Transpose(m, 5)) // Also send a transposed note
It worked but the notes kept playing even after I stopped playing. And when I played another note the same thing happened. So at the end all the keys I press just kept playing. I had to use the full reset button to reset the plug-in.
Any help would be greatly appreciated
Thank you so much!
Sounds like the Note-OFFs were filtered somewhere somehow…?
Best thing if you made a new rackspace from scratch with just the necessary elements and try the script again.
I’m not quite sure what the above is supposed to be but if I break it into proper lines so that it becomes readable, then you have a SendNow statement after the end of the callback. That won’t even compile
Sorry about that I posted it from my phone… I think it messed up the lines… it’s the example in the “language manual”… … I’ll keep in mind to post screenshots of the script in the future…
Yeah… Well I named the midi in script handler to A500 and replaced the A800 in the code with A500… That’s the only change I did… And my Midi in is connected to a kontakt plug-in…
Oh, that has nothing to do with the script. Sounds like your sustain pedal is inverted. If you open the global MIDI window and press your sustain pedal down, what do you see?
This is confusing…you said it’s like your sustain pedal is down and then you said later you don’t have a sustain pedal?
So again, using the global MIDI monitor, press one note down only, what is displayed in the monitor?
Although I do have a Behringer FCB1010 for the soul purpose of program change… I’m pretty sure it only sends midi program change messages… What do you think?
Thanks for your time guys! I really appreciate it… Will post again if I’m in trouble… And I will test more before I post something again… In case it works on its own…