5. Computational Process
• analyse the problem and identify an algorithm
• break the problem down into a series of steps or
sub-problems
• create new algorithms and write pseudocode
• code, test and debug each sub-problem
• code sub-problems into parallel threads, test and
debug
http://sandboxeducation.co.uk
6. Algorithm
Blues Chords + Blues Scale Notes
played over 12 bars = 12 Bar Blues
http://sandboxeducation.co.uk
12. Code in Sonic Pi
Music Notation Midi (computer) Notation
play C3 play 48
play E3 play 52
play G3 play 55
play Bb3 play 58
http://sandboxeducation.co.uk
27. # Welcome to Sonic Pi v2.1.1
#Blues Scale Octave 4 and 5
48.times do
play_pattern [:C, :Eb, :F, :Fs, :G, :Bb, :C5]
play_pattern [:C5, :Eb5, :F5, :Fs5, :G5, :Bb5, :C55]
sleep 0.25
end
http://sandboxeducation.co.uk
28. To Do!
• use rand for random function to vary the notes in the
blues scale
• code the chords and the scale to play at the same
time ( in thread do)
• experiment to find the right temp or bpm 100+
• experiment to find the best synth
• experiment to find the best release and attack values
for blues
http://sandboxeducation.co.uk
29. Get in touch…
Computing CPD
Computing Lessons
Hacks and Jams
Tech Fests
Hackathons
Hardware
info@sandboxeducation.co.uk