Method | Description | |
---|---|---|
CopyTo ( |
Copies this signal to a given array.
|
|
CopyTo ( double array ) : void |
Copies this signal to a given array.
|
|
CopyTo ( float array ) : void |
Copies this signal to a given array.
|
|
Dispose ( ) : void |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
|
DurationOfSamples ( int samples, int samplingRate ) : int |
Gets the duration of each sample in a signal with the given number of samples and sampling rate.
|
|
FromArray ( |
Creates a new Signal from a float array.
|
|
FromArray ( |
Creates a new Signal from a float array.
|
|
FromArray ( |
Creates a new Signal from a float array.
|
|
GetEnergy ( ) : double |
Computes the signal energy.
|
|
GetSample ( int channel, int position ) : float |
Gets the value of the specified sample in the Signal.
|
|
GetSampleSize ( SampleFormat format ) : int |
Gets the size (in bits) of a sample format.
|
|
NumberOfSamples ( int duration, int samplingRate ) : int |
Gets the number of samples contained in a signal of given duration and sampling rate.
|
|
SetSample ( int channel, int position, float value ) : void |
Sets the value of the specified sample in the Signal.
|
|
Signal ( byte data, int channels, int length, int sampleRate, SampleFormat format ) : System |
Constructs a new signal.
|
|
Signal ( int channels, int length, int sampleRate, SampleFormat format ) : System |
Constructs a new Signal.
|
|
ToComplex ( ) : |
Converts this signal to a ComplexSignal object.
|
|
ToDouble ( ) : double[] |
Converts this signal into a array of floating-point samples.
|
|
ToFloat ( ) : float[] |
Converts this signal into a array of floating-point samples.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Releases unmanaged and - optionally - managed resources
|
Method | Description | |
---|---|---|
init ( byte data, int channels, int length, int sampleRate, SampleFormat format ) : void |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
return | void |
public static DurationOfSamples ( int samples, int samplingRate ) : int | ||
samples | int | |
samplingRate | int | |
return | int |
public static FromArray ( |
||
signal | ||
sampleRate | int | |
format | SampleFormat | |
return |
public static FromArray ( |
||
signal | ||
channels | int | |
sampleRate | int | |
format | SampleFormat | |
return |
public static FromArray ( |
||
signal | ||
size | int | |
channels | int | |
sampleRate | int | |
format | SampleFormat | |
return |
public GetSample ( int channel, int position ) : float | ||
channel | int | The channel's index of the sample to set. |
position | int | The position of the sample to set. |
return | float |
public static GetSampleSize ( SampleFormat format ) : int | ||
format | SampleFormat | |
return | int |
public static NumberOfSamples ( int duration, int samplingRate ) : int | ||
duration | int | |
samplingRate | int | |
return | int |
public SetSample ( int channel, int position, float value ) : void | ||
channel | int | The channel's index of the sample to set. |
position | int | The position of the sample to set. |
value | float | A floating-point value ranging from -1 to 1 /// specifying the value to set. Conversion will be done automatically /// to the underlying signal sample format if supported. |
return | void |
public Signal ( byte data, int channels, int length, int sampleRate, SampleFormat format ) : System | ||
data | byte | The raw data for the signal. |
channels | int | The number of channels for the signal. |
length | int | The length of the signal. |
sampleRate | int | The sample date of the signal. |
format | SampleFormat | The sample format for the signal. |
return | System |
public Signal ( int channels, int length, int sampleRate, SampleFormat format ) : System | ||
channels | int | The number of channels for the signal. |
length | int | The length of the signal. |
sampleRate | int | The sample date of the signal. |
format | SampleFormat | The sample format for the signal. |
return | System |