PsyCollider configuration

View: New views
8 Messages — Rating Filter:   Alert me  

PsyCollider configuration

by MDK-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Im just getting to grips with SC / Psycollider and im confused as to how to
configure it to run the way i want.

What I would like is to configure it so that the scsynth automatically runs with
both UDP and TCP ports open.

where would i configure this?

I can run scscynth from the command line and get TCP working (for communicating
via flash) but how do i make it so that running PsyCollider will allow me to
communicate with the same server via sclang and via TCP from flash?

thanks for any help you can provide.

martin
_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users

Re: PsyCollider configuration

by Christopher Frauenberger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Have a look at the startup file and check Server.options - everything  
can be configured there and then simply s.boot...

Its not possible for the server to listen to both, UDP and TCP, but  
sclang can use TCP too and hence, both sclang and Flash could use the  
same port.

Chris

On 16 May 2008, at 10:25, MDK wrote:

> Im just getting to grips with SC / Psycollider and im confused as  
> to how to
> configure it to run the way i want.
>
> What I would like is to configure it so that the scsynth  
> automatically runs with
> both UDP and TCP ports open.
>
> where would i configure this?
>
> I can run scscynth from the command line and get TCP working (for  
> communicating
> via flash) but how do i make it so that running PsyCollider will  
> allow me to
> communicate with the same server via sclang and via TCP from flash?
>
> thanks for any help you can provide.
>
> martin
> _______________________________________________
> sc-users mailing list
> sc-users@...
> http://lists.create.ucsb.edu/mailman/listinfo/sc-users

_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users

Re: PsyCollider configuration

by MDK-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Christopher Frauenberger wrote:
> Have a look at the startup file and check Server.options - everything  
> can be configured there and then simply s.boot...

ok, i was just looking through those.

so, i just tried (in startup.sc)

s.options.protocol = \tcp;

and the server wont boot, so i then commented out the SwingOSC stuff and still
the server wont boot, the post window says :

Exception in World_OpenTCP: unable to bind tcp socket

Now i cant see a way within the Server.options to choose a port. The docs say
that 'There are also a few commandline options which are not currently
encapsulated in ServerOptions'

and from looking at extServerOptions.sc there is nothing to handle setting a port.

so, taking a slightly different approach, can i treat PsyCollider as just sclang
and connect it to an already running scsynth server?

running scsynth from the commandline with the options i wont works fine and in
fact this would be my preference because then if i just want to run flash and sc
i dont need to start PsyCollider / sclang, BUT, if i then wanted to do some
coding on this running scsynth can i connect PsyCollider to it?

> Its not possible for the server to listen to both, UDP and TCP, but  
> sclang can use TCP too and hence, both sclang and Flash could use the  
> same port.

ok, is there any particular reason why they cant use both?

thanks for you help, its really appreciated..im slowly getting my head around
how all these parts work together, but its quite a struggle at first.

_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users

Re: PsyCollider configuration

by MDK-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> so, taking a slightly different approach, can i treat PsyCollider as just sclang
> and connect it to an already running scsynth server?

ok, im getting somewhere.

Im running scsynth from the command line like this :

scsynth.exe -t 57120 -u 57121 -b 1026 -H "ASIO : MOTU Audio ASIO"

i've commented out everything in startup.sc and after starting PsyCollider i do
this :

s = Server(\myServer, NetAddr("127.0.0.1", 57121));

then i can do code stuff there without problems..and in flash i can connect via
port 57120, and its all working nicely.

thanks for your help, this is going to be fun, although unfortunately now i've
got to do some real work :(

martin.
_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users

Re: PsyCollider configuration

by Christopher Frauenberger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 16 May 2008, at 12:09, MDK wrote:

> Christopher Frauenberger wrote:
>> Have a look at the startup file and check Server.options - everything
>> can be configured there and then simply s.boot...
>
> ok, i was just looking through those.
>
> so, i just tried (in startup.sc)
>
> s.options.protocol = \tcp;
>
> and the server wont boot, so i then commented out the SwingOSC  
> stuff and still
> the server wont boot, the post window says :
>
> Exception in World_OpenTCP: unable to bind tcp socket
>
You have another scsynth process running blocking this port. Open the  
TaskManager, kill every scsynth.exe you see and try again.

> Now i cant see a way within the Server.options to choose a port.  
> The docs say
> that 'There are also a few commandline options which are not currently
> encapsulated in ServerOptions'
>
> and from looking at extServerOptions.sc there is nothing to handle  
> setting a port.
>
hm, need to have a look at this, should be possible...


> so, taking a slightly different approach, can i treat PsyCollider  
> as just sclang
> and connect it to an already running scsynth server?
>
yes you could as long, but be careful about the language  
representation of the server being not in sync with the external  
process...

Chris
_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users

Re: PsyCollider configuration

by James Harkins-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On May 16, 2008, at 7:09 AM, MDK wrote:

Now i cant see a way within the Server.options to choose a port. The docs say 
that 'There are also a few commandline options which are not currently 
encapsulated in ServerOptions'

and from looking at extServerOptions.sc there is nothing to handle setting a port.

As you might have discovered (since you got it working) - the port is set in the NetAddr object used when creating the Server - Server(name, NetAddr("machine-name-or-ip", port)) - it's not part of ServerOptions.

hjh


: H. James Harkins

: jamshark70@...

: http://www.dewdrop-world.net

.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:


"Come said the Muse,

Sing me a song no poet has yet chanted,

Sing me the universal."  -- Whitman



_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users

Re: PsyCollider configuration

by MDK-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

James Harkins wrote:

> On May 16, 2008, at 7:09 AM, MDK wrote:
>
>> Now i cant see a way within the Server.options to choose a port. The
>> docs say
>> that 'There are also a few commandline options which are not currently
>> encapsulated in ServerOptions'
>>
>> and from looking at extServerOptions.sc there is nothing to handle
>> setting a port.
>
> As you might have discovered (since you got it working) - the port is
> set in the NetAddr object used when creating the Server - Server(name,
> NetAddr("machine-name-or-ip", port)) - it's not part of ServerOptions.

thanks, yeah, i was getting confused about what config goes in server options
and how the server was started by PsyCollider.

once I understand i'll happily write some documentation to make it all clear.

I've checked out the source code and I can see that PsyCollider.py has the
address 127.1.0.1 : 57110 coded into it so im wondering, why 127.1.0.1 (and not
127.0.0.1), and what would be the recommended way of getting that be read from a
config file?

Im not a great python programmer but I know my way around and im willing to help
  (as much as time allows)

thanks,

martin
_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users

Re: PsyCollider configuration

by altern :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> so, taking a slightly different approach, can i treat PsyCollider as just sclang
> and connect it to an already running scsynth server?

i am not sure i understand what you are after, but you can just use
scsynth on its own to receive OSC messages from Flash. No need to use
sclang, in fact sclang and scsynth talk to each other via OSC.

enrike
_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users