[plt-scheme] (clarification) Looking for Psychology lab applications

From: Rohan Drape (rd at slavepianos.org)
Date: Mon Jan 8 06:21:56 EST 2007

Noel Welsh <noelwelsh at yahoo.com> writes:

> Has anyone got this working?  I've played around with SC in the
> past, so I got rsc but couldn't get it to work.  Here's what I did:
...
> > (define server (open-udp* "localhost" 57110))
> > (play server (SinOsc ar 440 0))
> . . module/udp.ss::566: udp-receive!-evt: udp socket is not bound: #<udp-socket>
>  
> Any ideas?

The socket is not bound until you send a message on it, I'm not sure
how to avoid that without making up random ports, which may be in use?

Try sending a harmless message first, ie:

  (->< server /status)

Actually, you will normally need to make a group node with ID 1 before
play will work, the simplest way to do that is:

  (reset server)

which deletes any running nodes and then makes a clean default group
node.

Also, that'll be a loud sine tone, it depends how you run your
speakers but I'd advise trying:

  (play server (Mul (SinOsc ar 440 0) 0.1))

Regards,
Rohan



Posted on the users mailing list.