$30 off During Our Annual Pro Sale. View Details »

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. Ruby &
    Sonic PI

    View Slide

  2. daniel reedy
    Career Freelance

    View Slide

  3. Audible

    Computing

    View Slide

  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.

    View Slide

  5. sonic-pi.net

    View Slide

  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

    View Slide

  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.

    View Slide

  8. What can
    you learn?

    View Slide

  9. Computer science
    concepts
    • Sequencing
    • Debugging
    • Iteration
    • Conditions
    • Data Structures
    • Algorithms
    • Functions

    View Slide

  10. Getting
    started

    View Slide

  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

    View Slide

  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

    View Slide

  13. Scales
    • :major
    • :minor
    • :diatonic
    • :harmonic_major
    • :dorian
    • …and a lot more!

    View Slide

  14. Chords
    • :major
    • :minor
    • :minor7
    • :diminished7
    • :augmented
    • …and more!

    View Slide

  15. ADSR

    View Slide

  16. Let us
    Make Music

    View Slide

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

    View Slide