SlideShare ist ein Scribd-Unternehmen logo
Ruby for artists and
               tinkerers.

               Jan Krutisch in a hurry for the eurucamp2011




Samstag, 28. Mai 2011
Ceci n'est pas un
               Presentation



Samstag, 28. Mai 2011
Framework




Samstag, 28. Mai 2011
Interfacing stuff




Samstag, 28. Mai 2011
Serial Port




Samstag, 28. Mai 2011
require 'rubygems'
               require 'serialport'

               SerialPort.open("/dev/tty.usbserial-A900adgW", 57600) do |serial|
                 loop do
                   line = serial.readline
                   if res = line.match(/^OK 98 (d)/)
                     if res[1].to_i == 1
                       # trigger
               ! ! else
                       # stop
                     end
                   end
                 end
               end




Samstag, 28. Mai 2011
MIDI




Samstag, 28. Mai 2011
Hardware & Software




Samstag, 28. Mai 2011
Samstag, 28. Mai 2011
require 'rubygems'
               require 'serialport'
               require 'portmidi'
               Portmidi.start
               Portmidi.output_devices.each do |dev|
                 puts "%d > %s" % [dev.device_id, dev.name]
               end
               output = Portmidi::Output.new(7)

               SerialPort.open("/dev/tty.usbserial-A900adgW", 57600) do |serial|
                 loop do
                   line = serial.readline
                   if res = line.match(/^OK 98 (d)/)
                     if res[1].to_i == 1
                       output.write_short(0x90, 0x24, 0x7F)
                     else
                       output.write_short(0x90, 0x24, 0x00)
                     end
                   end
                 end
               end




Samstag, 28. Mai 2011
http://www.youtube.com/watch?v=w1jE7_1xSSU




Samstag, 28. Mai 2011
Controllers




Samstag, 28. Mai 2011
Buttons! Blinkenlights!
               Interaction! Stimmung!



Samstag, 28. Mai 2011
Monome/ Launchpad




Samstag, 28. Mai 2011
http://rubygems.org/gems/portmidi
               http://rubygems.org/gems/launchpad




Samstag, 28. Mai 2011
OSC




Samstag, 28. Mai 2011
gem install rosc




Samstag, 28. Mai 2011
server = OSC::UDPServer.new
               server.bind("0.0.0.0", 8000)
               File.open("dings.csv", "w") do |file|

                        server.add_method "/accxyz", "fff"   do |msg|
                      file.puts msg.args.join(";")
                    end
                    puts "server starts now"
                    server.serve
                 puts "server interrupted"
               end




Samstag, 28. Mai 2011
c = OSC::UDPSocket.new

               full_set.each do |row|
                 msg = OSC::Message.new("/accxyz/#{m + 2}", 'fff', *row)
                 c.send(msg, 0, 'localhost', 9000)
                 sleep(1.0 / f.to_f)
               end




Samstag, 28. Mai 2011
reactivision




Samstag, 28. Mai 2011
video processing




Samstag, 28. Mai 2011
http://www.youtube.com/watch?v=ZynPbWB0gN4




Samstag, 28. Mai 2011
http://twitter.com/halfbyte

               http://github.com/halfbyte


               http://mindmatters.de



Samstag, 28. Mai 2011

Weitere ähnliche Inhalte

PDF
Prsentation 8 step sequenzer 2
PDF
Mongodb on Ruby And Rails (froscon 2010)
PDF
Railsrumble railscamphh 2010
PDF
Mongodb railscamphh
PDF
Rails i18n - Railskonferenz 2007
PDF
realtime audio on ze web @ hhjs
PDF
MongoDB on Rails (and Ruby)
PDF
10 fun projects to improve your coding skills
Prsentation 8 step sequenzer 2
Mongodb on Ruby And Rails (froscon 2010)
Railsrumble railscamphh 2010
Mongodb railscamphh
Rails i18n - Railskonferenz 2007
realtime audio on ze web @ hhjs
MongoDB on Rails (and Ruby)
10 fun projects to improve your coding skills

Mehr von jan_mindmatters (8)

PDF
MongoDB & Mongomapper 4 real
PDF
Open Source Hardware - Of makers and tinkerers
PDF
Liebe Dein Frontend wie Dich selbst! HAML & SASS & COMPASS & less
PDF
Facebook mit Rails und Facebooker
PDF
Show the frontend some love - HAML, SASS and COMPASS
PDF
HAML / SASS and COMPASS
PDF
Merb. Rails in anders.
PDF
Lehmanns Rails Erweitern
MongoDB & Mongomapper 4 real
Open Source Hardware - Of makers and tinkerers
Liebe Dein Frontend wie Dich selbst! HAML & SASS & COMPASS & less
Facebook mit Rails und Facebooker
Show the frontend some love - HAML, SASS and COMPASS
HAML / SASS and COMPASS
Merb. Rails in anders.
Lehmanns Rails Erweitern
Anzeige

Ruby for Artists and Tinkerers. A non-presentation.