Skip to content

PseudoTriangleSoundChannel

AutumnSky1010 edited this page Jun 15, 2024 · 4 revisions

Class PseudoTriangleSoundChannel

Definition

Namespace: SoundMaker.Sounds.SoundChannels
Assembly: SoundMaker.dll

This generates pseudo triangle wave.

public class TriangleSoundChannel : SoundChannelBase

Inheritance

Object -> SoundChannelBase -> PseudoTriangleSoundChannel

Implements

Constructors

PseudoTriangleSoundChannel(int, SoundFormat, PanType, int)

Declaration

public PseudoTriangleSoundChannel(int tempo, SoundFormat format, PanType panType, int capacity)

Parameters

Type Desctiption
int Quarter note/rest per minute.
SoundFormat Format of the sound.
PanType Direction of hearing.
int The total number of sound components the internal data structure can hold without resizing.

Exceptions

Exception Desctiption
ArgumentOutOfRangeException Tempo must be non-negative and greater than 0.
ArgumentOutOfRangeException Index must be non-negative and greater than 0.

PseudoTriangleSoundChannel(int, SoundFormat, PanType)

Declaration

public PseudoTriangleSoundChannel(int tempo, SoundFormat format, PanType panType)

Parameters

Type Desctiption
int Quarter note/rest per minute.
SoundFormat Format of the sound.
PanType Direction of hearing.

Exceptions

Exception Desctiption
ArgumentOutOfRangeException Tempo must be non-negative and greater than 0.
ArgumentOutOfRangeException Index must be non-negative and greater than 0.

Methods

GenerateWave()

Declaration

public override ushort[] GenerateWave()

Returns

Type Desctiption
ushort[] The array of wave data.
Clone this wiki locally