Advertisement
Advertisement

More Related Content

Recently uploaded(20)

Advertisement

Ruby for Artists and Tinkerers. A non-presentation.

  1. Ruby for artists and tinkerers. Jan Krutisch in a hurry for the eurucamp2011 Samstag, 28. Mai 2011
  2. Ceci n'est pas un Presentation Samstag, 28. Mai 2011
  3. Framework Samstag, 28. Mai 2011
  4. Interfacing stuff Samstag, 28. Mai 2011
  5. Serial Port Samstag, 28. Mai 2011
  6. 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
  7. MIDI Samstag, 28. Mai 2011
  8. Hardware & Software Samstag, 28. Mai 2011
  9. Samstag, 28. Mai 2011
  10. 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
  11. http://www.youtube.com/watch?v=w1jE7_1xSSU Samstag, 28. Mai 2011
  12. Controllers Samstag, 28. Mai 2011
  13. Buttons! Blinkenlights! Interaction! Stimmung! Samstag, 28. Mai 2011
  14. Monome/ Launchpad Samstag, 28. Mai 2011
  15. http://rubygems.org/gems/portmidi http://rubygems.org/gems/launchpad Samstag, 28. Mai 2011
  16. OSC Samstag, 28. Mai 2011
  17. gem install rosc Samstag, 28. Mai 2011
  18. 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
  19. 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
  20. reactivision Samstag, 28. Mai 2011
  21. video processing Samstag, 28. Mai 2011
  22. http://www.youtube.com/watch?v=ZynPbWB0gN4 Samstag, 28. Mai 2011
  23. http://twitter.com/halfbyte http://github.com/halfbyte http://mindmatters.de Samstag, 28. Mai 2011
Advertisement