Skip to content

Commit

Permalink
Changed all references to 'localhost' to 127.0.0.1 to fix bug #9
Browse files Browse the repository at this point in the history
  • Loading branch information
tombettany committed Nov 6, 2014
1 parent f7757b9 commit 33169ec
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/scripts/boot.rb
Expand Up @@ -46,5 +46,5 @@
`jack_connect SuperCollider:out_2 system:playback_2`

# ensure that the synthdefs have been loaded
client = OSC::Client.new('localhost', 4556)
client = OSC::Client.new('127.0.0.1', 4556)
client.send(OSC::Message.new("/d_loadDir", sp_synthdefs_path))
2 changes: 1 addition & 1 deletion app/scripts/reload-synthdefs.rb
Expand Up @@ -3,5 +3,5 @@
require 'osc-ruby'

load(File.absolute_path("#{File.dirname(__FILE__)}/util.rb"))
client = OSC::Client.new('localhost', 4556)
client = OSC::Client.new('127.0.0.1', 4556)
client.send(OSC::Message.new("/d_loadDir", sp_synthdefs_path))
2 changes: 1 addition & 1 deletion app/scripts/run-code.rb
Expand Up @@ -30,7 +30,7 @@ class Spider

def initialize
spider_log "Inintialising Spider"
self.client = OSC::Client.new('localhost', 4556)
self.client = OSC::Client.new('127.0.0.1', 4556)
self.current_synth = "pretty_bell"
self.current_synth_id = INITIAL_SYNTH_ID
self.bpm = 60
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/standalone.rb
Expand Up @@ -19,7 +19,7 @@
$current_note = 40
$system_vol = 1

$client = OSC::Client.new('localhost', 4556)
$client = OSC::Client.new('127.0.0.1', 4556)
$debug = false

def debug(msg)
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/stop-code.rb
Expand Up @@ -7,5 +7,5 @@

SYNTH_GROUP = 1

client = OSC::Client.new('localhost', 4556)
client = OSC::Client.new('127.0.0.1', 4556)
client.send(OSC::Message.new("g_freeAll", SYNTH_GROUP))
2 changes: 1 addition & 1 deletion app/scripts/stop-running-synths.rb
Expand Up @@ -3,5 +3,5 @@
require 'osc-ruby'

SYNTH_GROUP = 1
client = OSC::Client.new('localhost', 4556)
client = OSC::Client.new('127.0.0.1', 4556)
client.send(OSC::Message.new("/g_freeAll", SYNTH_GROUP))
Expand Up @@ -7,7 +7,7 @@
require 'osc-ruby/em_server'

@server = OSC::EMServer.new( 3333 )
@client = OSC::Client.new( 'localhost', 3333 )
@client = OSC::Client.new( '127.0.0.1', 3333 )

@server.add_method '/greeting' do | message |
puts "#{message.ip_address}:#{message.ip_port} -- #{message.address} -- #{message.to_a}"
Expand Down

0 comments on commit 33169ec

Please sign in to comment.