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

ruby lofi

yeaman
November 19, 2019

ruby lofi

A talk about a project I worked on. Also an encouragement for the audience to take on a programming project.

yeaman

November 19, 2019
Tweet

Other Decks in Technology

Transcript

  1. “do u have a problem I can solve?” “do u

    have an idea I can bring 2 life?”
  2. ??

  3. computer audio is just manipulating arrays of numbers that represent

    sound wave frequency and amplitude at a certain sample rate
  4. i = 0 while i < samples.count do percent_fade =

    i / samples.count.to_f samples[i] = samples[i] * percent_fade i += 1 end
  5. x, y = event.x, event.y b = Button.new label: “click

    me” if b.x < x && b.x + b.width > x && b.y < y && b.y + b.height > y puts “clicked button!” else puts “am lonely” end