Backbone - Singer Tone
 
Loading...
Searching...
No Matches
Backbone::SingerToneExtensions Class Reference

Extension methods for arrays commonly used in DSP routines. More...

Static Public Member Functions

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.
 

Detailed Description

Extension methods for arrays commonly used in DSP routines.

Member Function Documentation

◆ Clear() [1/3]

static void Backbone::SingerToneExtensions::Clear ( this double[] buffer)
static

Clears the entire double buffer by setting all elements to 0.

Parameters
bufferTarget 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
bufferTarget 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
bufferTarget buffer. Must not be null.
startIdxInclusive start index.
endIdxInclusive 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
fromBufferSource buffer. Must not be null.
toBufferDestination buffer. Must not be null.
fromStartStart index in source.
toStartStart index in destination.
lengthNumber 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
bufferTarget buffer. No-op if null or length is 0.
valueValue to assign to each element.

The documentation for this class was generated from the following file: