Scripting API
Scripting API
AudioPeaks
Record in Abyss.Core, from Abyss.Core.
A clip's waveform: what its file holds, and for each channel each column's lowest and highest sample, from −1 to 1.
public record AudioPeaksConstructors
AudioPeaks
public AudioPeaks(AudioShape Shape, int Columns, float[] Values)A clip's waveform: what its file holds, and for each channel each column's lowest and highest sample, from −1 to 1.
Parameters
Shape: What its file holds.Columns: How many columns wide it is.Values: Each channel in turn, two floats a column: its lowest, then its highest.
Properties
Shape
public AudioShape Shape { get; init; }What its file holds.
Columns
public int Columns { get; init; }How many columns wide it is.
Values
public float[] Values { get; init; }Each channel in turn, two floats a column: its lowest, then its highest.
Methods
At
public (float Low, float High) At(int channel, int column)The lowest and highest sample of a channel's column.
Parameters
channelcolumn
