Csound Csound-dev Csound-tekno Search About

[Csnd] access -t value in orchestra at init

Date2024-06-07 14:55
FromSUBSCRIBE CSOUND Anonymous <00000c641a512f08-dmarc-request@LISTSERV.HEANET.IE>
Subject[Csnd] access -t value in orchestra at init
How can I access the -t value inside the orchestra at init time?

if I do this:

instr 1
ktempo tempoval
prints "TEMPO %f \n", i(ktempo)
endin

i have 0.0.

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

Date2024-06-07 15:31
FromVictor Lazzarini <000010b17ddd988e-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] [EXTERNAL] [Csnd] access -t value in orchestra at init
The value of a k variable may not be meaningful at i-time. Check the manual example.

Prof. Victor Lazzarini
Maynooth University
Ireland

> On 7 Jun 2024, at 14:56, SUBSCRIBE CSOUND Anonymous <00000c641a512f08-dmarc-request@listserv.heanet.ie> wrote:
>
> *Warning*
>
> This 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.
>
> How can I access the -t value inside the orchestra at init time?
>
> if I do this:
>
> instr 1
> ktempo tempoval
> prints "TEMPO %f \n", i(ktempo)
> endin
>
> i have 0.0.
>
> 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

Date2024-06-07 15:36
FromSUBSCRIBE CSOUND Anonymous <00000c641a512f08-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] [EXTERNAL] [Csnd] access -t value in orchestra at init
Yes, thank you.
The question is if there is a way to access the -t value inside the orchestra at init time, for exemple if I put "-t 0 135", is there a way to get “135” at init time?

> On 7 Jun 2024, at 16:31, Victor Lazzarini <000010b17ddd988e-dmarc-request@LISTSERV.HEANET.IE> wrote:
> 
> The value of a k variable may not be meaningful at i-time. Check the manual example.
> 
> Prof. Victor Lazzarini
> Maynooth University
> Ireland
> 
>> On 7 Jun 2024, at 14:56, SUBSCRIBE CSOUND Anonymous <00000c641a512f08-dmarc-request@listserv.heanet.ie> wrote:
>> 
>> *Warning*
>> 
>> This 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.
>> 
>> How can I access the -t value inside the orchestra at init time?
>> 
>> if I do this:
>> 
>> instr 1
>> ktempo tempoval
>> prints "TEMPO %f \n", i(ktempo)
>> endin
>> 
>> i have 0.0.
>> 
>> 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

Date2024-06-07 21:31
Fromvlz
SubjectRe: [Csnd] [EXTERNAL] [Csnd] access -t value in orchestra at init
You have to run at least 1 perf cycle. For example you can run the instrument twice and
in the second time, the k-var will hold the value it had when the instrument last run,
so if you print it, it will have the -t  value at i-time.

instr 1
 k1 tempoval 
      print i(k1)
endin

schedule(1,0,1/kr)
schedule(1,1/kr,0)

There’s currently no i-time version of tempoval. 

> On 7 Jun 2024, at 15:36, SUBSCRIBE CSOUND Anonymous <00000c641a512f08-dmarc-request@LISTSERV.HEANET.IE> wrote:
> 
> Yes, thank you.
> The question is if there is a way to access the -t value inside the orchestra at init time, for exemple if I put "-t 0 135", is there a way to get “135” at init time?
> 
>> On 7 Jun 2024, at 16:31, Victor Lazzarini <000010b17ddd988e-dmarc-request@LISTSERV.HEANET.IE> wrote:
>> 
>> The value of a k variable may not be meaningful at i-time. Check the manual example.
>> 
>> Prof. Victor Lazzarini
>> Maynooth University
>> Ireland
>> 
>>> On 7 Jun 2024, at 14:56, SUBSCRIBE CSOUND Anonymous <00000c641a512f08-dmarc-request@listserv.heanet.ie> wrote:
>>> 
>>> *Warning*
>>> 
>>> This 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.
>>> 
>>> How can I access the -t value inside the orchestra at init time?
>>> 
>>> if I do this:
>>> 
>>> instr 1
>>> ktempo tempoval
>>> prints "TEMPO %f \n", i(ktempo)
>>> endin
>>> 
>>> i have 0.0.
>>> 
>>> 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