SampleArray Class

Summary

Represents an array of audiosamples.
Namespace
AlphaTab.Audio.Synth.Ds
Base Types
  • object
graph TD Base0["object"]-->Type Type["SampleArray"] class Type type-node

Syntax

[Abstract("js.html.Float32Array")]
[NativeConstructors]
public class SampleArray

Attributes

Type Description
Abstract
NativeConstructors

Constructors

Name Summary
SampleArray(int)
SampleArray(int) Initializes a new instance of the SampleArray class.

Properties

Name Value Summary
Length int
Length int
Gets the total number of samples contained in this array
Samples float[]
Gets the audio samples as floats.
this[int] float
this[int] float
Gets or sets the sample at the specified index.

Methods

Name Value Summary
Blit(SampleArray, int, SampleArray, int, int) void
static
Blit(SampleArray, int, SampleArray, int, int) void
Copies a range of samples from the given source array into the specified destination.
static
Clear() void
Clear() void
Resets all samples in the array to 0.
ToFloat32Array() Float32Array