Method | Description | |
---|---|---|
ApplyGain ( double gain ) : void |
Apply a gain (units) to the whole buffer.
|
|
ApplyWindow ( |
Apply a window to the whole buffer.
|
|
MaxPos ( ) : int | ||
MaxVal ( ) : double | ||
Normalize ( double dBfs ) : double |
Normalize the buffer so maximum value is at (dBfs)
|
|
Normalize ( double dBfs, bool doIt ) : double | ||
PadTo ( int n ) : void | ||
PadToPowerOfTwo ( ) : void | ||
Read ( int n, int &nn, bool &moreSamples ) : ISample[] | ||
ReadAll ( ) : int | ||
ReadComplex ( int n, int &nn, bool &moreSamples ) : Complex[][] | ||
ReadTo ( int n ) : bool | ||
SampleSubset ( int start, int count ) : IEnumerator |
Get an iterator for a subset of samples
|
|
Skip ( int n, int &nn, bool &moreSamples ) : void | ||
SoundBuffer ( ) : System | ||
SoundBuffer ( ISoundObj input ) : System | ||
SoundBuffer ( List |
||
Subset ( int start ) : ISoundObj | ||
Subset ( int start, int count ) : ISoundObj | ||
ToArray ( ) : ISample[] | ||
ToArray ( int startPos ) : ISample[] | ||
ToArray ( int startPos, int count ) : ISample[] | ||
ToComplexArray ( ) : Complex[][] | ||
ToComplexArray ( int startPos ) : Complex[][] | ||
ToComplexArray ( int startPos, int count ) : Complex[][] | ||
ToDoubleArray ( ) : double[][] |
Return the buffer contents as an array of doubles
|
|
ToDoubleArray ( int startPos ) : double[][] |
Return the buffer contents as an array of doubles
|
|
ToDoubleArray ( int startPos, int count ) : double[][] |
Return the buffer contents as an array of doubles
|
|
this ( int arg ) : ISample |
Method | Description | |
---|---|---|
FindMax ( ) : void |
public ApplyGain ( double gain ) : void | ||
gain | double | units to scale by |
return | void |
public ApplyWindow ( |
||
window | Cosine-based window to apply | |
return | void |
public Normalize ( double dBfs ) : double | ||
dBfs | double | dB-of-fullscale for the new peak |
return | double |
public Normalize ( double dBfs, bool doIt ) : double | ||
dBfs | double | |
doIt | bool | |
return | double |
public Read ( int n, int &nn, bool &moreSamples ) : ISample[] | ||
n | int | |
nn | int | |
moreSamples | bool | |
return | ISample[] |
public ReadComplex ( int n, int &nn, bool &moreSamples ) : Complex[][] | ||
n | int | |
nn | int | |
moreSamples | bool | |
return | Complex[][] |
public SampleSubset ( int start, int count ) : IEnumerator |
||
start | int | |
count | int | Number to return |
return | IEnumerator |
public Skip ( int n, int &nn, bool &moreSamples ) : void | ||
n | int | |
nn | int | |
moreSamples | bool | |
return | void |
public SoundBuffer ( ISoundObj input ) : System | ||
input | ISoundObj | |
return | System |
public SoundBuffer ( List |
||
samples | List |
|
numChannels | ushort | |
sampleRate | uint | |
return | System |
public Subset ( int start, int count ) : ISoundObj | ||
start | int | |
count | int | |
return | ISoundObj |
public ToArray ( int startPos, int count ) : ISample[] | ||
startPos | int | |
count | int | |
return | ISample[] |
public ToComplexArray ( int startPos ) : Complex[][] | ||
startPos | int | |
return | Complex[][] |
public ToComplexArray ( int startPos, int count ) : Complex[][] | ||
startPos | int | |
count | int | |
return | Complex[][] |
public ToDoubleArray ( int startPos ) : double[][] | ||
startPos | int | Start position in the buffer |
return | double[][] |
public ToDoubleArray ( int startPos, int count ) : double[][] | ||
startPos | int | |
count | int | Length of the return array (will be null-padded if count exceeds data size) |
return | double[][] |