Extension methods for arrays commonly used in DSP routines.
More...
|
| static void | Clear (this float[] buffer) |
| | Clears the entire float buffer by setting all elements to 0.
|
| |
| static void | Clear (this double[] buffer) |
| | Clears the entire double buffer by setting all elements to 0.
|
| |
| static void | Copy (this float[] fromBuffer, float[] toBuffer, int fromStart, int toStart, int length) |
| | Copies a block of samples from fromBuffer to toBuffer . Safe for in-place copy even if the ranges overlap. Indices are clamped to valid ranges on both arrays.
|
| |
| static void | Clear (this float[] buffer, int startIdx, int endIdx) |
| | Clears a range within a float buffer by setting elements to 0.
|
| |
| static void | Fill (this double[] buffer, double value) |
| | Fills a double buffer with a constant value.
|
| |
Extension methods for arrays commonly used in DSP routines.
◆ Clear() [1/3]
| static void Backbone::SingerToneExtensions::Clear |
( |
this double[] | buffer | ) |
|
|
static |
Clears the entire double buffer by setting all elements to 0.
- Parameters
-
| buffer | Target buffer. No-op if null or length is 0. |
◆ Clear() [2/3]
| static void Backbone::SingerToneExtensions::Clear |
( |
this float[] | buffer | ) |
|
|
static |
Clears the entire float buffer by setting all elements to 0.
- Parameters
-
| buffer | Target buffer. No-op if null or length is 0. |
◆ Clear() [3/3]
| static void Backbone::SingerToneExtensions::Clear |
( |
this float[] | buffer, |
|
|
int | startIdx, |
|
|
int | endIdx ) |
|
static |
Clears a range within a float buffer by setting elements to 0.
- Parameters
-
| buffer | Target buffer. Must not be null. |
| startIdx | Inclusive start index. |
| endIdx | Inclusive end index. |
◆ Copy()
| static void Backbone::SingerToneExtensions::Copy |
( |
this float[] | fromBuffer, |
|
|
float[] | toBuffer, |
|
|
int | fromStart, |
|
|
int | toStart, |
|
|
int | length ) |
|
static |
Copies a block of samples from fromBuffer to toBuffer . Safe for in-place copy even if the ranges overlap. Indices are clamped to valid ranges on both arrays.
- Parameters
-
| fromBuffer | Source buffer. Must not be null. |
| toBuffer | Destination buffer. Must not be null. |
| fromStart | Start index in source. |
| toStart | Start index in destination. |
| length | Number of elements to copy. |
◆ Fill()
| static void Backbone::SingerToneExtensions::Fill |
( |
this double[] | buffer, |
|
|
double | value ) |
|
static |
Fills a double buffer with a constant value.
- Parameters
-
| buffer | Target buffer. No-op if null or length is 0. |
| value | Value to assign to each element. |
The documentation for this class was generated from the following file: