| Newsgroups |
gmane.comp.audio.supercollider.user |
| Message-ID |
<CAEBNZeBaLCd=pG+fC4gyEK55CJnFtXoUS5e07+dFqJOvUa6LWg@mail.gmail.com> |
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.
>>>
>>>
>>>
>>>
>>>