rsc3/doc-schelp/HelpSource/Classes/BufChannels.schelp

24 lines
591 B
Text

class:: BufChannels
summary:: Current number of channels of soundfile in buffer.
related:: Classes/BufDur, Classes/BufFrames, Classes/BufRateScale, Classes/BufSampleRate, Classes/BufSamples
categories:: UGens>Buffer>Info
Description::
Get the current number of channels of soundfile.
classmethods::
method::kr, ir
argument::bufnum
Buffer index.
returns:: the current number of channels.
discussion::
warning::
The code::.ir:: method is not the safest choice.
Since a buffer can be reallocated at any time, using
code::.ir:: will not track the changes. Use code::.kr:: instead.
::