SuperCollider Forum
May 19, 2013, 05:32:32 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: The SuperCollider forum is currently experiencing a rash of spambot registrations. New user requests may not be approved quickly as a result -- and if your email address looks like spam, it might not be approved at all. We are working to improve the security of the registration process, and to provide alternate means to contact the administrators to get a new account. Thanks for your patience.
 
   Home   Help Search Calendar Login Register  
Pages: [1]
  Print  
Author Topic: Localhost - play, internal - scope?  (Read 3499 times)
0 Members and 1 Guest are viewing this topic.
tedor2
Newbie
*

Karma: 0
Posts: 42


View Profile
« on: May 05, 2008, 04:20:35 AM »

Dear Reader,

Could someone explain me, why .play works on the localhost, and .scope on the internal?

All the best,

Krisztian
Logged
dewdrop_world
AdminGroup
Full Member
*

Karma: 9
Posts: 193



View Profile WWW
« Reply #1 on: May 05, 2008, 06:29:52 AM »

Scope requires the internal server because the graphic objects (which run in the language client) have to read memory from the server. That means the server and client have to run in the same process, which is how the internal server works.

Playing a function is not actually tied to the local server. If you don't specify a target, it goes to whatever is the default server at the time. So you could run the following, and {  }.play would then use the internal server.

Server.default = s = Server.internal;

You could also make that a persistent setting by putting this line into your startup file -- there's a help document called "using the startup file" that explains how to set this up.

hjh
Logged

tedor2
Newbie
*

Karma: 0
Posts: 42


View Profile
« Reply #2 on: May 06, 2008, 04:34:44 PM »

ok, that helps to vanish some clouds:)
thank you!
tEd
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!