Well maybe not, but this kind of code could even be written by a simple php script.
Just copy the selection to clipboard, paste it in the php form and then copy the output back to the clipboard and paste it to Renoise.
There are so many modifications you can do through php. (That’s why Pulsar suggested to use PHP-GTK as development environment because with PHP-Gtk and Glade you can design gui concepts around it.)
I’ll just show a few excerpts of songdata:
A track containing multiple notes
<lines><line>0:D#302..F2,A#302D1F3,D#402D1F3</line><line>2:D#302..F2,A#302D1F2,D#402D1F2</line><line>4:D#302D5..,A#3027CF5,D#402D5..,0D04</line><line>5:OFF......,---......,OFF......</line><line>8:D#3027AF2,A#302D1F2,D#402D1F2</line><line>10:D#302D1F2,A#3027FF1,D#402D1F2</line><line>28:F#3027C..,C#4027AD1,F#4027AD1</line><line>30:G#3027F..,D#4027CD1,G#4027CD1</line><line>32:C#402..F2,F-402D1F3,A#402D1F3</line><line>34:C#402..F2,F-402D1F2,A#402D1F2</line><line>36:C#402D5..,F-4027CF5,A#402D5..</line><line>37:OFF......,---......,OFF......</line><line>40:C#4027AF2,F-402D1F2,A#402D1F2</line><line>42:C#402D1F2,F-4027FF1,G#402D1F2</line><line>58:A#3027FF1,F-402F1D1,A#402F1D1</line><line>59:OFF......,OFF......,G#4027F..</line><line>60:---..7F..,---..7CD1,C#4027FD1</line><line>62:---......,---......,OFF......</line></lines>
A track containing only an effect and a noteoff:
<lines><line>0:1F00</line><line>63:OFF......</line></lines>
A track containing a note and effect and only an effect:
<lines><line>0:C-400....,1F00</line><line>48:1F01</line></lines>
I guess you get the picture what to scan the code for and which things to hussle up and you can obviously see how rows are stored.
Start learning PHP i should say.