Re: [Csnd] [EXTERNAL] [Csnd] access -t value in orchestra at init

im sorry. still don't figure out how tempoval works.
in this exemple im trying to get the -t value from an instrument and even with printk2 i still get only 60 even if my -t starts with another value.

thanks !

<CsoundSynthesizer>
<CsOptions>
-odac
--sample-rate=48000
--nchnls=2
</CsOptions>

<CsInstruments>

  instr 1

ktempo tempoval
printk2 ktempo

  endin

</CsInstruments>
<CsScore>
t 0 25 5 61
i 1 0 5
e
</CsScore>
</CsoundSynthesizer>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        GitHub · Where software is built
Discussions of bugs and features can be posted here

The tempoval opcode returns the current tempo (e.g. as set by tempo or -t). That is unchanged at 60, the
t statement in the score does not change it.

Instead it basically pre-processes the start times/durations given in the score and presents those changes to
Csound. The tempo as detected by tempoval is unchanged, but the timing of the score events is modified.

I know it’s confusing, but it is what it is. The t preprocessing has been there since the start, then tempo/tempoval
were added later on top of it. You can only use one or the other (if you use -t all tempo preprocessing is disabled).

If you were to ask me, I think the score is a very antiquated/old-fashioned controller interface. I rarely use it
outside of testing/demonstrating it.

my only gripe with the score is nobody said “we need a way in the score to see multiple instruments on one line” and probably contributes to musicians everywhere pulling their hair out trying to write one.