Did some extra digging, if i comment all midi.sendShortMsg out, script is not crashing.
midi.sendShortMsg( 1, 0x32, 0x64);
it result in
Warning [Controller]: Error sending short message "Midi Through Port-0: outgoing: status 0x1" Warning [Controller]: PortMidi error: PortMidi: `Invalid MIDI message Data'
if i change it in: midi.sendShortMsg(0x8F + 1, 0x32, 0x64);
Debug [Controller]: Midi Through Port-0: t:95512 ms status 0x90 (ch 1, opcode 0x9), ctrl 0x32, val 0x64 No protocol specified
The No protocol specified is displayed, just before segmentation fault.
I dont think problem is in the Midi for light script.
// edit
if i use a command from other script: midi.sendShortMsg(0x90,0x2A,0x00);
Just to be sure if the format is correct, it crashes.
Did some extra digging, if i comment all midi.sendShortMsg out, script is not crashing.
midi.sendShortMsg( 1, 0x32, 0x64);
it result in
Warning [Controller]: Error sending short message "Midi Through Port-0: outgoing: status 0x1"
Warning [Controller]: PortMidi error: PortMidi: `Invalid MIDI message Data'
if i change it in: sg(0x8F + 1, 0x32, 0x64);
midi.sendShortM
Debug [Controller]: Midi Through Port-0: t:95512 ms status 0x90 (ch 1, opcode 0x9), ctrl 0x32, val 0x64
No protocol specified
The No protocol specified is displayed, just before segmentation fault.
I dont think problem is in the Midi for light script.
// edit
if i use a command from other script: sg(0x90, 0x2A,0x00) ;
midi.sendShortM
Just to be sure if the format is correct, it crashes.