Sonic Pi Coding Class 004

It was agreed to give a small prize to the student who worked the hardest during the class and who also worked the hardest in producing their final piece/s of music based on a brief. I’ve created links here to the more obscure parts of the prize so that the recipient has a starting point to work out what they can be used for! Arduino code for the Ultrasonic Ruler that was worked on in class can be found in my GitHub repository, here....

November 27, 2017

Sonic Pi Coding Class 003

Last week we wrote a function to set the volume based on musical dynamics like ‘ppp’ or ‘fff’ Functions can also be used to return information to us. An example of a function that returns a value is below. Type it in and see how it works. define :get_volume do |music_notation| # Write your code here to work out volume level # corresponding to music_notation like 'ppp' # Return the volume level like this # return volume_level # Or we could just return a number for this # example to see how it works return 0....

September 14, 2017

Choosing a Random Synth in Sonic Pi

Towards the end of our coding class at school today, one of the children asked me how they would choose a random synth in their code. I couldn’t give them the answer off of the top of my head so I came home and have placed two different solutions below: # Choosing a Random Synth in Sonic Pi # Solution 1 10.times do use_synth [:beep, :blade, :cnoise, :dpulse].choose play :C3 sleep 1 end # Solution 2 10....

August 10, 2017

Sonic Pi Coding Class - 002

My little boy, James, has been taking piano lessons for two terms now. Last week, his teacher asked him to do an assignment on a minuet. James knows I’ve been running a coding group at school with Sonic Pi so he asked his teacher if he could write his minuet in Sonic Pi as part of his work. It was his first coding in a non block type language like Scratch....

July 4, 2017

Sonic Pi Coding Class - 001

Resources: Sonic Pi Website… Introduction to Sonic Pi for Parents… Tutorial… Cheat Sheet… All Sonic Pi posts on this website…

June 22, 2017