SlideShare a Scribd company logo
1 of 30
Download to read offline
Siobhan Ramsey
Chief Exec
1
http://sandboxeducation.co.uk

info@sandboxeducation.co.uk
Compute the [Blues]

We are Sandbox Education
Compute the [Blues]

in Sonic Pi

http://sandboxeducation.co.uk
[Computational Blues]
12 Bars in the Key of C
http://sandboxeducation.co.uk
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
Algorithm
Blues Chords + Blues Scale Notes
played over 12 bars = 12 Bar Blues
http://sandboxeducation.co.uk
Sub-Problem 1
Blues Chords
http://sandboxeducation.co.uk
Sub-Problem 1
Code Blues Chords
over 12 Bars
http://sandboxeducation.co.uk
Chords
and Notes
Blues
Chords
Notes
C7 C E G Bb
F7 F A C Eb
G7 G B D F
http://sandboxeducation.co.uk
play C
 play 60
play C play 48
http://sandboxeducation.co.uk
Music Notes [C]
Midi Values [60]
http://sandboxeducation.co.uk
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
C7 Chord
Blues
Chords
Notes
C7
C E G Bb
60 64 67 70
http://sandboxeducation.co.uk
F7 Chord
Blues
Chords
Notes
F7
F A C Eb
http://sandboxeducation.co.uk
G7 Chord
Blues
Chords
Notes
G7
G B D F
http://sandboxeducation.co.uk
Blues Chords
Chord C7 F7 C7 G7 F7 C7
Bar 1 2 3 4 5 6 7 8 9 10 11 12
Notes 16 8 8 4 4 8
Total
Notes
48
http://sandboxeducation.co.uk
[Chords]
C7
play 48
play 52
play 55
play 58
F7
play
G7
play
http://sandboxeducation.co.uk
Blues Chords 4 Bars
C7 Chord
16.times do

play 60

play 64

play 67

play 70

sleep 1.0

end
http://sandboxeducation.co.uk
Function
play_chord [67, 71, 62, 65]
http://sandboxeducation.co.uk
16.times do 

play_chord [60,64,67,70]

sleep 1.0

end
16.times do 

play_chord [48,52,55,58]

sleep 1.0

end
C7 Octave 4
C7 Octave 5
http://sandboxeducation.co.uk
Bar 1 2 3 4 5 6 7 8 9 10 11 12
Chord C7 F7 C7 G7 F7 C7
http://sandboxeducation.co.uk
8.times do

play_chord [53,57,48,56]

sleep 1.0

end
16.times do 

play_chord [60,64,67,70]

sleep 1.0

end
F7 Octave 3
C7 Octave 4
http://sandboxeducation.co.uk
# Octave 3 C7 

play_chord [48,52,55,58]
# Octave 3 F7 

play_chord [53,57,48,56]
# Octave 3 C7 

play_chord [48,52,55,58]



#G7 Octave 4 

play_chord [?]
# Octave 3 F7 

play_chord [53,57,48,56]
# Octave 3 C7 

play_chord [48,52,55,58]
http://sandboxeducation.co.uk
Melody
Sub Problem 2
Blues Scale
http://sandboxeducation.co.uk
Melody
Scale Notes
C Blues C Eb F F# G Bb C
http://sandboxeducation.co.uk
Function
play_pattern [:C, :Eb, :F, :Fs, :G, :Bb, :C5]
http://sandboxeducation.co.uk
# 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
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
Get in touch…



Computing CPD
Computing Lessons
Hacks and Jams
Tech Fests
Hackathons

Hardware



info@sandboxeducation.co.uk
Siobhan Ramsey
info@sandboxeducation.co.uk

More Related Content

More from SteffNaace

Enhancing Teaching and Learning Through Technology- Andy Dolinski
Enhancing Teaching and Learning Through Technology- Andy DolinskiEnhancing Teaching and Learning Through Technology- Andy Dolinski
Enhancing Teaching and Learning Through Technology- Andy Dolinski
SteffNaace
 
Technology in Education- Danny Arati
Technology in Education- Danny AratiTechnology in Education- Danny Arati
Technology in Education- Danny Arati
SteffNaace
 
Listening to Learn: Reflections on Creating an Effective Learning Environment...
Listening to Learn: Reflections on Creating an Effective Learning Environment...Listening to Learn: Reflections on Creating an Effective Learning Environment...
Listening to Learn: Reflections on Creating an Effective Learning Environment...
SteffNaace
 
Improving Intervention with an Online Teaching and Learning Solution- Kat Tho...
Improving Intervention with an Online Teaching and Learning Solution- Kat Tho...Improving Intervention with an Online Teaching and Learning Solution- Kat Tho...
Improving Intervention with an Online Teaching and Learning Solution- Kat Tho...
SteffNaace
 
Shaping the Future of CPD: Looking at the Value of Web Based Video in Profess...
Shaping the Future of CPD: Looking at the Value of Web Based Video in Profess...Shaping the Future of CPD: Looking at the Value of Web Based Video in Profess...
Shaping the Future of CPD: Looking at the Value of Web Based Video in Profess...
SteffNaace
 
Getting Things Right by Getting Things Wrong- Sophie Pendrell
Getting Things Right by Getting Things Wrong- Sophie PendrellGetting Things Right by Getting Things Wrong- Sophie Pendrell
Getting Things Right by Getting Things Wrong- Sophie Pendrell
SteffNaace
 
Helping Schools to Deliver the New Computing Curriculum Successfully- Yvonne ...
Helping Schools to Deliver the New Computing Curriculum Successfully- Yvonne ...Helping Schools to Deliver the New Computing Curriculum Successfully- Yvonne ...
Helping Schools to Deliver the New Computing Curriculum Successfully- Yvonne ...
SteffNaace
 
De-risking Innovation in ICT- Paul Bruce
De-risking Innovation in ICT-  Paul BruceDe-risking Innovation in ICT-  Paul Bruce
De-risking Innovation in ICT- Paul Bruce
SteffNaace
 
If at First You Don't Succeed, Try and Try Again! - Michael Brennan
If at First You Don't Succeed, Try and Try Again! - Michael BrennanIf at First You Don't Succeed, Try and Try Again! - Michael Brennan
If at First You Don't Succeed, Try and Try Again! - Michael Brennan
SteffNaace
 

More from SteffNaace (11)

Sensing our World- Margaret Low
Sensing our World- Margaret LowSensing our World- Margaret Low
Sensing our World- Margaret Low
 
Enhancing Teaching and Learning Through Technology- Andy Dolinski
Enhancing Teaching and Learning Through Technology- Andy DolinskiEnhancing Teaching and Learning Through Technology- Andy Dolinski
Enhancing Teaching and Learning Through Technology- Andy Dolinski
 
Technology in Education- Danny Arati
Technology in Education- Danny AratiTechnology in Education- Danny Arati
Technology in Education- Danny Arati
 
Listening to Learn: Reflections on Creating an Effective Learning Environment...
Listening to Learn: Reflections on Creating an Effective Learning Environment...Listening to Learn: Reflections on Creating an Effective Learning Environment...
Listening to Learn: Reflections on Creating an Effective Learning Environment...
 
Improving Intervention with an Online Teaching and Learning Solution- Kat Tho...
Improving Intervention with an Online Teaching and Learning Solution- Kat Tho...Improving Intervention with an Online Teaching and Learning Solution- Kat Tho...
Improving Intervention with an Online Teaching and Learning Solution- Kat Tho...
 
Shaping the Future of CPD: Looking at the Value of Web Based Video in Profess...
Shaping the Future of CPD: Looking at the Value of Web Based Video in Profess...Shaping the Future of CPD: Looking at the Value of Web Based Video in Profess...
Shaping the Future of CPD: Looking at the Value of Web Based Video in Profess...
 
Getting Things Right by Getting Things Wrong- Sophie Pendrell
Getting Things Right by Getting Things Wrong- Sophie PendrellGetting Things Right by Getting Things Wrong- Sophie Pendrell
Getting Things Right by Getting Things Wrong- Sophie Pendrell
 
Helping Schools to Deliver the New Computing Curriculum Successfully- Yvonne ...
Helping Schools to Deliver the New Computing Curriculum Successfully- Yvonne ...Helping Schools to Deliver the New Computing Curriculum Successfully- Yvonne ...
Helping Schools to Deliver the New Computing Curriculum Successfully- Yvonne ...
 
De-risking Innovation in ICT- Paul Bruce
De-risking Innovation in ICT-  Paul BruceDe-risking Innovation in ICT-  Paul Bruce
De-risking Innovation in ICT- Paul Bruce
 
If at First You Don't Succeed, Try and Try Again! - Michael Brennan
If at First You Don't Succeed, Try and Try Again! - Michael BrennanIf at First You Don't Succeed, Try and Try Again! - Michael Brennan
If at First You Don't Succeed, Try and Try Again! - Michael Brennan
 
Computational Thinking Presentation - James Massey
Computational Thinking Presentation - James MasseyComputational Thinking Presentation - James Massey
Computational Thinking Presentation - James Massey
 

Recently uploaded

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 

Compute the Blues- Siobhan Ramsey