Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Ruby & Sonic Pi

Dan Reedy
November 11, 2014

Ruby & Sonic Pi

Sonic Pi is an audible computing platform that allows you to compose music in real time using a Ruby DSL.

Dan Reedy

November 11, 2014
Tweet

More Decks by Dan Reedy

Other Decks in Technology

Transcript

  1. write code Make Music Using SonicPi you can write anything

    from canons to dubstep using Ruby. & Using principles of computer science you can experiment in real-time.
  2. Sonic PI • Open-Source • RaspberryPi, OS X, or Windows

    • Developed by Computer Laboratory @ University of Cambridge • Written with Ruby • Active Community • Focused on Education
  3. Education What you do is more important that the language

    you choose. & Focus should be on immediate feedback with the lowest barrier of entry.
  4. Computer science concepts • Sequencing • Debugging • Iteration •

    Conditions • Data Structures • Algorithms • Functions
  5. MIDI Notes Note Octave 2 3 4 5 6 C

    36 48 60 72 84 C# 37 49 61 73 85 D 38 50 62 74 86 D# 39 51 63 75 87 E 40 52 64 76 88 F 41 53 65 77 89 F# 42 54 66 78 90 G 43 55 67 79 91 G# 44 56 68 80 92 A 45 57 69 81 93 A# 46 58 70 82 94 B 47 59 71 83 95
  6. MIDI Notes Note Octave 3 4 5 C :C3 :C

    :C5 C#/D̆ :Cs3 / :Db3 :Cs / :Db :Cs5 / :Db5 D :D3 :D :D5 D#/Ĕ :Ds3 / :Eb3 :Ds / :Eb :Ds5 / :Eb5 E :E3 :E :E5 F :F3 :F :F5 F#/Ğ :Fs3 / :Gb3 :Fs / :Gb :Fs5 / :Gb5 G :G3 :G :G5 G#/Ă :Gs3 / :Ab3 :Gs / :Ab :Gs5 / :Ab5 A :A3 :A :A5 A#/B̆ :As3 / :Bb3 :As / :Bb :As5 / :Bb5 B :B3 :B :B5