Hey, yeah you could do something like that with MSS. I'll attach a sample program that does this. Bassically there are two mappings. It uses two variables. modMatrix is used to set the note number that should trigger the CC output. nextOut will keep track of weather to output 0 or 127. It also uses two mappings.
The first mapping maps all notes to CC7. I used the following equation: "if(noteNum = modMatrix_rel, nextOut, ignore)". This basically says if the incoming note number matches the note number set in the modMatrix variable then output the value stored in the nextOut variable to CC7. Otherwise just ignore the incoming NoteOn message and don't output anything.
The second mapping maps all notes to the nextOut variable. The equation is as follows "if(noteNum = modMatrix_rel, !nextOut, ignore)". This means if the incoming note number matches the note number set in the modMatrix variable then set the nextOut variable to "!nextOut". The ! operator will essentially return 0 if nextOut is 1 and it will return 1 if nextOut is 0.
It's a bit of a complicated implementation but you could simplify it a lot if you want to just hard code the note number that should trigger the CC output instead of making it adjustable in the modMatrix variable. let me know if you have any questions.