The manual states that:
Opcodes may access the standard names of the
instrument that calls the opcode, directly or indirectly
(through a nested opcode call). However, the variables and
parameters of the caller are not visible.
I am having trouble using the 'dur' standard name from a
calling instrument.
If I define an opcode like this:
kopcode up_down( ivar when ){
return(kline( 0, when, 1, dur - when, 0));
}
Then there is no error, but the 'dur' value is received as 0.
If I go:
kopcode up_down( ivar when, ivar dura ){
return(kline( 0, when, 1, dura - when, 0));
}
and pass in 'dur' from the calling instrument as the second
parameter, then everything works like expected.
Is this how it should be?
Thanks,
Tobiah
This archive was generated by hypermail 2b29 : Mon Jan 28 2002 - 11:46:41 EST