BASS.NET API for the Un4seen BASS Audio LibraryVisualsCreateSpectrum3DVoicePrint Method BASS.NET API for the Un4seen BASS Audio Library
Draws one line of a 3D voice print spectrum at the given position.

horizontal=time, vertical=frequency, color=amplitude

Namespace: Un4seen.Bass.Misc
Assembly: Bass.Net (in Bass.Net.dll) Version:

public bool CreateSpectrum3DVoicePrint(
	int channel,
	Graphics g,
	Rectangle clipRectangle,
	Color color1,
	Color color2,
	int pos,
	bool linear,
	bool fullSpectrum


Type: SystemInt32
The channel for which to create the spectrum graph.
Type: System.DrawingGraphics
The GDI+ graphics object where to draw the wave form (ie. can be taken directly from a PaintEventArgs or can be created using FromHwnd(IntPtr)).
Type: System.DrawingRectangle
The rectangle describing the size of the wave form to draw (ie. can be taken directly from a PaintEventArgs).
Type: System.DrawingColor
The base color of the 3D voice print (only the RED component is taken).
Type: System.DrawingColor
The color of the position marker.
Type: SystemInt32
The position where to plot the 3D line
Type: SystemBoolean
, if linear scaling (see ScaleFactorLinear) should be applied to the FFT data. , to scale by Sqr (see ScaleFactorSqr) to make low values more visible (recommended).
Type: SystemBoolean
, if the full frequency spectrum should be shown (across the whole width of the image). , if the width of the image should be use (in this case as much frequencies are shown - starting with the lower values - as fit into the width).

Return Value

Type: Boolean
, if successfully painted, else .

You need to call this method frequently and increase the position by 1 every time in order to plot the voice print over time.

The amplitude color (GREEN and BLUE component) is calculated from the FFT sample data (RED component is taken from the color1 parameter).

See Also