Csound Csound-dev Csound-tekno Search About

Re: find out instrument number

Date1997-10-13 23:29
Fromtlv@tuna.net
SubjectRe: find out instrument number
> From: Jacob Weber 
> Subject: Can an instrument recognize itself?
> To: csound
>
> However, to select the appropriate ftable, I need to know which notes are
> being played with which channel. Is there any way that an instrument, such
> as the one above, can find out which instrument number is being used?

The instrument number is the first parameter in the score
statement, so you can get it inside the instrument from the
parameter "p1". (I hope, don't know when instr is invoked from MIDI)

cheers,

	re