Sleeping Terror (bash/SoX arrange)
Composed by ZUN for Touhou 4: Lotus Land Story
Arranged by me
An arrange of Yuuka's first boss theme in Sound eXchange, programmed in shell script.
Source code at https://gist.github.com/jobbautista9/107f502d20dadd6f851f920e568cf1cf
As you can see from the code, I refactor almost all of it. I was able to find a way to use sox pipes for the whole piece while still making it easy to input the notes and their durations. It's not perfect though; first you can't easily reuse parts (which is why you see "repeat" comments mid way, copy-paste is the only solution, which sucks), second it takes a very LONG time for sox to load all of those pipes (which is why it doesn't loop back smoothly, which again sucks). I can't use echo for each note either, but I've found a workaround for that. But all those cons are outweighed by the huge pro that I can basically play pieces as fast as Sleeping Terror now!
Anyway, special thanks to TrojanHorse711 for their VRC6 arrange of Yuuka's theme (which you can listen to at https://www.youtube.com/watch?v=cHJxe_iERwM)! The tracker file made it a lot easier for me to input the notes. Thanks to BillyWar as well for their sheet music in MuseScore format at https://musescore.com/user/9128086/scores/5093131, I was able to use the correct BPM for the intro, as well as see which ones are clearly dotted notes.
Yuuka art in the thumbnail is basically an ANSI conversion of her official portrait from Touhou 4, using this tool: https://github.com/TheScienceElf/Video-to-Text
(Yes, this is sort of a reupload of Sleeping Terror. I fixed the loop thing, which I could've easily done in the first place by not emptying the notes array and resetting the soxpipes variable when looping back...)

