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.
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.