Hi,
Fortunately, Lightjams already supports the standard MIDI messages to reset notes and CC.
To set all notes to off, you can send the CC 123 message (all notes off). The controller value isn't important and as soon as this message is received, all notes are set to 0%.
There is also the CC 121 (all controllers off) to reset all control change (CC).
The all notes off and all controllers off messages are per channel. So if you want to reset multiple channels, you need to send one message per channel. However, there's also a global reset message you can send which is named METAEVENT (end of track) and has a a command code of 255 (0xff). When receiving this message, Lightjams set all notes and CC of all 16 channels to 0%.