Some more Bach again!

One of my favourite composers. I’ve looked at the Toccata and Fugue before but came across a version set for wind instrument in five parts. With some tweaking I was able to code this for Sonic Pi, and decided to have a go at only using internal synths :tri and :saw The difficulty is in getting some balance between the parts. This is my first mix and it is reasonable.
Initially I had trouble with glitches on my Mac, but I think this was due to garbage collection, and I had the lists of data for each part interleaved with the code. When I moved all the data to the beginning so that it was loaded before playing started things seemed to be OK.
The original was on MuseScore by Guillaume Bentaieb with a creative attribution licence.
https://musescore.com/user/2953356/scores/7328486

The code is here

8 Likes