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

25 lines
591 B
Text
Raw Permalink Normal View History

2022-08-24 13:53:18 +00:00
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.
::