Csound Csound-dev Csound-tekno Search About

[Csnd] --realtime flag

Date2018-03-02 16:22
FromRene
Subject[Csnd] --realtime flag
Attachmentsreinit.csd  
Hello,

Instruments using reinit opcode and --realtime flag seems to have a faulty behavior.
The reinit is done for the complete instrument regardless of the reinit label and rireturn locations.

(The included reinit.csd instrument prints Hello at every reinit)

I am on linux, csound 6.10.0

Is it normal?

Best,
René
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2018-03-02 17:07
FromVictor Lazzarini
SubjectRe: [Csnd] --realtime flag
It could be a bug.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 2 Mar 2018, at 16:23, Rene <rene.djack1@GMAIL.COM> wrote:

Hello,

Instruments using reinit opcode and --realtime flag seems to have a faulty behavior.
The reinit is done for the complete instrument regardless of the reinit label and rireturn locations.

(The included reinit.csd instrument prints Hello at every reinit)

I am on linux, csound 6.10.0

Is it normal?

Best,
René
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
<reinit.csd>

Date2018-03-02 17:48
FromVictor Lazzarini
SubjectRe: [Csnd] --realtime flag
Actually, can you try the latest (6.11)? This version has a completely overhauled realtime mode, and I remembered testing reinit and it worked.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 2 Mar 2018, at 17:07, Victor Lazzarini <Victor.Lazzarini@MU.IE> wrote:

It could be a bug.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 2 Mar 2018, at 16:23, Rene <rene.djack1@GMAIL.COM> wrote:

Hello,

Instruments using reinit opcode and --realtime flag seems to have a faulty behavior.
The reinit is done for the complete instrument regardless of the reinit label and rireturn locations.

(The included reinit.csd instrument prints Hello at every reinit)

I am on linux, csound 6.10.0

Is it normal?

Best,
René
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
<reinit.csd>
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2018-03-02 19:26
FromRene
SubjectRe: [Csnd] --realtime flag
Hello,

Tanks for your answer.
 
I have tested from git (today download)

csound-master : give same bug as 6.10.0

csound-develop and csound-feature-realtime : (may be wrong version, i can't find 6.11)
For both i can't test because i got a continuous message

WARNING: instr 0 uses 3 p-fields but is given 0

then csound hang.


Best,
René








2018-03-02 18:48 GMT+01:00 Victor Lazzarini <Victor.Lazzarini@mu.ie>:
Actually, can you try the latest (6.11)? This version has a completely overhauled realtime mode, and I remembered testing reinit and it worked.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 2 Mar 2018, at 17:07, Victor Lazzarini <Victor.Lazzarini@MU.IE> wrote:

It could be a bug.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 2 Mar 2018, at 16:23, Rene <rene.djack1@GMAIL.COM> wrote:

Hello,

Instruments using reinit opcode and --realtime flag seems to have a faulty behavior.
The reinit is done for the complete instrument regardless of the reinit label and rireturn locations.

(The included reinit.csd instrument prints Hello at every reinit)

I am on linux, csound 6.10.0

Is it normal?

Best,
René
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
<reinit.csd>
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2018-03-02 20:03
FromVictor Lazzarini
SubjectRe: [Csnd] --realtime flag
The master branch is 6.10, old code. The develop branch is 6.11, e.g.

Csound version 6.11 beta (double samples) Mar  1 2018 

Feature-realtime has been merged into develop, so that would have similar
code.

I tested your code and I am getting the WARNING, which I think it is a
bug in the latest checked in code. That problem is there with or without
—reatlime

Once that is fixed, you can test it again.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 2 Mar 2018, at 19:26, Rene  wrote:
> 
> Hello,
> 
> Tanks for your answer.
>  
> I have tested from git (today download)
> 
> csound-master : give same bug as 6.10.0
> 
> csound-develop and csound-feature-realtime : (may be wrong version, i can't find 6.11)
> For both i can't test because i got a continuous message
> 
> WARNING: instr 0 uses 3 p-fields but is given 0
> 
> then csound hang.
> 
> 
> Best,
> René
> 
> 
> 
> 
> 
> 
> 
> 
> 2018-03-02 18:48 GMT+01:00 Victor Lazzarini :
> Actually, can you try the latest (6.11)? This version has a completely overhauled realtime mode, and I remembered testing reinit and it worked.
> 
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
> 
> On 2 Mar 2018, at 17:07, Victor Lazzarini  wrote:
> 
>> It could be a bug.
>> 
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>> 
>> On 2 Mar 2018, at 16:23, Rene  wrote:
>> 
>>> Hello,
>>> 
>>> Instruments using reinit opcode and --realtime flag seems to have a faulty behavior.
>>> The reinit is done for the complete instrument regardless of the reinit label and rireturn locations.
>>> 
>>> (The included reinit.csd instrument prints Hello at every reinit)
>>> 
>>> I am on linux, csound 6.10.0
>>> 
>>> Is it normal?
>>> 
>>> Best,
>>> René
>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>> 
>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
> 
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-03-02 20:09
FromVictor Lazzarini
SubjectRe: [Csnd] --realtime flag
actually, it’s a problem with realtime. I’ll fix it. I think it is to do with
timout, not reinit.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 2 Mar 2018, at 19:26, Rene  wrote:
> 
> Hello,
> 
> Tanks for your answer.
>  
> I have tested from git (today download)
> 
> csound-master : give same bug as 6.10.0
> 
> csound-develop and csound-feature-realtime : (may be wrong version, i can't find 6.11)
> For both i can't test because i got a continuous message
> 
> WARNING: instr 0 uses 3 p-fields but is given 0
> 
> then csound hang.
> 
> 
> Best,
> René
> 
> 
> 
> 
> 
> 
> 
> 
> 2018-03-02 18:48 GMT+01:00 Victor Lazzarini :
> Actually, can you try the latest (6.11)? This version has a completely overhauled realtime mode, and I remembered testing reinit and it worked.
> 
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
> 
> On 2 Mar 2018, at 17:07, Victor Lazzarini  wrote:
> 
>> It could be a bug.
>> 
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>> 
>> On 2 Mar 2018, at 16:23, Rene  wrote:
>> 
>>> Hello,
>>> 
>>> Instruments using reinit opcode and --realtime flag seems to have a faulty behavior.
>>> The reinit is done for the complete instrument regardless of the reinit label and rireturn locations.
>>> 
>>> (The included reinit.csd instrument prints Hello at every reinit)
>>> 
>>> I am on linux, csound 6.10.0
>>> 
>>> Is it normal?
>>> 
>>> Best,
>>> René
>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>> 
>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
> 
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-03-02 21:29
FromVictor Lazzarini
SubjectRe: [Csnd] --realtime flag
I have fixed this now (in git develop), but there are a couple of caveats:

1) reinit should be avoided in --realtime mode: it stops performance to
run a reinit pass, and that is not a good idea. Even though it runs the
reinit on a separate thread, performance has to pause for reinitialisation.

2) opcodes like timeout would potentially have gaps in their time counting
due to the reinit pause.

In other words: although the instrument will work (with maybe some timout
time counting issues), it’s not a good realtime instrument.

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 2 Mar 2018, at 19:26, Rene  wrote:
> 
> Hello,
> 
> Tanks for your answer.
>  
> I have tested from git (today download)
> 
> csound-master : give same bug as 6.10.0
> 
> csound-develop and csound-feature-realtime : (may be wrong version, i can't find 6.11)
> For both i can't test because i got a continuous message
> 
> WARNING: instr 0 uses 3 p-fields but is given 0
> 
> then csound hang.
> 
> 
> Best,
> René
> 
> 
> 
> 
> 
> 
> 
> 
> 2018-03-02 18:48 GMT+01:00 Victor Lazzarini :
> Actually, can you try the latest (6.11)? This version has a completely overhauled realtime mode, and I remembered testing reinit and it worked.
> 
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
> 
> On 2 Mar 2018, at 17:07, Victor Lazzarini  wrote:
> 
>> It could be a bug.
>> 
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>> 
>> On 2 Mar 2018, at 16:23, Rene  wrote:
>> 
>>> Hello,
>>> 
>>> Instruments using reinit opcode and --realtime flag seems to have a faulty behavior.
>>> The reinit is done for the complete instrument regardless of the reinit label and rireturn locations.
>>> 
>>> (The included reinit.csd instrument prints Hello at every reinit)
>>> 
>>> I am on linux, csound 6.10.0
>>> 
>>> Is it normal?
>>> 
>>> Best,
>>> René
>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>> 
>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
> 
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-03-03 18:51
FromRene
SubjectRe: [Csnd] --realtime flag
Tested git develop, it is fine,

and thanks for the advise :)

Best,
René

2018-03-02 22:29 GMT+01:00 Victor Lazzarini <Victor.Lazzarini@mu.ie>:
I have fixed this now (in git develop), but there are a couple of caveats:

1) reinit should be avoided in --realtime mode: it stops performance to
run a reinit pass, and that is not a good idea. Even though it runs the
reinit on a separate thread, performance has to pause for reinitialisation.

2) opcodes like timeout would potentially have gaps in their time counting
due to the reinit pause.

In other words: although the instrument will work (with maybe some timout
time counting issues), it’s not a good realtime instrument.

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 2 Mar 2018, at 19:26, Rene <rene.djack1@GMAIL.COM> wrote:
>
> Hello,
>
> Tanks for your answer.
>
> I have tested from git (today download)
>
> csound-master : give same bug as 6.10.0
>
> csound-develop and csound-feature-realtime : (may be wrong version, i can't find 6.11)
> For both i can't test because i got a continuous message
>
> WARNING: instr 0 uses 3 p-fields but is given 0
>
> then csound hang.
>
>
> Best,
> René
>
>
>
>
>
>
>
>
> 2018-03-02 18:48 GMT+01:00 Victor Lazzarini <Victor.Lazzarini@mu.ie>:
> Actually, can you try the latest (6.11)? This version has a completely overhauled realtime mode, and I remembered testing reinit and it worked.
>
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
>
> On 2 Mar 2018, at 17:07, Victor Lazzarini <Victor.Lazzarini@MU.IE> wrote:
>
>> It could be a bug.
>>
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>>
>> On 2 Mar 2018, at 16:23, Rene <rene.djack1@GMAIL.COM> wrote:
>>
>>> Hello,
>>>
>>> Instruments using reinit opcode and --realtime flag seems to have a faulty behavior.
>>> The reinit is done for the complete instrument regardless of the reinit label and rireturn locations.
>>>
>>> (The included reinit.csd instrument prints Hello at every reinit)
>>>
>>> I am on linux, csound 6.10.0
>>>
>>> Is it normal?
>>>
>>> Best,
>>> René
>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>> <reinit.csd>
>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here