Copyright © 2006-2018 MultiMedia Soft

Spectrum.SetNumberOfBands method

Previous pageReturn to chapter overviewNext page



Sets the number of bands used to display the spectrum: by default the spectrum will create 64 bands covering all of the needed frequencies; when number of bands is reduced, frequencies will be redistributed into available bands.


For further details about using the embedded Spectrum refer to the Spectrum class section.

For details about using Visual Feedbacks refer to the How to use embedded Visual Feedbacks section.





[Visual Basic]

Public Function SetNumberOfBands (

nBands as Int16

) as enumErrorCodes



public enumErrorCodes SetNumberOfBands (

Int16 nBands




public: enumErrorCodes SetNumberOfBands (

Int16 nBands









Number of bands used to display the spectrum. Its value can range from 8 to 64 (default).



Return value






Negative value

An error occurred (see the LastError property for further error details)

enumErrorCodes.ERR_NOERROR (0)

The method call was successful.