Idea:wipe Notes That Send To Midi, From Current Track

Hi, the idea is this:
A method of deleting notes based on one setting. If you have all of the track selected in the pattern editor, like this:

and if the pattern-data contains notes from two different types of instruments (a sample-instrument, and a external midi-instrument, like this: )

then depending on the preference-setting, when one runs the script, if the midi-instrument is chosen to be deleted in a gui or in th epreferences of the script, then everytime you select something and run the wipe-script, it will delete all notes from midi-instruments (and replace them with note off commands).
since it would be settable, one could decide what is wiped with the wipescrip.