Script query and possible bug

the two control messages are sent out twice

send(false,'/note',1,24)

You need a third argument (note velocity) to make it work.

And lastly a possible bug [...]

A bug indeed, not only affecting the script widget. it will be fixed in v1.