Something new! I am encouraging my students to “learn to code” (if they don’t already know how) and have some fun using Sonic Pi, an innovative live-coding platform for learning to do musical programming. Sonic Pi was developed by Dr. Sam Aaron at Cambridge University. Dr. Aaron has provided a lot of helpful resources, including videos, a free e-book, lots of examples, and even links to school curriculum materials using Sonic Pi.
Although Sonic Pi is designed to work with the Raspberry Pi, you can download versions for Apple Macintosh and Windows computers. The programming environment is well-designed, intuitive to use, and a lot of fun!
Links
Sonic Pi website with downloads
Coding Challenges (Part 1)
These are beginning-level code challenges that focus on some basics of programming and how Sonic Pi works. The Sonic Pi code editor loads and saves text files. You can download these files and load them from your own computer, or you can open them in your browser or text editor and copy-and-paste the text directly into the Sonic Pi code editor. General and specific instructions for each lesson are included in each file.
Challenge 3 – Half and Whole Steps
Challenge 4 – Operators and Code Blocks
Challenge 5 – Variables and Conditional Statements
Coding Challenges (Part 2)
These code challenges are a bit more advanced than those in Part 1.
Challenge 16 – Functions Part 2
Challenge 18 – Chord Progressions