I just downloaded the OP-X plugin to really make sure my scriptlet actually worked…
what can i say - unfortunately it didn’t! (even if it should)
So i tried to use a rackspace script instead, and this worked (at least as far i can tell).
I created a note ON without a note OFF (by script) and now, when i pressed my “manual all notes off” button, the note was instantly silenced.
Strange enough that the code is almost the same… I guess i’ll have to discuss this with the devs.
For now you can probably use the rackspace in this gig file as a workaround - i liked the scriptlet solution better, because it’d be more flexible and had a better handling. We’ll see…
As a little goodie, you will have a nice panel.
OP-X Pro plus AllNotesOFF script.gig (247.4 KB)
This would be the actual code
var
allOFF : widget
mainKeys : MidiInBlock
running : boolean
alltheNotes : Integer Array
Initialization
var
index : integer
running = false
//fill an integer array with the note values from 0 to 127
for index = 0; index <=127; index = index +1 Do
alltheNotes[index]=index
end
End
// Called when a widget value has changed
On WidgetValueChanged (kval : double) from allOFF
var
noteNumber, actChan : Integer
If kval > 0.6 and running == false Then //when triggered
running = true
For actChan = 1; actChan <=16; actChan=actChan +1 Do // go through every 16 channels
PlayNotes(mainKeys, alltheNotes, 0, actChan, 0, 5) //send note OFF with duration of 5ms for all possible notes
end
running = false
AllNotesOff(mainKeys)
end
End