Here's a gyb file I made in 2017 and continued using until the end of 2020. After that, I started making my own patches and no longer needed this. It's all instruments I thought were cool from songs I liked.
To optimize this further, for every instance where a value is stored in priority(a0), you could multiply the constant being stored by 2. That way you can remove the line
add.w d0,d0
from DisplaySprite.