Last active
December 10, 2018 18:46
-
-
Save r618/550fa1f88fc8a91a99af to your computer and use it in GitHub Desktop.
#SonicPi #OSC #Reaktion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# adopted from https://github.com/repl-electric/live-coding-space | |
require 'osc-ruby' | |
def reaktion(endpoint, *args) | |
args = [endpoint] + args | |
endpoint = :reaktion | |
endpoint = "/#{endpoint}" | |
@client ||= OSC::Client.new('localhost', 9000) | |
begin | |
args = args.map{|a| a.is_a?(Symbol) ? a.to_s : a} | |
puts [endpoint] + args | |
@client.send(OSC::Message.new(endpoint, *args)) | |
rescue Exception | |
puts "$!> Graphics not loaded" | |
end | |
end | |
#VJ05 OSC endpoints: | |
#Analog Glitch Kicker 1 | |
#Analog Glitch Kicker 2 | |
#Analog Glitch Kicker 3 | |
#Analog Glitch Kicker 4 | |
#Analog Glitch Noise | |
#Asteroids | |
#Back Wall | |
#Binary | |
#Bloom | |
#Camera Pitch | |
#Camera Root | |
#Camera Shaker | |
#Camera Slide | |
#Contour | |
#Cracker | |
#Digital Glitch | |
#Dust | |
#Environment | |
#Furball | |
#Furball Frequency | |
#Furball Loudness | |
#Furball Speed | |
#Ground Wall | |
#Ground Wall Move | |
#Ground Wall Rot | |
#Heart | |
#Hyperspace | |
#Main Camera | |
#Shards | |
#Shell | |
#Shell Alpha | |
#Shell Beta | |
#Shell Cutoff | |
#Shell Loudness | |
#Speed Controller | |
#Spray | |
#Squamata | |
#Stones | |
#Stream | |
#Terrain | |
#Terrain Color | |
#Terrain Cutoff | |
#Timescale | |
#Tunnel | |
#Tunnel Color |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment