|
I've been thinking a lot about what Michael said in his most recently posted
signalflowgraph specification about implicitly qualified instrument names.
Michael Gogins-2 wrote:
>
> * The name of the outlet is implicitly qualified by the instrument name,
> * so it is valid to use the same outlet name in more than one instrument
> * (but not to use the same outlet name twice in the same instrument).
>
This function might be useful on its own. That is, the ability to get the
string name of a named instrument. It could work like this:
Sname strinstr
Sname strinstr [Sparam]
When strinstr is used without a parameter, the opcode returns the instrument
name. For example:
instr Foo
Sname strinstr
endin
Sname becomes "Foo". If the optional parameter is supplied, then the instr
name is concatenated with a period the parameter string.
instr Bar
Sname strinstr "cutoff"
endin
Sname in this case equals "Bar.cutoff".
Are there any potential uses for this?
Best,
Jake |