BASS.NET API for the Un4seen BASS Audio Library

Visuals Properties

BASS.NET API for the Un4seen BASS Audio Library

The Visuals type exposes the following members.

Properties

  NameDescription
Public propertyChannelIsMixerSource
Gets or Sets, if the channel being used in one of the Create methods (e.g. CreateSpectrum(Int32, Int32, Int32, Color, Color, Color, Boolean, Boolean, Boolean)) is a buffered mixer source channel. (Default=).
Public propertyMaxFFT
Gets or Sets the number of FFT data to get (can be either BASS_DATA_FFT512, BASS_DATA_FFT1024, BASS_DATA_FFT2048, BASS_DATA_FFT4096 or BASS_DATA_FFT8192 (Default is 4096).
Public propertyMaxFFTData
Gets the number of FFT data used (see MaxFFT (Defaut is 4096).
Public propertyMaxFFTSampleIndex
Gets the maximum FFT data index which can be used (according to MaxFFT, default is 2047).
Public propertyMaxFrequencySpectrum
Gets or Sets the maximum number of samples to use when the fullSpectrum option is used (Default=2047 - all).

By default the full spectrum is drawn, which are 2047 samples. With this option you might limit this, since very high frequencies are often not much relevant for a visual display. You might use the FFTFrequency2Index(Int32, Int32, Int32) method with a length value of MaxFFTData here to calculate an index for a desired upper limit frequency. E.g. if you want to limit the full spectrum display to an upper limit of around 11843Hz with a stream having a sampling rate of 44100Hz you might set this value to 1100.

Public propertyScaleFactorLinear
Gets or Sets the scaling factor to apply when linear spectrum drawing is selected. (Default=9).
Public propertyScaleFactorLinearBoost
Gets or Sets the boost factor for higher frequencies to apply when linear spectrum drawing is selected. (Default=0.05).
Public propertyScaleFactorSqr
Gets or Sets the scaling factor to apply when non-linear spectrum drawing is selected to make low values more visible. (Default=4).
Public propertyScaleFactorSqrBoost
Gets or Sets the boost factor for higher frequencies to apply when non-linear spectrum drawing is selected. (Default=0.005).
Top
See Also

Reference