I am new here. After discovering spi and going through tutorials, I’ve decided to learn more by trying to code some existing music that I like as close as close as I can to the original. So I picked Hopopono by GoGo Penguin. It was challenging to me because I am a software developer, but not a musician. Nevertheless, I coded the entire piece to the best of my ability, here is the result:
https://garenhart.bandcamp.com/track/hopopono-sonic-pi-version.
And here is the complete source code:
https://gitlab.com/ghartunian/gogo-penguin-hopopono
NOTE: The code size exceeds Sonic Pi buffer limit, so in can’t be executed from the editor. I use VS Code for development and run it from Sonic Pi using command line to run from external file (works even better):
run_file get(:rfpath)+“hopopono.rb”
where rfpath is a variable set in the init.rb file pointing to your directory:
set :rfpath, “~/path/to/my/files/” #nb include trailing /
Read more about running from external file in documentation for run_file or in this post:
Relative paths for run_file