ftchnlsTable Control:Table Queriesftchnlsftchnls
Returns the number of channels in a stored function table.
Description
Returns the number of channels in a stored function table.
Syntaxftchnls(x) (init-rate args only)Performance
Returns the number of channels of a GEN01 table, determined from the header of the original file. If the original file has no header or the table was not created by these GEN01, ftchnls returns -1.
Examples
Here is an example of the ftchnls opcode. It uses the files ftchnls.csd, drumsMlp.wav, and drumsSlp.wav.
Example of the ftchnls opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.
The audio file drumsMlp.wav is monophonic, the audio file drumsSlp.wav is stereophonic, so its output should include lines like these:
number of channels = 1
number of channels = 2
See alsoTable Control:Table QueriesCreditsAuthor: Chris McCormickPerth, AustraliaDecember 2001