This tool will reduce the song insertion size by utilizing the equals (=) command instead of ties.
It is recommended that you loop and/or optimize ties with consecutive dupe values before using this. There may not be any line breaks between the ties.
Example: r1^1^1^1 would become [r1]4, a2^2 would become a1, and so on. This to avoid possible errors.
Only tested in Firefox, but it should work in other browsers too. Result only tested in Romi's addmusic.
Processing might take a bit, at the point of locking up your browser for a bit for larger music. If that happens, don't panic and wait for it to finish.

I/O

Unsafe mode
Unsafe mode results the notes looking more wicked, increasing the chance of insertion and music errors,
but might reduce the insertion size even more (or increase it). Use it at your own risk!
Example: 2^2^4 would look like 2^=144 in unsafe mode, while it would remain 2^2^4 in safe mode.
Thanks SNN for a document regarding the equals values.

Blatant advertisement: Go visit my blog sometime: http://ersanio.blogspot.com/.