| Newsgroups |
gmane.comp.audio.supercollider.user |
| Message-ID |
<CAL8OTwARM_P7vzPXYRW4cGZtWLTZMtZG1h1j2mUSReKNvwzoeA@mail.gmail.com> |
Hello Marcin,
Thanks again for all your help. Yes, stupid typo that time around. Executing
u = Server(\scau, NetAddr("127.0.0.1", 9989));
u.startAliveThread;
now seems to work! I can run a test synth in SC and hear it in Ableton Live!
The .remote method still doesn't work for some reason:
u = Server.remote(\scau, NetAddr("127.0.0.1", 9989));
still throws the ERROR: Message 'protocol' not understood.
error, but does that matter? I'm not as up on the workings of
server communication as I maybe should be.
Thanks again,
David
On Mon, Mar 29, 2021 at 5:25 PM <[email protected]> wrote:
> I've just noticed: you have a typo in your IP address! It should be
> NetAddr("127.0.0.*1*", 9989)
>
> The .remote method really should work, once the IP address and port are
> correct.
> You might also need to run:
> u.notify;
> and/or
> u.initTree;
> I'm not sure though, I don't have the AU server handy right now to test.
>
> Marcin
>
> On Mon, Mar 29, 2021 at 2:16 PM <[email protected]> wrote:
>
>> 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.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>