Ruby & Sonic Pi

0478b7898ea85bd552d951ff167fd247?s=47 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.

0478b7898ea85bd552d951ff167fd247?s=128

Dan Reedy

November 11, 2014
Tweet

Transcript

  1. Ruby & Sonic PI

  2. daniel reedy Career Freelance

  3. Audible
 Computing

  4. 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.
  5. sonic-pi.net

  6. Sonic PI • Open-Source • RaspberryPi, OS X, or Windows

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

    you choose. & Focus should be on immediate feedback with the lowest barrier of entry.
  8. What can you learn?

  9. Computer science concepts • Sequencing • Debugging • Iteration •

    Conditions • Data Structures • Algorithms • Functions
  10. Getting started

  11. 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
  12. 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
  13. Scales • :major • :minor • :diatonic • :harmonic_major •

    :dorian • …and a lot more!
  14. Chords • :major • :minor • :minor7 • :diminished7 •

    :augmented • …and more!
  15. ADSR

  16. Let us Make Music

  17. @ dan reedy.in http:/ /speakerdeck.com/reedy