Doubling and halving MML note lengths

What this does and why.

These regular expressions will help you either double the length or halve the length of all notes in your MML. This can be useful for whenever you need to fix slowdown caused by very high tempos or when a MIDI used (for some reason) very short lengths combined with very slow tempo, which can cause a very considerable staccato.

IMPORTANT:

• You will need Notepad++ for this.
• This only works for notes. You will need to change duration-based hex commands manually (for now). Doesn't work for ticks (=) either (be careful).
Always replace these in order!! Start from the top of the list all the way down to the bottom of the list. Doing so out of order will mess up the MML very badly.



Doubling

Hold Ctrl + H on your keyboard to open up the Replace window and change the Search Mode to Regular Expression.
Regex list for each note length:

LengthWill change to..."Find what:""Replace with:"
11^1(?<!\$)([a-glr\^][\+-]?)+1(?![0-9])\11^1
21(?<!\$)([a-glr\^][\+-]?)+2(?!4)\11
3=128(?<!\$)([a-glr\^][\+-]?)+3(?!2)\1=128
42(?<!\$)([a-glr\^][\+-]?)+4(?!8)\12
63(?<!\$)([a-glr\^][\+-]?)+6(?!4)\13
84(?<!\$)([a-glr\^][\+-]?)+8\14
126(?<!\$)([a-glr\^][\+-]?)+12\16
168(?<!\$)([a-glr\^][\+-]?)+16\18
2412(?<!\$)([a-glr\^][\+-]?)+24\112
3216(?<!\$)([a-glr\^][\+-]?)+32\116
4824(?<!\$)([a-glr\^][\+-]?)+48\124
6432(?<!\$)([a-glr\^][\+-]?)+64\132
9648(?<!\$)([a-glr\^][\+-]?)+96\148
19296(?<!\$)([a-glr\^][\+-]?)+192\196

Halving

Hold Ctrl + H on your keyboard to open up the Replace window and change the Search Mode to Regular Expression.
Regex list for each note length:

LengthWill change to..."Find what:""Replace with:"
192[cannot be halved]n/adelete, idk
96192(?<!\$)([a-glr\^][\+-]?)+96\1192
64128(?<!\$)([a-glr\^][\+-]?)+64\1128
4896(?<!\$)([a-glr\^][\+-]?)+48\196
3264(?<!\$)([a-glr\^][\+-]?)+32\164
2448(?<!\$)([a-glr\^][\+-]?)+24\148
1632(?<!\$)([a-glr\^][\+-]?)+16\132
1224(?<!\$)([a-glr\^][\+-]?)+12(?!8)\124
816(?<!\$)([a-glr\^][\+-]?)+8\116
612(?<!\$)([a-glr\^][\+-]?)+6(?!4)\112
48(?<!\$)([a-glr\^][\+-]?)+4(?!8)\18
36(?<!\$)([a-glr\^][\+-]?)+3(?!2)\16
24(?<!\$)([a-glr\^][\+-]?)+2(?!4)\14
12(?<!\$)([a-glr\^][\+-]?)+1(?![0-9])\12