Csound Csound-dev Csound-tekno Search About

[Csnd] Instr score durations

Date2022-10-15 17:09
FromMike McGonagle
Subject[Csnd] Instr score durations
I have a short example below. According to the manual, it says...


p3 -- Duration time in beats (usually positive). A negative value will initiate a held note (see also ihold). A negative value can also be used for 'always on' instruments like reverberation. These notes are not terminated by s statements A zero value will invoke an initialization pass without performance (see also instr).

<CsoundSynthesizer>
<CsOptions>
-n -d
</CsOptions>
<CsInstruments>
; Initialize the global variables.
ksmps = 32
nchnls = 2
0dbfs = 1

instr 99
    prints("starting %d\n", p4)
   
    if metro(1) == 1 then
        printks("tick (%d)\n", 0, p4)
    endif
endin

</CsInstruments>
<CsScore>
i 99 0 10 1
i 99 0 -1 2
i 99 0 z  3
i 99 0 0 4
</CsScore>
</CsoundSynthesizer>


So, why doesn't the number 2 instance execute at the k-rate? It used to. It does execute the i-rate.

Mike
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

Date2022-10-15 17:44
FromHlöðver Sigurðsson
SubjectRe: [Csnd] Instr score durations
when using functional syntax, it's often required to specify the rate, csound makes a guess otherwise,

try replacing

metro(1)

with

metro:k(1)

On Sat, 15 Oct 2022 at 18:11, Mike McGonagle <mjmogo@gmail.com> wrote:
I have a short example below. According to the manual, it says...


p3 -- Duration time in beats (usually positive). A negative value will initiate a held note (see also ihold). A negative value can also be used for 'always on' instruments like reverberation. These notes are not terminated by s statements A zero value will invoke an initialization pass without performance (see also instr).

<CsoundSynthesizer>
<CsOptions>
-n -d
</CsOptions>
<CsInstruments>
; Initialize the global variables.
ksmps = 32
nchnls = 2
0dbfs = 1

instr 99
    prints("starting %d\n", p4)
   
    if metro(1) == 1 then
        printks("tick (%d)\n", 0, p4)
    endif
endin

</CsInstruments>
<CsScore>
i 99 0 10 1
i 99 0 -1 2
i 99 0 z  3
i 99 0 0 4
</CsScore>
</CsoundSynthesizer>


So, why doesn't the number 2 instance execute at the k-rate? It used to. It does execute the i-rate.

Mike
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

Date2022-10-15 17:48
FromMike McGonagle
SubjectRe: [Csnd] Instr score durations
Nope. Still does not execute the instance started with -1.

Mike

On Sat, Oct 15, 2022 at 11:45 AM Hlöðver Sigurðsson <hlolli@gmail.com> wrote:
when using functional syntax, it's often required to specify the rate, csound makes a guess otherwise,

try replacing

metro(1)

with

metro:k(1)

On Sat, 15 Oct 2022 at 18:11, Mike McGonagle <mjmogo@gmail.com> wrote:
I have a short example below. According to the manual, it says...


p3 -- Duration time in beats (usually positive). A negative value will initiate a held note (see also ihold). A negative value can also be used for 'always on' instruments like reverberation. These notes are not terminated by s statements A zero value will invoke an initialization pass without performance (see also instr).

<CsoundSynthesizer>
<CsOptions>
-n -d
</CsOptions>
<CsInstruments>
; Initialize the global variables.
ksmps = 32
nchnls = 2
0dbfs = 1

instr 99
    prints("starting %d\n", p4)
   
    if metro(1) == 1 then
        printks("tick (%d)\n", 0, p4)
    endif
endin

</CsInstruments>
<CsScore>
i 99 0 10 1
i 99 0 -1 2
i 99 0 z  3
i 99 0 0 4
</CsScore>
</CsoundSynthesizer>


So, why doesn't the number 2 instance execute at the k-rate? It used to. It does execute the i-rate.

Mike
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

Date2022-10-15 18:53
FromVictor Lazzarini
SubjectRe: [Csnd] [EXTERNAL] [Csnd] Instr score durations
Try  

i 99 0 10 1
i 99.1 0 -1 2
i 99 0 z  3
i 99 0 0 4

and you will get your printouts. 

The reason is that you start a negative p3 and then immediately it gets replaced by the positive matching p1 following it and
so you only have 2 instances running. If instead you mark the negative p3 with a specific instance number, then it 
can only be replaced with a matching p1.

>From the same page in the manual

 "An instrument may be turned on and left to perform indefinitely either by giving it a negative p3 or by including an ihold in its i-time code. If a held note is active, an i statement with matching p1 will not cause a new allocation but will take over the data space of the held note." 


========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 15 Oct 2022, at 17:09, Mike McGonagle  wrote:
> 
> WARNINGThis email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
> I have a short example below. According to the manual, it says...
> 
> https://csound.com/docs/manual/i.html
> 
> p3 -- Duration time in beats (usually positive). A negative value will initiate a held note (see also ihold). A negative value can also be used for 'always on' instruments like reverberation. These notes are not terminated by s statements A zero value will invoke an initialization pass without performance (see also instr).
> 
> 
> 
> -n -d 
> 
> 
> ; Initialize the global variables. 
> ksmps = 32
> nchnls = 2
> 0dbfs = 1
> 
> instr 99
>     prints("starting %d\n", p4)
>     
>     if metro(1) == 1 then
>         printks("tick (%d)\n", 0, p4)
>     endif
> endin
> 
> 
> 
> i 99 0 10 1
> i 99 0 -1 2
> i 99 0 z  3
> i 99 0 0 4
> 
> 
> 
> 
> So, why doesn't the number 2 instance execute at the k-rate? It used to. It does execute the i-rate.
> 
> Mike
> 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

Date2022-10-15 19:55
FromMike McGonagle
SubjectRe: [Csnd] [EXTERNAL] [Csnd] Instr score durations
Thanks, Victor. I'll check it again tonight. This problems arose with using just a single instance of an instr. -1 wouldn't work at k-rate, and Rory suggested trying 'z', which worked.

Just trying to figure out while all of a sudden this is happening.

Mike

On Sat, Oct 15, 2022, 12:53 PM Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
Try 

i 99 0 10 1
i 99.1 0 -1 2
i 99 0 z  3
i 99 0 0 4

and you will get your printouts.

The reason is that you start a negative p3 and then immediately it gets replaced by the positive matching p1 following it and
so you only have 2 instances running. If instead you mark the negative p3 with a specific instance number, then it
can only be replaced with a matching p1.

>From the same page in the manual

 "An instrument may be turned on and left to perform indefinitely either by giving it a negative p3 or by including an ihold in its i-time code. If a held note is active, an i statement with matching p1 will not cause a new allocation but will take over the data space of the held note."


========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 15 Oct 2022, at 17:09, Mike McGonagle <mjmogo@GMAIL.COM> wrote:
>
> WARNINGThis email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
> I have a short example below. According to the manual, it says...
>
> https://csound.com/docs/manual/i.html
>
> p3 -- Duration time in beats (usually positive). A negative value will initiate a held note (see also ihold). A negative value can also be used for 'always on' instruments like reverberation. These notes are not terminated by s statements A zero value will invoke an initialization pass without performance (see also instr).
>
> <CsoundSynthesizer>
> <CsOptions>
> -n -d
> </CsOptions>
> <CsInstruments>
> ; Initialize the global variables.
> ksmps = 32
> nchnls = 2
> 0dbfs = 1
>
> instr 99
>     prints("starting %d\n", p4)
>     
>     if metro(1) == 1 then
>         printks("tick (%d)\n", 0, p4)
>     endif
> endin
>
> </CsInstruments>
> <CsScore>
> i 99 0 10 1
> i 99 0 -1 2
> i 99 0 z  3
> i 99 0 0 4
> </CsScore>
> </CsoundSynthesizer>
>
>
> So, why doesn't the number 2 instance execute at the k-rate? It used to. It does execute the i-rate.
>
> Mike
> 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

Date2022-10-15 20:40
FromVictor Lazzarini
SubjectRe: [Csnd] [EXTERNAL] [Csnd] Instr score durations
What you showed here is the normal behaviour of the software, it has always worked like that.

Depending on how you are running, setting a p3 to -1 may not keep Csound running indefinitely. You may need to use f 0 z or something similar.

Prof. Victor Lazzarini
Maynooth University
Ireland

On 15 Oct 2022, at 19:58, Mike McGonagle <mjmogo@gmail.com> wrote:


Thanks, Victor. I'll check it again tonight. This problems arose with using just a single instance of an instr. -1 wouldn't work at k-rate, and Rory suggested trying 'z', which worked.

Just trying to figure out while all of a sudden this is happening.

Mike

On Sat, Oct 15, 2022, 12:53 PM Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
Try 

i 99 0 10 1
i 99.1 0 -1 2
i 99 0 z  3
i 99 0 0 4

and you will get your printouts.

The reason is that you start a negative p3 and then immediately it gets replaced by the positive matching p1 following it and
so you only have 2 instances running. If instead you mark the negative p3 with a specific instance number, then it
can only be replaced with a matching p1.

From the same page in the manual

 "An instrument may be turned on and left to perform indefinitely either by giving it a negative p3 or by including an ihold in its i-time code. If a held note is active, an i statement with matching p1 will not cause a new allocation but will take over the data space of the held note."


========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 15 Oct 2022, at 17:09, Mike McGonagle <mjmogo@GMAIL.COM> wrote:
>
> WARNINGThis email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
> I have a short example below. According to the manual, it says...
>
> https://csound.com/docs/manual/i.html
>
> p3 -- Duration time in beats (usually positive). A negative value will initiate a held note (see also ihold). A negative value can also be used for 'always on' instruments like reverberation. These notes are not terminated by s statements A zero value will invoke an initialization pass without performance (see also instr).
>
> <CsoundSynthesizer>
> <CsOptions>
> -n -d
> </CsOptions>
> <CsInstruments>
> ; Initialize the global variables.
> ksmps = 32
> nchnls = 2
> 0dbfs = 1
>
> instr 99
>     prints("starting %d\n", p4)
>     
>     if metro(1) == 1 then
>         printks("tick (%d)\n", 0, p4)
>     endif
> endin
>
> </CsInstruments>
> <CsScore>
> i 99 0 10 1
> i 99 0 -1 2
> i 99 0 z  3
> i 99 0 0 4
> </CsScore>
> </CsoundSynthesizer>
>
>
> So, why doesn't the number 2 instance execute at the k-rate? It used to. It does execute the i-rate.
>
> Mike
> 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

Date2022-10-16 05:07
FromMike McGonagle
SubjectRe: [Csnd] [EXTERNAL] [Csnd] Instr score durations
Ok, was able to try these things again, and I effectively ran each line by themselves, and I didn't get any different results. 1, 3, & 4 worked, as expected. But 2 still only ran during the i-rate. When I changed the instr called to 99.1, 2 ran as it should have.

Maybe this isn't exactly as I have been using these things because I normally use named instr's. But I still swear that I have been able to use -1 to run these instr's... Anyway, I'll just start to use the 'z' option for the duration in a score.

Mike

On Sat, Oct 15, 2022 at 2:40 PM Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
What you showed here is the normal behaviour of the software, it has always worked like that.

Depending on how you are running, setting a p3 to -1 may not keep Csound running indefinitely. You may need to use f 0 z or something similar.

Prof. Victor Lazzarini
Maynooth University
Ireland

On 15 Oct 2022, at 19:58, Mike McGonagle <mjmogo@gmail.com> wrote:


Thanks, Victor. I'll check it again tonight. This problems arose with using just a single instance of an instr. -1 wouldn't work at k-rate, and Rory suggested trying 'z', which worked.

Just trying to figure out while all of a sudden this is happening.

Mike

On Sat, Oct 15, 2022, 12:53 PM Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
Try 

i 99 0 10 1
i 99.1 0 -1 2
i 99 0 z  3
i 99 0 0 4

and you will get your printouts.

The reason is that you start a negative p3 and then immediately it gets replaced by the positive matching p1 following it and
so you only have 2 instances running. If instead you mark the negative p3 with a specific instance number, then it
can only be replaced with a matching p1.

>From the same page in the manual

 "An instrument may be turned on and left to perform indefinitely either by giving it a negative p3 or by including an ihold in its i-time code. If a held note is active, an i statement with matching p1 will not cause a new allocation but will take over the data space of the held note."


========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 15 Oct 2022, at 17:09, Mike McGonagle <mjmogo@GMAIL.COM> wrote:
>
> WARNINGThis email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
> I have a short example below. According to the manual, it says...
>
> https://csound.com/docs/manual/i.html
>
> p3 -- Duration time in beats (usually positive). A negative value will initiate a held note (see also ihold). A negative value can also be used for 'always on' instruments like reverberation. These notes are not terminated by s statements A zero value will invoke an initialization pass without performance (see also instr).
>
> <CsoundSynthesizer>
> <CsOptions>
> -n -d
> </CsOptions>
> <CsInstruments>
> ; Initialize the global variables.
> ksmps = 32
> nchnls = 2
> 0dbfs = 1
>
> instr 99
>     prints("starting %d\n", p4)
>     
>     if metro(1) == 1 then
>         printks("tick (%d)\n", 0, p4)
>     endif
> endin
>
> </CsInstruments>
> <CsScore>
> i 99 0 10 1
> i 99 0 -1 2
> i 99 0 z  3
> i 99 0 0 4
> </CsScore>
> </CsoundSynthesizer>
>
>
> So, why doesn't the number 2 instance execute at the k-rate? It used to. It does execute the i-rate.
>
> Mike
> 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

Date2022-10-16 14:32
FromVictor Lazzarini
SubjectRe: [Csnd] [EXTERNAL] [Csnd] Instr score durations
You can still use p3 as -1 and it will run, there's nothing to say it wouldn't.

However if you have another i-statement (etc) with matching p1 (numbered or named), it will replace the instance instead of starting a new one.

Prof. Victor Lazzarini
Maynooth University
Ireland

On 16 Oct 2022, at 05:10, Mike McGonagle <mjmogo@gmail.com> wrote:


Ok, was able to try these things again, and I effectively ran each line by themselves, and I didn't get any different results. 1, 3, & 4 worked, as expected. But 2 still only ran during the i-rate. When I changed the instr called to 99.1, 2 ran as it should have.

Maybe this isn't exactly as I have been using these things because I normally use named instr's. But I still swear that I have been able to use -1 to run these instr's... Anyway, I'll just start to use the 'z' option for the duration in a score.

Mike

On Sat, Oct 15, 2022 at 2:40 PM Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
What you showed here is the normal behaviour of the software, it has always worked like that.

Depending on how you are running, setting a p3 to -1 may not keep Csound running indefinitely. You may need to use f 0 z or something similar.

Prof. Victor Lazzarini
Maynooth University
Ireland

On 15 Oct 2022, at 19:58, Mike McGonagle <mjmogo@gmail.com> wrote:


Thanks, Victor. I'll check it again tonight. This problems arose with using just a single instance of an instr. -1 wouldn't work at k-rate, and Rory suggested trying 'z', which worked.

Just trying to figure out while all of a sudden this is happening.

Mike

On Sat, Oct 15, 2022, 12:53 PM Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
Try 

i 99 0 10 1
i 99.1 0 -1 2
i 99 0 z  3
i 99 0 0 4

and you will get your printouts.

The reason is that you start a negative p3 and then immediately it gets replaced by the positive matching p1 following it and
so you only have 2 instances running. If instead you mark the negative p3 with a specific instance number, then it
can only be replaced with a matching p1.

From the same page in the manual

 "An instrument may be turned on and left to perform indefinitely either by giving it a negative p3 or by including an ihold in its i-time code. If a held note is active, an i statement with matching p1 will not cause a new allocation but will take over the data space of the held note."


========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 15 Oct 2022, at 17:09, Mike McGonagle <mjmogo@GMAIL.COM> wrote:
>
> WARNINGThis email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
> I have a short example below. According to the manual, it says...
>
> https://csound.com/docs/manual/i.html
>
> p3 -- Duration time in beats (usually positive). A negative value will initiate a held note (see also ihold). A negative value can also be used for 'always on' instruments like reverberation. These notes are not terminated by s statements A zero value will invoke an initialization pass without performance (see also instr).
>
> <CsoundSynthesizer>
> <CsOptions>
> -n -d
> </CsOptions>
> <CsInstruments>
> ; Initialize the global variables.
> ksmps = 32
> nchnls = 2
> 0dbfs = 1
>
> instr 99
>     prints("starting %d\n", p4)
>     
>     if metro(1) == 1 then
>         printks("tick (%d)\n", 0, p4)
>     endif
> endin
>
> </CsInstruments>
> <CsScore>
> i 99 0 10 1
> i 99 0 -1 2
> i 99 0 z  3
> i 99 0 0 4
> </CsScore>
> </CsoundSynthesizer>
>
>
> So, why doesn't the number 2 instance execute at the k-rate? It used to. It does execute the i-rate.
>
> Mike
> 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

Date2022-10-16 16:03
FromMike McGonagle
Subject[Csnd] Instr score durations
I'm not sure what to say, but using -1 does not work for me anymore, unless I use an instr number with a fractional part.

I'm suspecting that my copy of Csound is somehow corrupt. I just install Csound from the Cabbage bundle, so I was thinking about removing Csound altogether, and doing a fresh install.

Mike

On Sunday, October 16, 2022, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
You can still use p3 as -1 and it will run, there's nothing to say it wouldn't.

However if you have another i-statement (etc) with matching p1 (numbered or named), it will replace the instance instead of starting a new one.

Prof. Victor Lazzarini
Maynooth University
Ireland

On 16 Oct 2022, at 05:10, Mike McGonagle <mjmogo@gmail.com> wrote:


Ok, was able to try these things again, and I effectively ran each line by themselves, and I didn't get any different results. 1, 3, & 4 worked, as expected. But 2 still only ran during the i-rate. When I changed the instr called to 99.1, 2 ran as it should have.

Maybe this isn't exactly as I have been using these things because I normally use named instr's. But I still swear that I have been able to use -1 to run these instr's... Anyway, I'll just start to use the 'z' option for the duration in a score.

Mike

On Sat, Oct 15, 2022 at 2:40 PM Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
What you showed here is the normal behaviour of the software, it has always worked like that.

Depending on how you are running, setting a p3 to -1 may not keep Csound running indefinitely. You may need to use f 0 z or something similar.

Prof. Victor Lazzarini
Maynooth University
Ireland

On 15 Oct 2022, at 19:58, Mike McGonagle <mjmogo@gmail.com> wrote:


Thanks, Victor. I'll check it again tonight. This problems arose with using just a single instance of an instr. -1 wouldn't work at k-rate, and Rory suggested trying 'z', which worked.

Just trying to figure out while all of a sudden this is happening.

Mike

On Sat, Oct 15, 2022, 12:53 PM Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
Try 

i 99 0 10 1
i 99.1 0 -1 2
i 99 0 z  3
i 99 0 0 4

and you will get your printouts.

The reason is that you start a negative p3 and then immediately it gets replaced by the positive matching p1 following it and
so you only have 2 instances running. If instead you mark the negative p3 with a specific instance number, then it
can only be replaced with a matching p1.

>From the same page in the manual

 "An instrument may be turned on and left to perform indefinitely either by giving it a negative p3 or by including an ihold in its i-time code. If a held note is active, an i statement with matching p1 will not cause a new allocation but will take over the data space of the held note."


========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 15 Oct 2022, at 17:09, Mike McGonagle <mjmogo@GMAIL.COM> wrote:
>
> WARNINGThis email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
> I have a short example below. According to the manual, it says...
>
> https://csound.com/docs/manual/i.html
>
> p3 -- Duration time in beats (usually positive). A negative value will initiate a held note (see also ihold). A negative value can also be used for 'always on' instruments like reverberation. These notes are not terminated by s statements A zero value will invoke an initialization pass without performance (see also instr).
>
> <CsoundSynthesizer>
> <CsOptions>
> -n -d
> </CsOptions>
> <CsInstruments>
> ; Initialize the global variables.
> ksmps = 32
> nchnls = 2
> 0dbfs = 1
>
> instr 99
>     prints("starting %d\n", p4)
>     
>     if metro(1) == 1 then
>         printks("tick (%d)\n", 0, p4)
>     endif
> endin
>
> </CsInstruments>
> <CsScore>
> i 99 0 10 1
> i 99 0 -1 2
> i 99 0 z  3
> i 99 0 0 4
> </CsScore>
> </CsoundSynthesizer>
>
>
> So, why doesn't the number 2 instance execute at the k-rate? It used to. It does execute the i-rate.
>
> Mike
> 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
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

Date2022-10-16 16:08
From"Dr. Richard Boulanger"
SubjectRe: [Csnd] Instr score durations
Advice from Rory Walsh to my students and me was to:

Install a fresh Csound (it is the latest release), and not to install the Csound that is part of the Cabbage Bundle (which is not as current) as the 6.17 at csound.com

- Dr.B


Dr. Richard Boulanger

Professor

Electronic Production and Design

Berklee College of Music

Professional Writing & Technology Division



On Sun, Oct 16, 2022 at 11:04 AM Mike McGonagle <mjmogo@gmail.com> wrote:
I'm not sure what to say, but using -1 does not work for me anymore, unless I use an instr number with a fractional part.

I'm suspecting that my copy of Csound is somehow corrupt. I just install Csound from the Cabbage bundle, so I was thinking about removing Csound altogether, and doing a fresh install.

Mike

On Sunday, October 16, 2022, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
You can still use p3 as -1 and it will run, there's nothing to say it wouldn't.

However if you have another i-statement (etc) with matching p1 (numbered or named), it will replace the instance instead of starting a new one.

Prof. Victor Lazzarini
Maynooth University
Ireland

On 16 Oct 2022, at 05:10, Mike McGonagle <mjmogo@gmail.com> wrote:


Ok, was able to try these things again, and I effectively ran each line by themselves, and I didn't get any different results. 1, 3, & 4 worked, as expected. But 2 still only ran during the i-rate. When I changed the instr called to 99.1, 2 ran as it should have.

Maybe this isn't exactly as I have been using these things because I normally use named instr's. But I still swear that I have been able to use -1 to run these instr's... Anyway, I'll just start to use the 'z' option for the duration in a score.

Mike

On Sat, Oct 15, 2022 at 2:40 PM Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
What you showed here is the normal behaviour of the software, it has always worked like that.

Depending on how you are running, setting a p3 to -1 may not keep Csound running indefinitely. You may need to use f 0 z or something similar.

Prof. Victor Lazzarini
Maynooth University
Ireland

On 15 Oct 2022, at 19:58, Mike McGonagle <mjmogo@gmail.com> wrote:


Thanks, Victor. I'll check it again tonight. This problems arose with using just a single instance of an instr. -1 wouldn't work at k-rate, and Rory suggested trying 'z', which worked.

Just trying to figure out while all of a sudden this is happening.

Mike

On Sat, Oct 15, 2022, 12:53 PM Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
Try 

i 99 0 10 1
i 99.1 0 -1 2
i 99 0 z  3
i 99 0 0 4

and you will get your printouts.

The reason is that you start a negative p3 and then immediately it gets replaced by the positive matching p1 following it and
so you only have 2 instances running. If instead you mark the negative p3 with a specific instance number, then it
can only be replaced with a matching p1.

>From the same page in the manual

 "An instrument may be turned on and left to perform indefinitely either by giving it a negative p3 or by including an ihold in its i-time code. If a held note is active, an i statement with matching p1 will not cause a new allocation but will take over the data space of the held note."


========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 15 Oct 2022, at 17:09, Mike McGonagle <mjmogo@GMAIL.COM> wrote:
>
> WARNINGThis email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
> I have a short example below. According to the manual, it says...
>
> https://csound.com/docs/manual/i.html
>
> p3 -- Duration time in beats (usually positive). A negative value will initiate a held note (see also ihold). A negative value can also be used for 'always on' instruments like reverberation. These notes are not terminated by s statements A zero value will invoke an initialization pass without performance (see also instr).
>
> <CsoundSynthesizer>
> <CsOptions>
> -n -d
> </CsOptions>
> <CsInstruments>
> ; Initialize the global variables.
> ksmps = 32
> nchnls = 2
> 0dbfs = 1
>
> instr 99
>     prints("starting %d\n", p4)
>     
>     if metro(1) == 1 then
>         printks("tick (%d)\n", 0, p4)
>     endif
> endin
>
> </CsInstruments>
> <CsScore>
> i 99 0 10 1
> i 99 0 -1 2
> i 99 0 z  3
> i 99 0 0 4
> </CsScore>
> </CsoundSynthesizer>
>
>
> So, why doesn't the number 2 instance execute at the k-rate? It used to. It does execute the i-rate.
>
> Mike
> 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
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

Date2022-10-16 16:32
FromVictor Lazzarini
SubjectRe: [Csnd] [EXTERNAL] [Csnd] Instr score durations
No, that has nothing to do with it. There is no way any issue with Csound would appear as this.
========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 16 Oct 2022, at 16:08, Dr. Richard Boulanger  wrote:
> 
> WARNINGThis email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
> Advice from Rory Walsh to my students and me was to:
> 
> Install a fresh Csound (it is the latest release), and not to install the Csound that is part of the Cabbage Bundle (which is not as current) as the 6.17 at csound.com
> 
> - Dr.B
> 
> Dr. Richard Boulanger
> Professor
> Electronic Production and Design
> Berklee College of Music
> Professional Writing & Technology Division
> 
> 
> On Sun, Oct 16, 2022 at 11:04 AM Mike McGonagle  wrote:
> I'm not sure what to say, but using -1 does not work for me anymore, unless I use an instr number with a fractional part.
> 
> I'm suspecting that my copy of Csound is somehow corrupt. I just install Csound from the Cabbage bundle, so I was thinking about removing Csound altogether, and doing a fresh install.
> 
> Mike
> 
> On Sunday, October 16, 2022, Victor Lazzarini  wrote:
> You can still use p3 as -1 and it will run, there's nothing to say it wouldn't.
> 
> However if you have another i-statement (etc) with matching p1 (numbered or named), it will replace the instance instead of starting a new one.
> 
> Prof. Victor Lazzarini
> Maynooth University
> Ireland
> 
>> On 16 Oct 2022, at 05:10, Mike McGonagle  wrote:
>> 
>> 
>> Ok, was able to try these things again, and I effectively ran each line by themselves, and I didn't get any different results. 1, 3, & 4 worked, as expected. But 2 still only ran during the i-rate. When I changed the instr called to 99.1, 2 ran as it should have.
>> 
>> Maybe this isn't exactly as I have been using these things because I normally use named instr's. But I still swear that I have been able to use -1 to run these instr's... Anyway, I'll just start to use the 'z' option for the duration in a score.
>> 
>> Mike
>> 
>> On Sat, Oct 15, 2022 at 2:40 PM Victor Lazzarini  wrote:
>> What you showed here is the normal behaviour of the software, it has always worked like that.
>> 
>> Depending on how you are running, setting a p3 to -1 may not keep Csound running indefinitely. You may need to use f 0 z or something similar.
>> 
>> Prof. Victor Lazzarini
>> Maynooth University
>> Ireland
>> 
>>> On 15 Oct 2022, at 19:58, Mike McGonagle  wrote:
>>> 
>>> 
>>> Thanks, Victor. I'll check it again tonight. This problems arose with using just a single instance of an instr. -1 wouldn't work at k-rate, and Rory suggested trying 'z', which worked.
>>> 
>>> Just trying to figure out while all of a sudden this is happening.
>>> 
>>> Mike
>>> 
>>> On Sat, Oct 15, 2022, 12:53 PM Victor Lazzarini  wrote:
>>> Try  
>>> 
>>> i 99 0 10 1
>>> i 99.1 0 -1 2
>>> i 99 0 z  3
>>> i 99 0 0 4
>>> 
>>> and you will get your printouts. 
>>> 
>>> The reason is that you start a negative p3 and then immediately it gets replaced by the positive matching p1 following it and
>>> so you only have 2 instances running. If instead you mark the negative p3 with a specific instance number, then it 
>>> can only be replaced with a matching p1.
>>> 
>>> From the same page in the manual
>>> 
>>>  "An instrument may be turned on and left to perform indefinitely either by giving it a negative p3 or by including an ihold in its i-time code. If a held note is active, an i statement with matching p1 will not cause a new allocation but will take over the data space of the held note." 
>>> 
>>> 
>>> ========================
>>> Prof. Victor Lazzarini
>>> Maynooth University
>>> Ireland
>>> 
>>> > On 15 Oct 2022, at 17:09, Mike McGonagle  wrote:
>>> > 
>>> > WARNINGThis email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
>>> > I have a short example below. According to the manual, it says...
>>> > 
>>> > https://csound.com/docs/manual/i.html
>>> > 
>>> > p3 -- Duration time in beats (usually positive). A negative value will initiate a held note (see also ihold). A negative value can also be used for 'always on' instruments like reverberation. These notes are not terminated by s statements A zero value will invoke an initialization pass without performance (see also instr).
>>> > 
>>> > 
>>> > 
>>> > -n -d 
>>> > 
>>> > 
>>> > ; Initialize the global variables. 
>>> > ksmps = 32
>>> > nchnls = 2
>>> > 0dbfs = 1
>>> > 
>>> > instr 99
>>> >     prints("starting %d\n", p4)
>>> >     
>>> >     if metro(1) == 1 then
>>> >         printks("tick (%d)\n", 0, p4)
>>> >     endif
>>> > endin
>>> > 
>>> > 
>>> > 
>>> > i 99 0 10 1
>>> > i 99 0 -1 2
>>> > i 99 0 z  3
>>> > i 99 0 0 4
>>> > 
>>> > 
>>> > 
>>> > 
>>> > So, why doesn't the number 2 instance execute at the k-rate? It used to. It does execute the i-rate.
>>> > 
>>> > Mike
>>> > 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
> 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

Date2022-10-16 16:39
FromVictor Lazzarini
SubjectRe: [Csnd] [EXTERNAL] [Csnd] Instr score durations
If you run one single instance of instr 1 with -1 it will run until Csound stops running. So the CSD

 

-odac


instr 1
out oscili(0dbfs, A4)
endin
schedule(1,0,-1)





Will run forever playing a 440Hz sine wave at full amplitude. But in this one



-odac


instr 1
out oscili(0dbfs, A4)
endin
schedule(1,0,-1)
schedule(1,0,1)





the second instance will take over and run for 1 second. 

Equally

 

-odac


instr 1
out oscili(0dbfs, A4)
endin


i1 0 -1



will not even run because the performance will end immediately. But if you add f0 z


 

-odac


instr 1
out oscili(0dbfs, A4)
endin


f0 z
i1 0 -1



========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 16 Oct 2022, at 16:03, Mike McGonagle  wrote:
> 
> WARNINGThis email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
> I'm not sure what to say, but using -1 does not work for me anymore, unless I use an instr number with a fractional part.
> 
> I'm suspecting that my copy of Csound is somehow corrupt. I just install Csound from the Cabbage bundle, so I was thinking about removing Csound altogether, and doing a fresh install.
> 
> Mike
> 
> On Sunday, October 16, 2022, Victor Lazzarini  wrote:
> You can still use p3 as -1 and it will run, there's nothing to say it wouldn't.
> 
> However if you have another i-statement (etc) with matching p1 (numbered or named), it will replace the instance instead of starting a new one.
> 
> Prof. Victor Lazzarini
> Maynooth University
> Ireland
> 
>> On 16 Oct 2022, at 05:10, Mike McGonagle  wrote:
>> 
>> 
>> Ok, was able to try these things again, and I effectively ran each line by themselves, and I didn't get any different results. 1, 3, & 4 worked, as expected. But 2 still only ran during the i-rate. When I changed the instr called to 99.1, 2 ran as it should have.
>> 
>> Maybe this isn't exactly as I have been using these things because I normally use named instr's. But I still swear that I have been able to use -1 to run these instr's... Anyway, I'll just start to use the 'z' option for the duration in a score.
>> 
>> Mike
>> 
>> On Sat, Oct 15, 2022 at 2:40 PM Victor Lazzarini  wrote:
>> What you showed here is the normal behaviour of the software, it has always worked like that.
>> 
>> Depending on how you are running, setting a p3 to -1 may not keep Csound running indefinitely. You may need to use f 0 z or something similar.
>> 
>> Prof. Victor Lazzarini
>> Maynooth University
>> Ireland
>> 
>>> On 15 Oct 2022, at 19:58, Mike McGonagle  wrote:
>>> 
>>> 
>>> Thanks, Victor. I'll check it again tonight. This problems arose with using just a single instance of an instr. -1 wouldn't work at k-rate, and Rory suggested trying 'z', which worked.
>>> 
>>> Just trying to figure out while all of a sudden this is happening.
>>> 
>>> Mike
>>> 
>>> On Sat, Oct 15, 2022, 12:53 PM Victor Lazzarini  wrote:
>>> Try  
>>> 
>>> i 99 0 10 1
>>> i 99.1 0 -1 2
>>> i 99 0 z  3
>>> i 99 0 0 4
>>> 
>>> and you will get your printouts. 
>>> 
>>> The reason is that you start a negative p3 and then immediately it gets replaced by the positive matching p1 following it and
>>> so you only have 2 instances running. If instead you mark the negative p3 with a specific instance number, then it 
>>> can only be replaced with a matching p1.
>>> 
>>> From the same page in the manual
>>> 
>>>  "An instrument may be turned on and left to perform indefinitely either by giving it a negative p3 or by including an ihold in its i-time code. If a held note is active, an i statement with matching p1 will not cause a new allocation but will take over the data space of the held note." 
>>> 
>>> 
>>> ========================
>>> Prof. Victor Lazzarini
>>> Maynooth University
>>> Ireland
>>> 
>>> > On 15 Oct 2022, at 17:09, Mike McGonagle  wrote:
>>> > 
>>> > WARNINGThis email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
>>> > I have a short example below. According to the manual, it says...
>>> > 
>>> > https://csound.com/docs/manual/i.html
>>> > 
>>> > p3 -- Duration time in beats (usually positive). A negative value will initiate a held note (see also ihold). A negative value can also be used for 'always on' instruments like reverberation. These notes are not terminated by s statements A zero value will invoke an initialization pass without performance (see also instr).
>>> > 
>>> > 
>>> > 
>>> > -n -d 
>>> > 
>>> > 
>>> > ; Initialize the global variables. 
>>> > ksmps = 32
>>> > nchnls = 2
>>> > 0dbfs = 1
>>> > 
>>> > instr 99
>>> >     prints("starting %d\n", p4)
>>> >     
>>> >     if metro(1) == 1 then
>>> >         printks("tick (%d)\n", 0, p4)
>>> >     endif
>>> > endin
>>> > 
>>> > 
>>> > 
>>> > i 99 0 10 1
>>> > i 99 0 -1 2
>>> > i 99 0 z  3
>>> > i 99 0 0 4
>>> > 
>>> > 
>>> > 
>>> > 
>>> > So, why doesn't the number 2 instance execute at the k-rate? It used to. It does execute the i-rate.
>>> > 
>>> > Mike
>>> > 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
> 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

Date2022-10-16 16:46
FromMike McGonagle
SubjectRe: [Csnd] Instr score durations
This is the first machine that I've used the bundled version. But then again, I only took a month off, and now this is somehow different. My Mac is older so I can't get access to all the tools I would need to compile everything from scratch. Homebrew no longer supports the version of the Mac system I can get. I keep thinking Linux...

Mike

On Sunday, October 16, 2022, Dr. Richard Boulanger <rboulanger@berklee.edu> wrote:
Advice from Rory Walsh to my students and me was to:

Install a fresh Csound (it is the latest release), and not to install the Csound that is part of the Cabbage Bundle (which is not as current) as the 6.17 at csound.com

- Dr.B


Dr. Richard Boulanger

Professor

Electronic Production and Design

Berklee College of Music

Professional Writing & Technology Division



On Sun, Oct 16, 2022 at 11:04 AM Mike McGonagle <mjmogo@gmail.com> wrote:
I'm not sure what to say, but using -1 does not work for me anymore, unless I use an instr number with a fractional part.

I'm suspecting that my copy of Csound is somehow corrupt. I just install Csound from the Cabbage bundle, so I was thinking about removing Csound altogether, and doing a fresh install.

Mike

On Sunday, October 16, 2022, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
You can still use p3 as -1 and it will run, there's nothing to say it wouldn't.

However if you have another i-statement (etc) with matching p1 (numbered or named), it will replace the instance instead of starting a new one.

Prof. Victor Lazzarini
Maynooth University
Ireland

On 16 Oct 2022, at 05:10, Mike McGonagle <mjmogo@gmail.com> wrote:


Ok, was able to try these things again, and I effectively ran each line by themselves, and I didn't get any different results. 1, 3, & 4 worked, as expected. But 2 still only ran during the i-rate. When I changed the instr called to 99.1, 2 ran as it should have.

Maybe this isn't exactly as I have been using these things because I normally use named instr's. But I still swear that I have been able to use -1 to run these instr's... Anyway, I'll just start to use the 'z' option for the duration in a score.

Mike

On Sat, Oct 15, 2022 at 2:40 PM Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
What you showed here is the normal behaviour of the software, it has always worked like that.

Depending on how you are running, setting a p3 to -1 may not keep Csound running indefinitely. You may need to use f 0 z or something similar.

Prof. Victor Lazzarini
Maynooth University
Ireland

On 15 Oct 2022, at 19:58, Mike McGonagle <mjmogo@gmail.com> wrote:


Thanks, Victor. I'll check it again tonight. This problems arose with using just a single instance of an instr. -1 wouldn't work at k-rate, and Rory suggested trying 'z', which worked.

Just trying to figure out while all of a sudden this is happening.

Mike

On Sat, Oct 15, 2022, 12:53 PM Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
Try 

i 99 0 10 1
i 99.1 0 -1 2
i 99 0 z  3
i 99 0 0 4

and you will get your printouts.

The reason is that you start a negative p3 and then immediately it gets replaced by the positive matching p1 following it and
so you only have 2 instances running. If instead you mark the negative p3 with a specific instance number, then it
can only be replaced with a matching p1.

>From the same page in the manual

 "An instrument may be turned on and left to perform indefinitely either by giving it a negative p3 or by including an ihold in its i-time code. If a held note is active, an i statement with matching p1 will not cause a new allocation but will take over the data space of the held note."


========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 15 Oct 2022, at 17:09, Mike McGonagle <mjmogo@GMAIL.COM> wrote:
>
> WARNINGThis email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
> I have a short example below. According to the manual, it says...
>
> https://csound.com/docs/manual/i.html
>
> p3 -- Duration time in beats (usually positive). A negative value will initiate a held note (see also ihold). A negative value can also be used for 'always on' instruments like reverberation. These notes are not terminated by s statements A zero value will invoke an initialization pass without performance (see also instr).
>
> <CsoundSynthesizer>
> <CsOptions>
> -n -d
> </CsOptions>
> <CsInstruments>
> ; Initialize the global variables.
> ksmps = 32
> nchnls = 2
> 0dbfs = 1
>
> instr 99
>     prints("starting %d\n", p4)
>     
>     if metro(1) == 1 then
>         printks("tick (%d)\n", 0, p4)
>     endif
> endin
>
> </CsInstruments>
> <CsScore>
> i 99 0 10 1
> i 99 0 -1 2
> i 99 0 z  3
> i 99 0 0 4
> </CsScore>
> </CsoundSynthesizer>
>
>
> So, why doesn't the number 2 instance execute at the k-rate? It used to. It does execute the i-rate.
>
> Mike
> 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
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

Date2022-10-16 16:46
FromVictor Lazzarini
SubjectRe: [Csnd] [EXTERNAL] [Csnd] Instr score durations
I should have completed: it will run forever like in the first example.

Why?

1 - in the first example, there is no numeric score, Csound runs forever. The scheduled instr 1  with p3=-1 will
run forever.

2 - in the second example, the first instr 1 with p3=-1 instance is immediately replaced by the instance with p3=1

3 - in the third example, the score runs to the end before any performance can be run.

4 - in the fourth example the score requires to run an f statement at time z (which is the end of times as far as we are concerned)
so Csound has to run until then. The i1 0 -1 then turns instrument 1 indefinitely on.  

========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 16 Oct 2022, at 16:39, Victor Lazzarini  wrote:
> 
> If you run one single instance of instr 1 with -1 it will run until Csound stops running. So the CSD
> 
> 
> 
> -odac
> 
> 
> instr 1
> out oscili(0dbfs, A4)
> endin
> schedule(1,0,-1)
> 
> 
> 
> 
> 
> Will run forever playing a 440Hz sine wave at full amplitude. But in this one
> 
> 
> 
> -odac
> 
> 
> instr 1
> out oscili(0dbfs, A4)
> endin
> schedule(1,0,-1)
> schedule(1,0,1)
> 
> 
> 
> 
> 
> the second instance will take over and run for 1 second. 
> 
> Equally
> 
> 
> 
> -odac
> 
> 
> instr 1
> out oscili(0dbfs, A4)
> endin
> 
> 
> i1 0 -1
> 
> 
> 
> will not even run because the performance will end immediately. But if you add f0 z
> 
> 
> 
> 
> -odac
> 
> 
> instr 1
> out oscili(0dbfs, A4)
> endin
> 
> 
> f0 z
> i1 0 -1
> 
> 
> 
> ========================
> Prof. Victor Lazzarini
> Maynooth University
> Ireland
> 
>> On 16 Oct 2022, at 16:03, Mike McGonagle  wrote:
>> 
>> WARNINGThis email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
>> I'm not sure what to say, but using -1 does not work for me anymore, unless I use an instr number with a fractional part.
>> 
>> I'm suspecting that my copy of Csound is somehow corrupt. I just install Csound from the Cabbage bundle, so I was thinking about removing Csound altogether, and doing a fresh install.
>> 
>> Mike
>> 
>> On Sunday, October 16, 2022, Victor Lazzarini  wrote:
>> You can still use p3 as -1 and it will run, there's nothing to say it wouldn't.
>> 
>> However if you have another i-statement (etc) with matching p1 (numbered or named), it will replace the instance instead of starting a new one.
>> 
>> Prof. Victor Lazzarini
>> Maynooth University
>> Ireland
>> 
>>> On 16 Oct 2022, at 05:10, Mike McGonagle  wrote:
>>> 
>>> 
>>> Ok, was able to try these things again, and I effectively ran each line by themselves, and I didn't get any different results. 1, 3, & 4 worked, as expected. But 2 still only ran during the i-rate. When I changed the instr called to 99.1, 2 ran as it should have.
>>> 
>>> Maybe this isn't exactly as I have been using these things because I normally use named instr's. But I still swear that I have been able to use -1 to run these instr's... Anyway, I'll just start to use the 'z' option for the duration in a score.
>>> 
>>> Mike
>>> 
>>> On Sat, Oct 15, 2022 at 2:40 PM Victor Lazzarini  wrote:
>>> What you showed here is the normal behaviour of the software, it has always worked like that.
>>> 
>>> Depending on how you are running, setting a p3 to -1 may not keep Csound running indefinitely. You may need to use f 0 z or something similar.
>>> 
>>> Prof. Victor Lazzarini
>>> Maynooth University
>>> Ireland
>>> 
>>>> On 15 Oct 2022, at 19:58, Mike McGonagle  wrote:
>>>> 
>>>> 
>>>> Thanks, Victor. I'll check it again tonight. This problems arose with using just a single instance of an instr. -1 wouldn't work at k-rate, and Rory suggested trying 'z', which worked.
>>>> 
>>>> Just trying to figure out while all of a sudden this is happening.
>>>> 
>>>> Mike
>>>> 
>>>> On Sat, Oct 15, 2022, 12:53 PM Victor Lazzarini  wrote:
>>>> Try  
>>>> 
>>>> i 99 0 10 1
>>>> i 99.1 0 -1 2
>>>> i 99 0 z  3
>>>> i 99 0 0 4
>>>> 
>>>> and you will get your printouts. 
>>>> 
>>>> The reason is that you start a negative p3 and then immediately it gets replaced by the positive matching p1 following it and
>>>> so you only have 2 instances running. If instead you mark the negative p3 with a specific instance number, then it 
>>>> can only be replaced with a matching p1.
>>>> 
>>>> From the same page in the manual
>>>> 
>>>> "An instrument may be turned on and left to perform indefinitely either by giving it a negative p3 or by including an ihold in its i-time code. If a held note is active, an i statement with matching p1 will not cause a new allocation but will take over the data space of the held note." 
>>>> 
>>>> 
>>>> ========================
>>>> Prof. Victor Lazzarini
>>>> Maynooth University
>>>> Ireland
>>>> 
>>>>> On 15 Oct 2022, at 17:09, Mike McGonagle  wrote:
>>>>> 
>>>>> WARNINGThis email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
>>>>> I have a short example below. According to the manual, it says...
>>>>> 
>>>>> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcsound.com%2Fdocs%2Fmanual%2Fi.html&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865181604%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=KNfUtrw6djfmZPFBFhaM0lQKqROyTI1%2BK6LjT6qqcvM%3D&reserved=0
>>>>> 
>>>>> p3 -- Duration time in beats (usually positive). A negative value will initiate a held note (see also ihold). A negative value can also be used for 'always on' instruments like reverberation. These notes are not terminated by s statements A zero value will invoke an initialization pass without performance (see also instr).
>>>>> 
>>>>> 
>>>>> 
>>>>> -n -d 
>>>>> 
>>>>> 
>>>>> ; Initialize the global variables. 
>>>>> ksmps = 32
>>>>> nchnls = 2
>>>>> 0dbfs = 1
>>>>> 
>>>>> instr 99
>>>>>    prints("starting %d\n", p4)
>>>>> 
>>>>>    if metro(1) == 1 then
>>>>>        printks("tick (%d)\n", 0, p4)
>>>>>    endif
>>>>> endin
>>>>> 
>>>>> 
>>>>> 
>>>>> i 99 0 10 1
>>>>> i 99 0 -1 2
>>>>> i 99 0 z  3
>>>>> i 99 0 0 4
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> So, why doesn't the number 2 instance execute at the k-rate? It used to. It does execute the i-rate.
>>>>> 
>>>>> Mike
>>>>> Csound mailing list Csound@listserv.heanet.ie https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865181604%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=vcn3k5UP%2FuBtb3sJOsHksHTB2R55HdzHvKMtWg5DWSg%3D&reserved=0 Send bugs reports to https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865181604%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=tgQg7SvAEwaecYvBDAD1E%2FrmiBRpezE7QPesuQ2jEn8%3D&reserved=0 Discussions of bugs and features can be posted here
>>>> 
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865181604%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=vcn3k5UP%2FuBtb3sJOsHksHTB2R55HdzHvKMtWg5DWSg%3D&reserved=0
>>>> Send bugs reports to
>>>>        https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865181604%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=tgQg7SvAEwaecYvBDAD1E%2FrmiBRpezE7QPesuQ2jEn8%3D&reserved=0
>>>> Discussions of bugs and features can be posted here
>>>> Csound mailing list Csound@listserv.heanet.ie https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=EVdLCped787eBVK%2FACuaB4JdhEGkbjI0QoOi24O0%2BR4%3D&reserved=0 Send bugs reports to https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=A1N2M%2BXoC540YhRzo2oRYgpqkMpx369bK9vOqUFtxO8%3D&reserved=0 Discussions of bugs and features can be posted here
>>> Csound mailing list Csound@listserv.heanet.ie https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=EVdLCped787eBVK%2FACuaB4JdhEGkbjI0QoOi24O0%2BR4%3D&reserved=0 Send bugs reports to https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=A1N2M%2BXoC540YhRzo2oRYgpqkMpx369bK9vOqUFtxO8%3D&reserved=0 Discussions of bugs and features can be posted here
>>> Csound mailing list Csound@listserv.heanet.ie https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=EVdLCped787eBVK%2FACuaB4JdhEGkbjI0QoOi24O0%2BR4%3D&reserved=0 Send bugs reports to https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=A1N2M%2BXoC540YhRzo2oRYgpqkMpx369bK9vOqUFtxO8%3D&reserved=0 Discussions of bugs and features can be posted here
>> Csound mailing list Csound@listserv.heanet.ie https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=EVdLCped787eBVK%2FACuaB4JdhEGkbjI0QoOi24O0%2BR4%3D&reserved=0 Send bugs reports to https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=A1N2M%2BXoC540YhRzo2oRYgpqkMpx369bK9vOqUFtxO8%3D&reserved=0 Discussions of bugs and features can be posted here
>> Csound mailing list Csound@listserv.heanet.ie https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=EVdLCped787eBVK%2FACuaB4JdhEGkbjI0QoOi24O0%2BR4%3D&reserved=0 Send bugs reports to https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=A1N2M%2BXoC540YhRzo2oRYgpqkMpx369bK9vOqUFtxO8%3D&reserved=0 Discussions of bugs and features can be posted here
> 
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=EVdLCped787eBVK%2FACuaB4JdhEGkbjI0QoOi24O0%2BR4%3D&reserved=0
> Send bugs reports to
>        https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=A1N2M%2BXoC540YhRzo2oRYgpqkMpx369bK9vOqUFtxO8%3D&reserved=0
> 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

Date2022-10-16 16:47
From"Dr. Richard Boulanger"
SubjectRe: [Csnd] [EXTERNAL] [Csnd] Instr score durations
OK.  but you probably should not need to install the Csound bundled with Cabbage 2.8 from September 2021 over the more recent Csound 6.17 from csound.com - Feb2, 2022

- Dr.B


Dr. Richard Boulanger

Professor

Electronic Production and Design

Berklee College of Music

Professional Writing & Technology Division



On Sun, Oct 16, 2022 at 11:32 AM Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
No, that has nothing to do with it. There is no way any issue with Csound would appear as this.
========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 16 Oct 2022, at 16:08, Dr. Richard Boulanger <rboulanger@BERKLEE.EDU> wrote:
>
> WARNINGThis email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
> Advice from Rory Walsh to my students and me was to:
>
> Install a fresh Csound (it is the latest release), and not to install the Csound that is part of the Cabbage Bundle (which is not as current) as the 6.17 at csound.com
>
> - Dr.B
>
> Dr. Richard Boulanger
> Professor
> Electronic Production and Design
> Berklee College of Music
> Professional Writing & Technology Division
>
>
> On Sun, Oct 16, 2022 at 11:04 AM Mike McGonagle <mjmogo@gmail.com> wrote:
> I'm not sure what to say, but using -1 does not work for me anymore, unless I use an instr number with a fractional part.
>
> I'm suspecting that my copy of Csound is somehow corrupt. I just install Csound from the Cabbage bundle, so I was thinking about removing Csound altogether, and doing a fresh install.
>
> Mike
>
> On Sunday, October 16, 2022, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
> You can still use p3 as -1 and it will run, there's nothing to say it wouldn't.
>
> However if you have another i-statement (etc) with matching p1 (numbered or named), it will replace the instance instead of starting a new one.
>
> Prof. Victor Lazzarini
> Maynooth University
> Ireland
>
>> On 16 Oct 2022, at 05:10, Mike McGonagle <mjmogo@gmail.com> wrote:
>>
>> 
>> Ok, was able to try these things again, and I effectively ran each line by themselves, and I didn't get any different results. 1, 3, & 4 worked, as expected. But 2 still only ran during the i-rate. When I changed the instr called to 99.1, 2 ran as it should have.
>>
>> Maybe this isn't exactly as I have been using these things because I normally use named instr's. But I still swear that I have been able to use -1 to run these instr's... Anyway, I'll just start to use the 'z' option for the duration in a score.
>>
>> Mike
>>
>> On Sat, Oct 15, 2022 at 2:40 PM Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
>> What you showed here is the normal behaviour of the software, it has always worked like that.
>>
>> Depending on how you are running, setting a p3 to -1 may not keep Csound running indefinitely. You may need to use f 0 z or something similar.
>>
>> Prof. Victor Lazzarini
>> Maynooth University
>> Ireland
>>
>>> On 15 Oct 2022, at 19:58, Mike McGonagle <mjmogo@gmail.com> wrote:
>>>
>>> 
>>> Thanks, Victor. I'll check it again tonight. This problems arose with using just a single instance of an instr. -1 wouldn't work at k-rate, and Rory suggested trying 'z', which worked.
>>>
>>> Just trying to figure out while all of a sudden this is happening.
>>>
>>> Mike
>>>
>>> On Sat, Oct 15, 2022, 12:53 PM Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
>>> Try 
>>>
>>> i 99 0 10 1
>>> i 99.1 0 -1 2
>>> i 99 0 z  3
>>> i 99 0 0 4
>>>
>>> and you will get your printouts.
>>>
>>> The reason is that you start a negative p3 and then immediately it gets replaced by the positive matching p1 following it and
>>> so you only have 2 instances running. If instead you mark the negative p3 with a specific instance number, then it
>>> can only be replaced with a matching p1.
>>>
>>> From the same page in the manual
>>>
>>>  "An instrument may be turned on and left to perform indefinitely either by giving it a negative p3 or by including an ihold in its i-time code. If a held note is active, an i statement with matching p1 will not cause a new allocation but will take over the data space of the held note."
>>>
>>>
>>> ========================
>>> Prof. Victor Lazzarini
>>> Maynooth University
>>> Ireland
>>>
>>> > On 15 Oct 2022, at 17:09, Mike McGonagle <mjmogo@GMAIL.COM> wrote:
>>> >
>>> > WARNINGThis email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
>>> > I have a short example below. According to the manual, it says...
>>> >
>>> > https://us-west-2.protection.sophos.com?d=csound.com&u=aHR0cHM6Ly9jc291bmQuY29tL2RvY3MvbWFudWFsL2kuaHRtbA==&i=NWYxNzBkMDNiNTVmZGEwZmIyNjczYmRm&t=WFRrejhxRCtIdVhobFYwWEhUWnErOHlWNkQwU3Y0UGMrQWN4YmsvNWd3bz0=&h=5f2bfa1930df44609a6aaf31d55129fb&s=AVNPUEhUT0NFTkNSWVBUSVYpmKWVU1jKuTPLD5gnaWwAaG5wwcHTpfjKIfFGmt9h9A==
>>> >
>>> > p3 -- Duration time in beats (usually positive). A negative value will initiate a held note (see also ihold). A negative value can also be used for 'always on' instruments like reverberation. These notes are not terminated by s statements A zero value will invoke an initialization pass without performance (see also instr).
>>> >
>>> > <CsoundSynthesizer>
>>> > <CsOptions>
>>> > -n -d
>>> > </CsOptions>
>>> > <CsInstruments>
>>> > ; Initialize the global variables.
>>> > ksmps = 32
>>> > nchnls = 2
>>> > 0dbfs = 1
>>> >
>>> > instr 99
>>> >     prints("starting %d\n", p4)
>>> >     
>>> >     if metro(1) == 1 then
>>> >         printks("tick (%d)\n", 0, p4)
>>> >     endif
>>> > endin
>>> >
>>> > </CsInstruments>
>>> > <CsScore>
>>> > i 99 0 10 1
>>> > i 99 0 -1 2
>>> > i 99 0 z  3
>>> > i 99 0 0 4
>>> > </CsScore>
>>> > </CsoundSynthesizer>
>>> >
>>> >
>>> > So, why doesn't the number 2 instance execute at the k-rate? It used to. It does execute the i-rate.
>>> >
>>> > Mike
>>> > Csound mailing list Csound@listserv.heanet.ie https://us-west-2.protection.sophos.com?d=heanet.ie&u=aHR0cHM6Ly9saXN0c2Vydi5oZWFuZXQuaWUvY2dpLWJpbi93YT9BMD1DU09VTkQ=&i=NWYxNzBkMDNiNTVmZGEwZmIyNjczYmRm&t=WVZMRlI4dlFUVUZ6V2NTOUU5eE9lZnFIemtoc2hxYlBDMFFCWmtKZzhzRT0=&h=5f2bfa1930df44609a6aaf31d55129fb&s=AVNPUEhUT0NFTkNSWVBUSVYpmKWVU1jKuTPLD5gnaWwAaG5wwcHTpfjKIfFGmt9h9A== Send bugs reports to https://us-west-2.protection.sophos.com?d=github.com&u=aHR0cHM6Ly9naXRodWIuY29tL2Nzb3VuZC9jc291bmQvaXNzdWVz&i=NWYxNzBkMDNiNTVmZGEwZmIyNjczYmRm&t=YlNrQ2lLclRLZUpGUE1iR0FyY2M1eW1NTUU5SUozWlJwMTNZU2NXT1BLOD0=&h=5f2bfa1930df44609a6aaf31d55129fb&s=AVNPUEhUT0NFTkNSWVBUSVYpmKWVU1jKuTPLD5gnaWwAaG5wwcHTpfjKIfFGmt9h9A== Discussions of bugs and features can be posted here
>>>
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://us-west-2.protection.sophos.com?d=heanet.ie&u=aHR0cHM6Ly9saXN0c2Vydi5oZWFuZXQuaWUvY2dpLWJpbi93YT9BMD1DU09VTkQ=&i=NWYxNzBkMDNiNTVmZGEwZmIyNjczYmRm&t=WVZMRlI4dlFUVUZ6V2NTOUU5eE9lZnFIemtoc2hxYlBDMFFCWmtKZzhzRT0=&h=5f2bfa1930df44609a6aaf31d55129fb&s=AVNPUEhUT0NFTkNSWVBUSVYpmKWVU1jKuTPLD5gnaWwAaG5wwcHTpfjKIfFGmt9h9A==
>>> Send bugs reports to
>>>         https://us-west-2.protection.sophos.com?d=github.com&u=aHR0cHM6Ly9naXRodWIuY29tL2Nzb3VuZC9jc291bmQvaXNzdWVz&i=NWYxNzBkMDNiNTVmZGEwZmIyNjczYmRm&t=YlNrQ2lLclRLZUpGUE1iR0FyY2M1eW1NTUU5SUozWlJwMTNZU2NXT1BLOD0=&h=5f2bfa1930df44609a6aaf31d55129fb&s=AVNPUEhUT0NFTkNSWVBUSVYpmKWVU1jKuTPLD5gnaWwAaG5wwcHTpfjKIfFGmt9h9A==
>>> Discussions of bugs and features can be posted here
>>> Csound mailing list Csound@listserv.heanet.ie https://us-west-2.protection.sophos.com?d=heanet.ie&u=aHR0cHM6Ly9saXN0c2Vydi5oZWFuZXQuaWUvY2dpLWJpbi93YT9BMD1DU09VTkQ=&i=NWYxNzBkMDNiNTVmZGEwZmIyNjczYmRm&t=WVZMRlI4dlFUVUZ6V2NTOUU5eE9lZnFIemtoc2hxYlBDMFFCWmtKZzhzRT0=&h=5f2bfa1930df44609a6aaf31d55129fb&s=AVNPUEhUT0NFTkNSWVBUSVYpmKWVU1jKuTPLD5gnaWwAaG5wwcHTpfjKIfFGmt9h9A== Send bugs reports to https://us-west-2.protection.sophos.com?d=github.com&u=aHR0cHM6Ly9naXRodWIuY29tL2Nzb3VuZC9jc291bmQvaXNzdWVz&i=NWYxNzBkMDNiNTVmZGEwZmIyNjczYmRm&t=YlNrQ2lLclRLZUpGUE1iR0FyY2M1eW1NTUU5SUozWlJwMTNZU2NXT1BLOD0=&h=5f2bfa1930df44609a6aaf31d55129fb&s=AVNPUEhUT0NFTkNSWVBUSVYpmKWVU1jKuTPLD5gnaWwAaG5wwcHTpfjKIfFGmt9h9A== Discussions of bugs and features can be posted here
>> Csound mailing list Csound@listserv.heanet.ie https://us-west-2.protection.sophos.com?d=heanet.ie&u=aHR0cHM6Ly9saXN0c2Vydi5oZWFuZXQuaWUvY2dpLWJpbi93YT9BMD1DU09VTkQ=&i=NWYxNzBkMDNiNTVmZGEwZmIyNjczYmRm&t=WVZMRlI4dlFUVUZ6V2NTOUU5eE9lZnFIemtoc2hxYlBDMFFCWmtKZzhzRT0=&h=5f2bfa1930df44609a6aaf31d55129fb&s=AVNPUEhUT0NFTkNSWVBUSVYpmKWVU1jKuTPLD5gnaWwAaG5wwcHTpfjKIfFGmt9h9A== Send bugs reports to https://us-west-2.protection.sophos.com?d=github.com&u=aHR0cHM6Ly9naXRodWIuY29tL2Nzb3VuZC9jc291bmQvaXNzdWVz&i=NWYxNzBkMDNiNTVmZGEwZmIyNjczYmRm&t=YlNrQ2lLclRLZUpGUE1iR0FyY2M1eW1NTUU5SUozWlJwMTNZU2NXT1BLOD0=&h=5f2bfa1930df44609a6aaf31d55129fb&s=AVNPUEhUT0NFTkNSWVBUSVYpmKWVU1jKuTPLD5gnaWwAaG5wwcHTpfjKIfFGmt9h9A== Discussions of bugs and features can be posted here
>> Csound mailing list Csound@listserv.heanet.ie https://us-west-2.protection.sophos.com?d=heanet.ie&u=aHR0cHM6Ly9saXN0c2Vydi5oZWFuZXQuaWUvY2dpLWJpbi93YT9BMD1DU09VTkQ=&i=NWYxNzBkMDNiNTVmZGEwZmIyNjczYmRm&t=WVZMRlI4dlFUVUZ6V2NTOUU5eE9lZnFIemtoc2hxYlBDMFFCWmtKZzhzRT0=&h=5f2bfa1930df44609a6aaf31d55129fb&s=AVNPUEhUT0NFTkNSWVBUSVYpmKWVU1jKuTPLD5gnaWwAaG5wwcHTpfjKIfFGmt9h9A== Send bugs reports to https://us-west-2.protection.sophos.com?d=github.com&u=aHR0cHM6Ly9naXRodWIuY29tL2Nzb3VuZC9jc291bmQvaXNzdWVz&i=NWYxNzBkMDNiNTVmZGEwZmIyNjczYmRm&t=YlNrQ2lLclRLZUpGUE1iR0FyY2M1eW1NTUU5SUozWlJwMTNZU2NXT1BLOD0=&h=5f2bfa1930df44609a6aaf31d55129fb&s=AVNPUEhUT0NFTkNSWVBUSVYpmKWVU1jKuTPLD5gnaWwAaG5wwcHTpfjKIfFGmt9h9A== Discussions of bugs and features can be posted here
> Csound mailing list Csound@listserv.heanet.ie https://us-west-2.protection.sophos.com?d=heanet.ie&u=aHR0cHM6Ly9saXN0c2Vydi5oZWFuZXQuaWUvY2dpLWJpbi93YT9BMD1DU09VTkQ=&i=NWYxNzBkMDNiNTVmZGEwZmIyNjczYmRm&t=WVZMRlI4dlFUVUZ6V2NTOUU5eE9lZnFIemtoc2hxYlBDMFFCWmtKZzhzRT0=&h=5f2bfa1930df44609a6aaf31d55129fb&s=AVNPUEhUT0NFTkNSWVBUSVYpmKWVU1jKuTPLD5gnaWwAaG5wwcHTpfjKIfFGmt9h9A== Send bugs reports to https://us-west-2.protection.sophos.com?d=github.com&u=aHR0cHM6Ly9naXRodWIuY29tL2Nzb3VuZC9jc291bmQvaXNzdWVz&i=NWYxNzBkMDNiNTVmZGEwZmIyNjczYmRm&t=YlNrQ2lLclRLZUpGUE1iR0FyY2M1eW1NTUU5SUozWlJwMTNZU2NXT1BLOD0=&h=5f2bfa1930df44609a6aaf31d55129fb&s=AVNPUEhUT0NFTkNSWVBUSVYpmKWVU1jKuTPLD5gnaWwAaG5wwcHTpfjKIfFGmt9h9A== Discussions of bugs and features can be posted here
> Csound mailing list Csound@listserv.heanet.ie https://us-west-2.protection.sophos.com?d=heanet.ie&u=aHR0cHM6Ly9saXN0c2Vydi5oZWFuZXQuaWUvY2dpLWJpbi93YT9BMD1DU09VTkQ=&i=NWYxNzBkMDNiNTVmZGEwZmIyNjczYmRm&t=WVZMRlI4dlFUVUZ6V2NTOUU5eE9lZnFIemtoc2hxYlBDMFFCWmtKZzhzRT0=&h=5f2bfa1930df44609a6aaf31d55129fb&s=AVNPUEhUT0NFTkNSWVBUSVYpmKWVU1jKuTPLD5gnaWwAaG5wwcHTpfjKIfFGmt9h9A== Send bugs reports to https://us-west-2.protection.sophos.com?d=github.com&u=aHR0cHM6Ly9naXRodWIuY29tL2Nzb3VuZC9jc291bmQvaXNzdWVz&i=NWYxNzBkMDNiNTVmZGEwZmIyNjczYmRm&t=YlNrQ2lLclRLZUpGUE1iR0FyY2M1eW1NTUU5SUozWlJwMTNZU2NXT1BLOD0=&h=5f2bfa1930df44609a6aaf31d55129fb&s=AVNPUEhUT0NFTkNSWVBUSVYpmKWVU1jKuTPLD5gnaWwAaG5wwcHTpfjKIfFGmt9h9A== Discussions of bugs and features can be posted here
> Csound mailing list Csound@listserv.heanet.ie https://us-west-2.protection.sophos.com?d=heanet.ie&u=aHR0cHM6Ly9saXN0c2Vydi5oZWFuZXQuaWUvY2dpLWJpbi93YT9BMD1DU09VTkQ=&i=NWYxNzBkMDNiNTVmZGEwZmIyNjczYmRm&t=WVZMRlI4dlFUVUZ6V2NTOUU5eE9lZnFIemtoc2hxYlBDMFFCWmtKZzhzRT0=&h=5f2bfa1930df44609a6aaf31d55129fb&s=AVNPUEhUT0NFTkNSWVBUSVYpmKWVU1jKuTPLD5gnaWwAaG5wwcHTpfjKIfFGmt9h9A== Send bugs reports to https://us-west-2.protection.sophos.com?d=github.com&u=aHR0cHM6Ly9naXRodWIuY29tL2Nzb3VuZC9jc291bmQvaXNzdWVz&i=NWYxNzBkMDNiNTVmZGEwZmIyNjczYmRm&t=YlNrQ2lLclRLZUpGUE1iR0FyY2M1eW1NTUU5SUozWlJwMTNZU2NXT1BLOD0=&h=5f2bfa1930df44609a6aaf31d55129fb&s=AVNPUEhUT0NFTkNSWVBUSVYpmKWVU1jKuTPLD5gnaWwAaG5wwcHTpfjKIfFGmt9h9A== Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://us-west-2.protection.sophos.com?d=heanet.ie&u=aHR0cHM6Ly9saXN0c2Vydi5oZWFuZXQuaWUvY2dpLWJpbi93YT9BMD1DU09VTkQ=&i=NWYxNzBkMDNiNTVmZGEwZmIyNjczYmRm&t=WVZMRlI4dlFUVUZ6V2NTOUU5eE9lZnFIemtoc2hxYlBDMFFCWmtKZzhzRT0=&h=5f2bfa1930df44609a6aaf31d55129fb&s=AVNPUEhUT0NFTkNSWVBUSVYpmKWVU1jKuTPLD5gnaWwAaG5wwcHTpfjKIfFGmt9h9A==
Send bugs reports to
        https://us-west-2.protection.sophos.com?d=github.com&u=aHR0cHM6Ly9naXRodWIuY29tL2Nzb3VuZC9jc291bmQvaXNzdWVz&i=NWYxNzBkMDNiNTVmZGEwZmIyNjczYmRm&t=YlNrQ2lLclRLZUpGUE1iR0FyY2M1eW1NTUU5SUozWlJwMTNZU2NXT1BLOD0=&h=5f2bfa1930df44609a6aaf31d55129fb&s=AVNPUEhUT0NFTkNSWVBUSVYpmKWVU1jKuTPLD5gnaWwAaG5wwcHTpfjKIfFGmt9h9A==
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

Date2022-10-16 16:52
FromMike McGonagle
SubjectRe: [Csnd] [EXTERNAL] [Csnd] Instr score durations
Victor, thank you for your patience. I finally understand what it is I am doing wrong.

Mike

On Sun, Oct 16, 2022 at 10:46 AM Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
I should have completed: it will run forever like in the first example.

Why?

1 - in the first example, there is no numeric score, Csound runs forever. The scheduled instr 1  with p3=-1 will
run forever.

2 - in the second example, the first instr 1 with p3=-1 instance is immediately replaced by the instance with p3=1

3 - in the third example, the score runs to the end before any performance can be run.

4 - in the fourth example the score requires to run an f statement at time z (which is the end of times as far as we are concerned)
so Csound has to run until then. The i1 0 -1 then turns instrument 1 indefinitely on. 

========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 16 Oct 2022, at 16:39, Victor Lazzarini <Victor.Lazzarini@MU.IE> wrote:
>
> If you run one single instance of instr 1 with -1 it will run until Csound stops running. So the CSD
>
> <CsoundSynthesizer>
> <CsOptions>
> -odac
> </CsOptions>
> <CsInstruments>
> instr 1
> out oscili(0dbfs, A4)
> endin
> schedule(1,0,-1)
> </CsInstruments>
> <CsScore>
> </CsScore>
> </CsoundSynthesizer>
>
> Will run forever playing a 440Hz sine wave at full amplitude. But in this one
>
> <CsoundSynthesizer>
> <CsOptions>
> -odac
> </CsOptions>
> <CsInstruments>
> instr 1
> out oscili(0dbfs, A4)
> endin
> schedule(1,0,-1)
> schedule(1,0,1)
> </CsInstruments>
> <CsScore>
> </CsScore>
> </CsoundSynthesizer>
>
> the second instance will take over and run for 1 second.
>
> Equally
>
> <CsoundSynthesizer>
> <CsOptions>
> -odac
> </CsOptions>
> <CsInstruments>
> instr 1
> out oscili(0dbfs, A4)
> endin
> </CsInstruments>
> <CsScore>
> i1 0 -1
> </CsScore>
> </CsoundSynthesizer>
>
> will not even run because the performance will end immediately. But if you add f0 z
>
>
> <CsoundSynthesizer>
> <CsOptions>
> -odac
> </CsOptions>
> <CsInstruments>
> instr 1
> out oscili(0dbfs, A4)
> endin
> </CsInstruments>
> <CsScore>
> f0 z
> i1 0 -1
> </CsScore>
> </CsoundSynthesizer>
>
> ========================
> Prof. Victor Lazzarini
> Maynooth University
> Ireland
>
>> On 16 Oct 2022, at 16:03, Mike McGonagle <mjmogo@GMAIL.COM> wrote:
>>
>> WARNINGThis email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
>> I'm not sure what to say, but using -1 does not work for me anymore, unless I use an instr number with a fractional part.
>>
>> I'm suspecting that my copy of Csound is somehow corrupt. I just install Csound from the Cabbage bundle, so I was thinking about removing Csound altogether, and doing a fresh install.
>>
>> Mike
>>
>> On Sunday, October 16, 2022, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
>> You can still use p3 as -1 and it will run, there's nothing to say it wouldn't.
>>
>> However if you have another i-statement (etc) with matching p1 (numbered or named), it will replace the instance instead of starting a new one.
>>
>> Prof. Victor Lazzarini
>> Maynooth University
>> Ireland
>>
>>> On 16 Oct 2022, at 05:10, Mike McGonagle <mjmogo@gmail.com> wrote:
>>>
>>> 
>>> Ok, was able to try these things again, and I effectively ran each line by themselves, and I didn't get any different results. 1, 3, & 4 worked, as expected. But 2 still only ran during the i-rate. When I changed the instr called to 99.1, 2 ran as it should have.
>>>
>>> Maybe this isn't exactly as I have been using these things because I normally use named instr's. But I still swear that I have been able to use -1 to run these instr's... Anyway, I'll just start to use the 'z' option for the duration in a score.
>>>
>>> Mike
>>>
>>> On Sat, Oct 15, 2022 at 2:40 PM Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
>>> What you showed here is the normal behaviour of the software, it has always worked like that.
>>>
>>> Depending on how you are running, setting a p3 to -1 may not keep Csound running indefinitely. You may need to use f 0 z or something similar.
>>>
>>> Prof. Victor Lazzarini
>>> Maynooth University
>>> Ireland
>>>
>>>> On 15 Oct 2022, at 19:58, Mike McGonagle <mjmogo@gmail.com> wrote:
>>>>
>>>> 
>>>> Thanks, Victor. I'll check it again tonight. This problems arose with using just a single instance of an instr. -1 wouldn't work at k-rate, and Rory suggested trying 'z', which worked.
>>>>
>>>> Just trying to figure out while all of a sudden this is happening.
>>>>
>>>> Mike
>>>>
>>>> On Sat, Oct 15, 2022, 12:53 PM Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
>>>> Try 
>>>>
>>>> i 99 0 10 1
>>>> i 99.1 0 -1 2
>>>> i 99 0 z  3
>>>> i 99 0 0 4
>>>>
>>>> and you will get your printouts.
>>>>
>>>> The reason is that you start a negative p3 and then immediately it gets replaced by the positive matching p1 following it and
>>>> so you only have 2 instances running. If instead you mark the negative p3 with a specific instance number, then it
>>>> can only be replaced with a matching p1.
>>>>
>>>> From the same page in the manual
>>>>
>>>> "An instrument may be turned on and left to perform indefinitely either by giving it a negative p3 or by including an ihold in its i-time code. If a held note is active, an i statement with matching p1 will not cause a new allocation but will take over the data space of the held note."
>>>>
>>>>
>>>> ========================
>>>> Prof. Victor Lazzarini
>>>> Maynooth University
>>>> Ireland
>>>>
>>>>> On 15 Oct 2022, at 17:09, Mike McGonagle <mjmogo@GMAIL.COM> wrote:
>>>>>
>>>>> WARNINGThis email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
>>>>> I have a short example below. According to the manual, it says...
>>>>>
>>>>> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcsound.com%2Fdocs%2Fmanual%2Fi.html&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865181604%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=KNfUtrw6djfmZPFBFhaM0lQKqROyTI1%2BK6LjT6qqcvM%3D&amp;reserved=0
>>>>>
>>>>> p3 -- Duration time in beats (usually positive). A negative value will initiate a held note (see also ihold). A negative value can also be used for 'always on' instruments like reverberation. These notes are not terminated by s statements A zero value will invoke an initialization pass without performance (see also instr).
>>>>>
>>>>> <CsoundSynthesizer>
>>>>> <CsOptions>
>>>>> -n -d
>>>>> </CsOptions>
>>>>> <CsInstruments>
>>>>> ; Initialize the global variables.
>>>>> ksmps = 32
>>>>> nchnls = 2
>>>>> 0dbfs = 1
>>>>>
>>>>> instr 99
>>>>>    prints("starting %d\n", p4)
>>>>>
>>>>>    if metro(1) == 1 then
>>>>>        printks("tick (%d)\n", 0, p4)
>>>>>    endif
>>>>> endin
>>>>>
>>>>> </CsInstruments>
>>>>> <CsScore>
>>>>> i 99 0 10 1
>>>>> i 99 0 -1 2
>>>>> i 99 0 z  3
>>>>> i 99 0 0 4
>>>>> </CsScore>
>>>>> </CsoundSynthesizer>
>>>>>
>>>>>
>>>>> So, why doesn't the number 2 instance execute at the k-rate? It used to. It does execute the i-rate.
>>>>>
>>>>> Mike
>>>>> Csound mailing list Csound@listserv.heanet.ie https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865181604%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=vcn3k5UP%2FuBtb3sJOsHksHTB2R55HdzHvKMtWg5DWSg%3D&amp;reserved=0 Send bugs reports to https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865181604%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=tgQg7SvAEwaecYvBDAD1E%2FrmiBRpezE7QPesuQ2jEn8%3D&amp;reserved=0 Discussions of bugs and features can be posted here
>>>>
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865181604%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=vcn3k5UP%2FuBtb3sJOsHksHTB2R55HdzHvKMtWg5DWSg%3D&amp;reserved=0
>>>> Send bugs reports to
>>>>        https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865181604%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=tgQg7SvAEwaecYvBDAD1E%2FrmiBRpezE7QPesuQ2jEn8%3D&amp;reserved=0
>>>> Discussions of bugs and features can be posted here
>>>> Csound mailing list Csound@listserv.heanet.ie https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=EVdLCped787eBVK%2FACuaB4JdhEGkbjI0QoOi24O0%2BR4%3D&amp;reserved=0 Send bugs reports to https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=A1N2M%2BXoC540YhRzo2oRYgpqkMpx369bK9vOqUFtxO8%3D&amp;reserved=0 Discussions of bugs and features can be posted here
>>> Csound mailing list Csound@listserv.heanet.ie https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=EVdLCped787eBVK%2FACuaB4JdhEGkbjI0QoOi24O0%2BR4%3D&amp;reserved=0 Send bugs reports to https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=A1N2M%2BXoC540YhRzo2oRYgpqkMpx369bK9vOqUFtxO8%3D&amp;reserved=0 Discussions of bugs and features can be posted here
>>> Csound mailing list Csound@listserv.heanet.ie https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=EVdLCped787eBVK%2FACuaB4JdhEGkbjI0QoOi24O0%2BR4%3D&amp;reserved=0 Send bugs reports to https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=A1N2M%2BXoC540YhRzo2oRYgpqkMpx369bK9vOqUFtxO8%3D&amp;reserved=0 Discussions of bugs and features can be posted here
>> Csound mailing list Csound@listserv.heanet.ie https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=EVdLCped787eBVK%2FACuaB4JdhEGkbjI0QoOi24O0%2BR4%3D&amp;reserved=0 Send bugs reports to https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=A1N2M%2BXoC540YhRzo2oRYgpqkMpx369bK9vOqUFtxO8%3D&amp;reserved=0 Discussions of bugs and features can be posted here
>> Csound mailing list Csound@listserv.heanet.ie https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=EVdLCped787eBVK%2FACuaB4JdhEGkbjI0QoOi24O0%2BR4%3D&amp;reserved=0 Send bugs reports to https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=A1N2M%2BXoC540YhRzo2oRYgpqkMpx369bK9vOqUFtxO8%3D&amp;reserved=0 Discussions of bugs and features can be posted here
>
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=EVdLCped787eBVK%2FACuaB4JdhEGkbjI0QoOi24O0%2BR4%3D&amp;reserved=0
> Send bugs reports to
>        https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=A1N2M%2BXoC540YhRzo2oRYgpqkMpx369bK9vOqUFtxO8%3D&amp;reserved=0
> 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

Date2022-10-16 17:00
From"Dr. Richard Boulanger"
SubjectRe: [Csnd] [EXTERNAL] [Csnd] Instr score durations
I am so happy that you and victor have been working on this and sharing it.
- maybe a good set of examples for the manual (menno?).

f0 z
always on
turnon
p3 with -1

are always tricky and confusing to many of my students (and me too!)

- Dr.B


Dr. Richard Boulanger

Professor

Electronic Production and Design

Berklee College of Music

Professional Writing & Technology Division



On Sun, Oct 16, 2022 at 11:54 AM Mike McGonagle <mjmogo@gmail.com> wrote:
Victor, thank you for your patience. I finally understand what it is I am doing wrong.

Mike

On Sun, Oct 16, 2022 at 10:46 AM Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
I should have completed: it will run forever like in the first example.

Why?

1 - in the first example, there is no numeric score, Csound runs forever. The scheduled instr 1  with p3=-1 will
run forever.

2 - in the second example, the first instr 1 with p3=-1 instance is immediately replaced by the instance with p3=1

3 - in the third example, the score runs to the end before any performance can be run.

4 - in the fourth example the score requires to run an f statement at time z (which is the end of times as far as we are concerned)
so Csound has to run until then. The i1 0 -1 then turns instrument 1 indefinitely on. 

========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 16 Oct 2022, at 16:39, Victor Lazzarini <Victor.Lazzarini@MU.IE> wrote:
>
> If you run one single instance of instr 1 with -1 it will run until Csound stops running. So the CSD
>
> <CsoundSynthesizer>
> <CsOptions>
> -odac
> </CsOptions>
> <CsInstruments>
> instr 1
> out oscili(0dbfs, A4)
> endin
> schedule(1,0,-1)
> </CsInstruments>
> <CsScore>
> </CsScore>
> </CsoundSynthesizer>
>
> Will run forever playing a 440Hz sine wave at full amplitude. But in this one
>
> <CsoundSynthesizer>
> <CsOptions>
> -odac
> </CsOptions>
> <CsInstruments>
> instr 1
> out oscili(0dbfs, A4)
> endin
> schedule(1,0,-1)
> schedule(1,0,1)
> </CsInstruments>
> <CsScore>
> </CsScore>
> </CsoundSynthesizer>
>
> the second instance will take over and run for 1 second.
>
> Equally
>
> <CsoundSynthesizer>
> <CsOptions>
> -odac
> </CsOptions>
> <CsInstruments>
> instr 1
> out oscili(0dbfs, A4)
> endin
> </CsInstruments>
> <CsScore>
> i1 0 -1
> </CsScore>
> </CsoundSynthesizer>
>
> will not even run because the performance will end immediately. But if you add f0 z
>
>
> <CsoundSynthesizer>
> <CsOptions>
> -odac
> </CsOptions>
> <CsInstruments>
> instr 1
> out oscili(0dbfs, A4)
> endin
> </CsInstruments>
> <CsScore>
> f0 z
> i1 0 -1
> </CsScore>
> </CsoundSynthesizer>
>
> ========================
> Prof. Victor Lazzarini
> Maynooth University
> Ireland
>
>> On 16 Oct 2022, at 16:03, Mike McGonagle <mjmogo@GMAIL.COM> wrote:
>>
>> WARNINGThis email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
>> I'm not sure what to say, but using -1 does not work for me anymore, unless I use an instr number with a fractional part.
>>
>> I'm suspecting that my copy of Csound is somehow corrupt. I just install Csound from the Cabbage bundle, so I was thinking about removing Csound altogether, and doing a fresh install.
>>
>> Mike
>>
>> On Sunday, October 16, 2022, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
>> You can still use p3 as -1 and it will run, there's nothing to say it wouldn't.
>>
>> However if you have another i-statement (etc) with matching p1 (numbered or named), it will replace the instance instead of starting a new one.
>>
>> Prof. Victor Lazzarini
>> Maynooth University
>> Ireland
>>
>>> On 16 Oct 2022, at 05:10, Mike McGonagle <mjmogo@gmail.com> wrote:
>>>
>>> 
>>> Ok, was able to try these things again, and I effectively ran each line by themselves, and I didn't get any different results. 1, 3, & 4 worked, as expected. But 2 still only ran during the i-rate. When I changed the instr called to 99.1, 2 ran as it should have.
>>>
>>> Maybe this isn't exactly as I have been using these things because I normally use named instr's. But I still swear that I have been able to use -1 to run these instr's... Anyway, I'll just start to use the 'z' option for the duration in a score.
>>>
>>> Mike
>>>
>>> On Sat, Oct 15, 2022 at 2:40 PM Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
>>> What you showed here is the normal behaviour of the software, it has always worked like that.
>>>
>>> Depending on how you are running, setting a p3 to -1 may not keep Csound running indefinitely. You may need to use f 0 z or something similar.
>>>
>>> Prof. Victor Lazzarini
>>> Maynooth University
>>> Ireland
>>>
>>>> On 15 Oct 2022, at 19:58, Mike McGonagle <mjmogo@gmail.com> wrote:
>>>>
>>>> 
>>>> Thanks, Victor. I'll check it again tonight. This problems arose with using just a single instance of an instr. -1 wouldn't work at k-rate, and Rory suggested trying 'z', which worked.
>>>>
>>>> Just trying to figure out while all of a sudden this is happening.
>>>>
>>>> Mike
>>>>
>>>> On Sat, Oct 15, 2022, 12:53 PM Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
>>>> Try 
>>>>
>>>> i 99 0 10 1
>>>> i 99.1 0 -1 2
>>>> i 99 0 z  3
>>>> i 99 0 0 4
>>>>
>>>> and you will get your printouts.
>>>>
>>>> The reason is that you start a negative p3 and then immediately it gets replaced by the positive matching p1 following it and
>>>> so you only have 2 instances running. If instead you mark the negative p3 with a specific instance number, then it
>>>> can only be replaced with a matching p1.
>>>>
>>>> From the same page in the manual
>>>>
>>>> "An instrument may be turned on and left to perform indefinitely either by giving it a negative p3 or by including an ihold in its i-time code. If a held note is active, an i statement with matching p1 will not cause a new allocation but will take over the data space of the held note."
>>>>
>>>>
>>>> ========================
>>>> Prof. Victor Lazzarini
>>>> Maynooth University
>>>> Ireland
>>>>
>>>>> On 15 Oct 2022, at 17:09, Mike McGonagle <mjmogo@GMAIL.COM> wrote:
>>>>>
>>>>> WARNINGThis email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
>>>>> I have a short example below. According to the manual, it says...
>>>>>
>>>>> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcsound.com%2Fdocs%2Fmanual%2Fi.html&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865181604%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=KNfUtrw6djfmZPFBFhaM0lQKqROyTI1%2BK6LjT6qqcvM%3D&amp;reserved=0
>>>>>
>>>>> p3 -- Duration time in beats (usually positive). A negative value will initiate a held note (see also ihold). A negative value can also be used for 'always on' instruments like reverberation. These notes are not terminated by s statements A zero value will invoke an initialization pass without performance (see also instr).
>>>>>
>>>>> <CsoundSynthesizer>
>>>>> <CsOptions>
>>>>> -n -d
>>>>> </CsOptions>
>>>>> <CsInstruments>
>>>>> ; Initialize the global variables.
>>>>> ksmps = 32
>>>>> nchnls = 2
>>>>> 0dbfs = 1
>>>>>
>>>>> instr 99
>>>>>    prints("starting %d\n", p4)
>>>>>
>>>>>    if metro(1) == 1 then
>>>>>        printks("tick (%d)\n", 0, p4)
>>>>>    endif
>>>>> endin
>>>>>
>>>>> </CsInstruments>
>>>>> <CsScore>
>>>>> i 99 0 10 1
>>>>> i 99 0 -1 2
>>>>> i 99 0 z  3
>>>>> i 99 0 0 4
>>>>> </CsScore>
>>>>> </CsoundSynthesizer>
>>>>>
>>>>>
>>>>> So, why doesn't the number 2 instance execute at the k-rate? It used to. It does execute the i-rate.
>>>>>
>>>>> Mike
>>>>> Csound mailing list Csound@listserv.heanet.ie https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865181604%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=vcn3k5UP%2FuBtb3sJOsHksHTB2R55HdzHvKMtWg5DWSg%3D&amp;reserved=0 Send bugs reports to https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865181604%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=tgQg7SvAEwaecYvBDAD1E%2FrmiBRpezE7QPesuQ2jEn8%3D&amp;reserved=0 Discussions of bugs and features can be posted here
>>>>
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865181604%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=vcn3k5UP%2FuBtb3sJOsHksHTB2R55HdzHvKMtWg5DWSg%3D&amp;reserved=0
>>>> Send bugs reports to
>>>>        https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865181604%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=tgQg7SvAEwaecYvBDAD1E%2FrmiBRpezE7QPesuQ2jEn8%3D&amp;reserved=0
>>>> Discussions of bugs and features can be posted here
>>>> Csound mailing list Csound@listserv.heanet.ie https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=EVdLCped787eBVK%2FACuaB4JdhEGkbjI0QoOi24O0%2BR4%3D&amp;reserved=0 Send bugs reports to https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=A1N2M%2BXoC540YhRzo2oRYgpqkMpx369bK9vOqUFtxO8%3D&amp;reserved=0 Discussions of bugs and features can be posted here
>>> Csound mailing list Csound@listserv.heanet.ie https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=EVdLCped787eBVK%2FACuaB4JdhEGkbjI0QoOi24O0%2BR4%3D&amp;reserved=0 Send bugs reports to https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=A1N2M%2BXoC540YhRzo2oRYgpqkMpx369bK9vOqUFtxO8%3D&amp;reserved=0 Discussions of bugs and features can be posted here
>>> Csound mailing list Csound@listserv.heanet.ie https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=EVdLCped787eBVK%2FACuaB4JdhEGkbjI0QoOi24O0%2BR4%3D&amp;reserved=0 Send bugs reports to https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=A1N2M%2BXoC540YhRzo2oRYgpqkMpx369bK9vOqUFtxO8%3D&amp;reserved=0 Discussions of bugs and features can be posted here
>> Csound mailing list Csound@listserv.heanet.ie https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=EVdLCped787eBVK%2FACuaB4JdhEGkbjI0QoOi24O0%2BR4%3D&amp;reserved=0 Send bugs reports to https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=A1N2M%2BXoC540YhRzo2oRYgpqkMpx369bK9vOqUFtxO8%3D&amp;reserved=0 Discussions of bugs and features can be posted here
>> Csound mailing list Csound@listserv.heanet.ie https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=EVdLCped787eBVK%2FACuaB4JdhEGkbjI0QoOi24O0%2BR4%3D&amp;reserved=0 Send bugs reports to https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=A1N2M%2BXoC540YhRzo2oRYgpqkMpx369bK9vOqUFtxO8%3D&amp;reserved=0 Discussions of bugs and features can be posted here
>
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=EVdLCped787eBVK%2FACuaB4JdhEGkbjI0QoOi24O0%2BR4%3D&amp;reserved=0
> Send bugs reports to
>        https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=A1N2M%2BXoC540YhRzo2oRYgpqkMpx369bK9vOqUFtxO8%3D&amp;reserved=0
> 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

Date2022-10-16 17:28
FromVictor Lazzarini
SubjectRe: [Csnd] [EXTERNAL] [Csnd] Instr score durations
I posted this to the list a while ago, that is the beta Rory asked for

==============
This is the link for the installer Rory was talking about. This is a 6.18-beta built on the 29/09, should run on all arm64 and x86_64 machines.

https://maynoothuniversity-my.sharepoint.com/:u:/g/personal/victor_lazzarini_mu_ie/EUCB92fsthBElk9nDPpWVK4BAAsXl-jGM4z2Uvb42jx8fw?e=0sulIG

Note that CsoundQT and Cabbage are currently only built for x86_64.
========================
Prof. Victor Lazzarini
Maynooth University
Ireland


========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 16 Oct 2022, at 17:00, Dr. Richard Boulanger  wrote:
> 
> I am so happy that you and victor have been working on this and sharing it.
> - maybe a good set of examples for the manual (menno?).
> 
> f0 z
> always on
> turnon
> p3 with -1
> 
> are always tricky and confusing to many of my students (and me too!)
> 
> - Dr.B
> 
> Dr. Richard Boulanger
> Professor
> Electronic Production and Design
> Berklee College of Music
> Professional Writing & Technology Division
> 
> 
> On Sun, Oct 16, 2022 at 11:54 AM Mike McGonagle  wrote:
> Victor, thank you for your patience. I finally understand what it is I am doing wrong.
> 
> Mike
> 
> On Sun, Oct 16, 2022 at 10:46 AM Victor Lazzarini  wrote:
> I should have completed: it will run forever like in the first example.
> 
> Why?
> 
> 1 - in the first example, there is no numeric score, Csound runs forever. The scheduled instr 1  with p3=-1 will
> run forever.
> 
> 2 - in the second example, the first instr 1 with p3=-1 instance is immediately replaced by the instance with p3=1
> 
> 3 - in the third example, the score runs to the end before any performance can be run.
> 
> 4 - in the fourth example the score requires to run an f statement at time z (which is the end of times as far as we are concerned)
> so Csound has to run until then. The i1 0 -1 then turns instrument 1 indefinitely on.  
> 
> ========================
> Prof. Victor Lazzarini
> Maynooth University
> Ireland
> 
> > On 16 Oct 2022, at 16:39, Victor Lazzarini  wrote:
> > 
> > If you run one single instance of instr 1 with -1 it will run until Csound stops running. So the CSD
> > 
> > 
> > 
> > -odac
> > 
> > 
> > instr 1
> > out oscili(0dbfs, A4)
> > endin
> > schedule(1,0,-1)
> > 
> > 
> > 
> > 
> > 
> > Will run forever playing a 440Hz sine wave at full amplitude. But in this one
> > 
> > 
> > 
> > -odac
> > 
> > 
> > instr 1
> > out oscili(0dbfs, A4)
> > endin
> > schedule(1,0,-1)
> > schedule(1,0,1)
> > 
> > 
> > 
> > 
> > 
> > the second instance will take over and run for 1 second. 
> > 
> > Equally
> > 
> > 
> > 
> > -odac
> > 
> > 
> > instr 1
> > out oscili(0dbfs, A4)
> > endin
> > 
> > 
> > i1 0 -1
> > 
> > 
> > 
> > will not even run because the performance will end immediately. But if you add f0 z
> > 
> > 
> > 
> > 
> > -odac
> > 
> > 
> > instr 1
> > out oscili(0dbfs, A4)
> > endin
> > 
> > 
> > f0 z
> > i1 0 -1
> > 
> > 
> > 
> > ========================
> > Prof. Victor Lazzarini
> > Maynooth University
> > Ireland
> > 
> >> On 16 Oct 2022, at 16:03, Mike McGonagle  wrote:
> >> 
> >> WARNINGThis email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
> >> I'm not sure what to say, but using -1 does not work for me anymore, unless I use an instr number with a fractional part.
> >> 
> >> I'm suspecting that my copy of Csound is somehow corrupt. I just install Csound from the Cabbage bundle, so I was thinking about removing Csound altogether, and doing a fresh install.
> >> 
> >> Mike
> >> 
> >> On Sunday, October 16, 2022, Victor Lazzarini  wrote:
> >> You can still use p3 as -1 and it will run, there's nothing to say it wouldn't.
> >> 
> >> However if you have another i-statement (etc) with matching p1 (numbered or named), it will replace the instance instead of starting a new one.
> >> 
> >> Prof. Victor Lazzarini
> >> Maynooth University
> >> Ireland
> >> 
> >>> On 16 Oct 2022, at 05:10, Mike McGonagle  wrote:
> >>> 
> >>> 
> >>> Ok, was able to try these things again, and I effectively ran each line by themselves, and I didn't get any different results. 1, 3, & 4 worked, as expected. But 2 still only ran during the i-rate. When I changed the instr called to 99.1, 2 ran as it should have.
> >>> 
> >>> Maybe this isn't exactly as I have been using these things because I normally use named instr's. But I still swear that I have been able to use -1 to run these instr's... Anyway, I'll just start to use the 'z' option for the duration in a score.
> >>> 
> >>> Mike
> >>> 
> >>> On Sat, Oct 15, 2022 at 2:40 PM Victor Lazzarini  wrote:
> >>> What you showed here is the normal behaviour of the software, it has always worked like that.
> >>> 
> >>> Depending on how you are running, setting a p3 to -1 may not keep Csound running indefinitely. You may need to use f 0 z or something similar.
> >>> 
> >>> Prof. Victor Lazzarini
> >>> Maynooth University
> >>> Ireland
> >>> 
> >>>> On 15 Oct 2022, at 19:58, Mike McGonagle  wrote:
> >>>> 
> >>>> 
> >>>> Thanks, Victor. I'll check it again tonight. This problems arose with using just a single instance of an instr. -1 wouldn't work at k-rate, and Rory suggested trying 'z', which worked.
> >>>> 
> >>>> Just trying to figure out while all of a sudden this is happening.
> >>>> 
> >>>> Mike
> >>>> 
> >>>> On Sat, Oct 15, 2022, 12:53 PM Victor Lazzarini  wrote:
> >>>> Try  
> >>>> 
> >>>> i 99 0 10 1
> >>>> i 99.1 0 -1 2
> >>>> i 99 0 z  3
> >>>> i 99 0 0 4
> >>>> 
> >>>> and you will get your printouts. 
> >>>> 
> >>>> The reason is that you start a negative p3 and then immediately it gets replaced by the positive matching p1 following it and
> >>>> so you only have 2 instances running. If instead you mark the negative p3 with a specific instance number, then it 
> >>>> can only be replaced with a matching p1.
> >>>> 
> >>>> From the same page in the manual
> >>>> 
> >>>> "An instrument may be turned on and left to perform indefinitely either by giving it a negative p3 or by including an ihold in its i-time code. If a held note is active, an i statement with matching p1 will not cause a new allocation but will take over the data space of the held note." 
> >>>> 
> >>>> 
> >>>> ========================
> >>>> Prof. Victor Lazzarini
> >>>> Maynooth University
> >>>> Ireland
> >>>> 
> >>>>> On 15 Oct 2022, at 17:09, Mike McGonagle  wrote:
> >>>>> 
> >>>>> WARNINGThis email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
> >>>>> I have a short example below. According to the manual, it says...
> >>>>> 
> >>>>> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcsound.com%2Fdocs%2Fmanual%2Fi.html&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865181604%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=KNfUtrw6djfmZPFBFhaM0lQKqROyTI1%2BK6LjT6qqcvM%3D&reserved=0
> >>>>> 
> >>>>> p3 -- Duration time in beats (usually positive). A negative value will initiate a held note (see also ihold). A negative value can also be used for 'always on' instruments like reverberation. These notes are not terminated by s statements A zero value will invoke an initialization pass without performance (see also instr).
> >>>>> 
> >>>>> 
> >>>>> 
> >>>>> -n -d 
> >>>>> 
> >>>>> 
> >>>>> ; Initialize the global variables. 
> >>>>> ksmps = 32
> >>>>> nchnls = 2
> >>>>> 0dbfs = 1
> >>>>> 
> >>>>> instr 99
> >>>>>    prints("starting %d\n", p4)
> >>>>> 
> >>>>>    if metro(1) == 1 then
> >>>>>        printks("tick (%d)\n", 0, p4)
> >>>>>    endif
> >>>>> endin
> >>>>> 
> >>>>> 
> >>>>> 
> >>>>> i 99 0 10 1
> >>>>> i 99 0 -1 2
> >>>>> i 99 0 z  3
> >>>>> i 99 0 0 4
> >>>>> 
> >>>>> 
> >>>>> 
> >>>>> 
> >>>>> So, why doesn't the number 2 instance execute at the k-rate? It used to. It does execute the i-rate.
> >>>>> 
> >>>>> Mike
> >>>>> Csound mailing list Csound@listserv.heanet.ie https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865181604%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=vcn3k5UP%2FuBtb3sJOsHksHTB2R55HdzHvKMtWg5DWSg%3D&reserved=0 Send bugs reports to https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865181604%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=tgQg7SvAEwaecYvBDAD1E%2FrmiBRpezE7QPesuQ2jEn8%3D&reserved=0 Discussions of bugs and features can be posted here
> >>>> 
> >>>> Csound mailing list
> >>>> Csound@listserv.heanet.ie
> >>>> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865181604%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=vcn3k5UP%2FuBtb3sJOsHksHTB2R55HdzHvKMtWg5DWSg%3D&reserved=0
> >>>> Send bugs reports to
> >>>>        https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865181604%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=tgQg7SvAEwaecYvBDAD1E%2FrmiBRpezE7QPesuQ2jEn8%3D&reserved=0
> >>>> Discussions of bugs and features can be posted here
> >>>> Csound mailing list Csound@listserv.heanet.ie https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=EVdLCped787eBVK%2FACuaB4JdhEGkbjI0QoOi24O0%2BR4%3D&reserved=0 Send bugs reports to https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=A1N2M%2BXoC540YhRzo2oRYgpqkMpx369bK9vOqUFtxO8%3D&reserved=0 Discussions of bugs and features can be posted here
> >>> Csound mailing list Csound@listserv.heanet.ie https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=EVdLCped787eBVK%2FACuaB4JdhEGkbjI0QoOi24O0%2BR4%3D&reserved=0 Send bugs reports to https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=A1N2M%2BXoC540YhRzo2oRYgpqkMpx369bK9vOqUFtxO8%3D&reserved=0 Discussions of bugs and features can be posted here
> >>> Csound mailing list Csound@listserv.heanet.ie https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=EVdLCped787eBVK%2FACuaB4JdhEGkbjI0QoOi24O0%2BR4%3D&reserved=0 Send bugs reports to https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=A1N2M%2BXoC540YhRzo2oRYgpqkMpx369bK9vOqUFtxO8%3D&reserved=0 Discussions of bugs and features can be posted here
> >> Csound mailing list Csound@listserv.heanet.ie https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=EVdLCped787eBVK%2FACuaB4JdhEGkbjI0QoOi24O0%2BR4%3D&reserved=0 Send bugs reports to https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=A1N2M%2BXoC540YhRzo2oRYgpqkMpx369bK9vOqUFtxO8%3D&reserved=0 Discussions of bugs and features can be posted here
> >> Csound mailing list Csound@listserv.heanet.ie https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=EVdLCped787eBVK%2FACuaB4JdhEGkbjI0QoOi24O0%2BR4%3D&reserved=0 Send bugs reports to https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=A1N2M%2BXoC540YhRzo2oRYgpqkMpx369bK9vOqUFtxO8%3D&reserved=0 Discussions of bugs and features can be posted here
> > 
> > 
> > Csound mailing list
> > Csound@listserv.heanet.ie
> > https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=EVdLCped787eBVK%2FACuaB4JdhEGkbjI0QoOi24O0%2BR4%3D&reserved=0
> > Send bugs reports to
> >        https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C82d165ef6f4a4185b5be08daaf8ca63f%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638015315865337649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=A1N2M%2BXoC540YhRzo2oRYgpqkMpx369bK9vOqUFtxO8%3D&reserved=0
> > 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