Re: Running SuperColliderAU

[email protected]
Newsgroups gmane.comp.audio.supercollider.user
Message-ID <CAL8OTwB3hyzb94vQwvz01keVLWHB=tnEkCb1Y1WwWiECQRF5Rg@mail.gmail.com>
Hello Marcin,

Running
u = Server(\scau, NetAddr("127.0.0.", 9989));
u.startAliveThread;
doesn't throw any errors, but it doesn't seem to be communicating with the
server, either.
Running u.ping(10); after executing code above throws the following error:
server not running

I'm using SC 3.11.2, built from source and running on Catalina. There
shouldn't be anything else defined as it's a fresh install.


On Mon, Mar 29, 2021 at 4:47 PM <[email protected]> wrote:

> Hello matyas47
>
>
>> Thanks for the suggestion. I tried executing u = Server.remote(\scau,
>> NetAddr("127.0.0.1", 9989));
>> and got the following error:
>> ERROR: Message 'protocol' not understood.
>>
> This should not throw an error. What version of SC are you running? Have
> you recompiled the library to make sure there's nothing else defined that
> interferes with your code?
>
>
>> I'm not really familiar with .startAlive thread, so I'm not sure if I was
>> doing this properly, but executing the following code
>>
>> u = Server(\scau, NetAddr("127.0.0.", 9989));
>> u.boot(startAliveThread = true);
>>
> It should rather be:
> u = Server(\scau, NetAddr("127.0.0.", 9989));
> u.startAliveThread;
>
> Server -remote does exactly that for you, if you look in the Server.sc
> class file.
>
> Cheers,
> Marcin
>
> On Mon, Mar 29, 2021 at 12:58 PM <[email protected]> wrote:
>
>> Hello Marcin,
>>
>> Thanks for the suggestion. I tried executing u = Server.remote(\scau,
>> NetAddr("127.0.0.1", 9989));
>> and got the following error:
>> ERROR: Message 'protocol' not understood.
>>
>> I'm not really familiar with .startAlive thread, so I'm not sure if I was
>> doing this properly, but executing the following code
>>
>> u = Server(\scau, NetAddr("127.0.0.", 9989));
>> u.boot(startAliveThread = true);
>>
>> throws this error:
>>
>> ERROR: Variable 'startAliveThread' not defined.
>>
>> Thanks again!
>>
>>
>> On Mon, Mar 29, 2021 at 12:47 PM <[email protected]> wrote:
>>
>>> I think .serverRunning is only a getter, which should reflect the state
>>> of the server.
>>>
>>> Instead, I think you need to call .startAliveThread on the server after
>>> creating it (u = Server(... )).
>>> Alternatively, there's a convenience method for this:
>>> u = Server.remote(\scau, NetAddr("127.0.0.1", 9989));
>>> Afterwards there's no need to call .startAliveThread
>>>
>>> Marcin
>>>
>>> On Mon, Mar 29, 2021 at 9:39 AM <[email protected]> wrote:
>>>
>>>> Hello all,
>>>>
>>>> I've now gotten SuperColliderAU built successfully, and I can load the
>>>> plugin in Ableton Live. But I'm running into some errors on the SC side
>>>> while trying to run it.
>>>>
>>>> As I understand it, the process is:
>>>> 1. Load scau as a plugin in the host.
>>>> 2. Startup scide and execute the code to communicate with the server in
>>>> the plugin.
>>>>
>>>> Is that correct? When I run u = Server(\scau, NetAddr("127.0.0.1",
>>>> 9989));
>>>> the post window in SC returns -> scau as expected.
>>>> Executing u.serverRunning = true; throws the following error message:
>>>> ERROR: Message 'serverRunning_' not understood.
>>>> If I just run u.serverRunning, it returns false.
>>>> I also tried executing u.boot, but that just returns the message below
>>>> continuously:
>>>> '/quit' message sent to server 'scau'.
>>>>
>>>> I did confirm that the plugin is listening on port 9989.
>>>>
>>>>
>>>>
>>>>
>>>>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.