I suspect you are much more experienced / skilled than I am. I use Thonny, which makes a lot of things easier, but it's still a struggle sometimes. I miss the old days of programming my ZX Spectrum... one box, one way of working, no dependencies, no packages... It all seemed so straightforward.
Still, I did figure this challenge out, which was actually very satisfying. Looking on the web, I see I'm not the only person to ask this question and at least one proposed answer is just wrong enough to cause endless frustration!
Anyway, I purchased your chiptune pack and it's excellent. Thank you!