Requires: bass.dll - available @ www.un4seen.com
Un4seen.Bass.MiscVisuals
Namespace: Un4seen.Bass.Misc
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
The Visuals type exposes the following members.
Name | Description | |
---|---|---|
Visuals |
Default constructor. Simply create an instance and use it.
|
Name | Description | |
---|---|---|
ChannelIsMixerSource |
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=).
| |
MaxFFT |
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).
| |
MaxFFTData |
Gets the number of FFT data used (see MaxFFT (Defaut is 4096).
| |
MaxFFTSampleIndex |
Gets the maximum FFT data index which can be used (according to MaxFFT, default is 2047).
| |
MaxFrequencySpectrum |
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. | |
ScaleFactorLinear |
Gets or Sets the scaling factor to apply when linear spectrum drawing is selected. (Default=9).
| |
ScaleFactorLinearBoost |
Gets or Sets the boost factor for higher frequencies to apply when linear spectrum drawing is selected. (Default=0.05).
| |
ScaleFactorSqr |
Gets or Sets the scaling factor to apply when non-linear spectrum drawing is selected to make low values more visible. (Default=4).
| |
ScaleFactorSqrBoost |
Gets or Sets the boost factor for higher frequencies to apply when non-linear spectrum drawing is selected. (Default=0.005).
|
The Visuals class is an internal implementation of the BASS.NET API and does not require any additional extension or add-on to the BASS audio library, meaning only bass.dll is required.
There is the need to create an instance of the class in order to use it!
Most create spectrum methods have two overloads. One which directly creates a bitmap image (e.g. to be used with a PictureBox) and one which receives a Graphics GDI+ object (e.g. to be used when you build your own custom components).
Take a look at the Simple.cs demo code for a list of all spectrum graphs available. All methods accept a long list of parameters to even customize each spectrum graph.