BASS.NET API for the Un4seen BASS Audio Library

VisualsCreateSpectrum3DVoicePrint 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: 2.4.17.5
Syntax

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

Parameters

channel
Type: SystemInt32
The channel for which to create the spectrum graph.
g
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)).
clipRectangle
Type: System.DrawingRectangle
The rectangle describing the size of the wave form to draw (ie. can be taken directly from a PaintEventArgs).
color1
Type: System.DrawingColor
The base color of the 3D voice print (only the RED component is taken).
color2
Type: System.DrawingColor
The color of the position marker.
pos
Type: SystemInt32
The position where to plot the 3D line
linear
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).
fullSpectrum
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 .
Remarks

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

Reference