Click or drag to resize
Accord.NET (logo)

SignalGetSample Method

Gets the value of the specified sample in the Signal.

Namespace:  Accord.Audio
Assembly:  Accord.Audio (in Accord.Audio.dll) Version: 3.8.0
public float GetSample(
	int channel,
	int position
Request Example View Source


Type: SystemInt32
The channel's index of the sample to set.
Type: SystemInt32
The position of the sample to set.

Return Value

Type: Single
A floating-point value ranging from -1 to 1 representing the retrieved value. Conversion is performed automatically from the underlying signal sample format if supported.
See Also