should be trivial using standard expressions. Might not be pretty though as there are interactions with lots of other aspects of the utility eg do ré mi notation (could do
that for you in ascii

), future proofing internationality generally, and a need to clarify what is a voicing octave, what is a note symbol in the edit box. There are also more subtle interactions with the box itself, various browsers implement it slightly differently.
What's stopping you using unicode though? It's been a standard since HTML2, and we have HTML5 about to roll out, I believe it overtook ascii nearly ten years ago on the Web, with even "traditional" sites such as … "melodeon.net"

coded in … UTF-8!
But I'll put "retro-fit ascii" on the to do list
