|
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
Syntax public float GetSample(
int channel,
int position
)
Public Function GetSample (
channel As Integer,
position As Integer
) As Single
Request Example
View SourceParameters
- channel
- Type: SystemInt32
The channel's index of the sample to set. - position
- Type: SystemInt32
The position of the sample to set.
Return Value
Type:
SingleA 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