Ruby for Artists and Tinkerers. A non-presentation.
Upcoming SlideShare
Loading in...5
×
 

Ruby for Artists and Tinkerers. A non-presentation.

on

  • 1,973 views

A small hacked together non-presentation on my applications of the ruby programming language to problems in arts and tinkering.

A small hacked together non-presentation on my applications of the ruby programming language to problems in arts and tinkering.

Statistics

Views

Total Views
1,973
Views on SlideShare
1,876
Embed Views
97

Actions

Likes
1
Downloads
5
Comments
0

3 Embeds 97

http://coderwall.com 64
http://lanyrd.com 32
http://paper.li 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Ruby for Artists and Tinkerers. A non-presentation. Ruby for Artists and Tinkerers. A non-presentation. Presentation Transcript

  • Ruby for artists and tinkerers. Jan Krutisch in a hurry for the eurucamp2011Samstag, 28. Mai 2011
  • Ceci nest pas un PresentationSamstag, 28. Mai 2011
  • FrameworkSamstag, 28. Mai 2011
  • Interfacing stuffSamstag, 28. Mai 2011
  • Serial PortSamstag, 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 endSamstag, 28. Mai 2011
  • MIDISamstag, 28. Mai 2011
  • Hardware & SoftwareSamstag, 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 endSamstag, 28. Mai 2011
  • http://www.youtube.com/watch?v=w1jE7_1xSSUSamstag, 28. Mai 2011
  • ControllersSamstag, 28. Mai 2011
  • Buttons! Blinkenlights! Interaction! Stimmung!Samstag, 28. Mai 2011
  • Monome/ LaunchpadSamstag, 28. Mai 2011
  • http://rubygems.org/gems/portmidi http://rubygems.org/gems/launchpadSamstag, 28. Mai 2011
  • OSCSamstag, 28. Mai 2011
  • gem install roscSamstag, 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" endSamstag, 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) endSamstag, 28. Mai 2011
  • reactivisionSamstag, 28. Mai 2011
  • video processingSamstag, 28. Mai 2011
  • http://www.youtube.com/watch?v=ZynPbWB0gN4Samstag, 28. Mai 2011
  • http://twitter.com/halfbyte http://github.com/halfbyte http://mindmatters.deSamstag, 28. Mai 2011