-
Notifications
You must be signed in to change notification settings - Fork 1
TriangleSoundChannel
AutumnSky1010 edited this page Jun 15, 2024
·
5 revisions
Namespace: SoundMaker.Sounds.SoundChannels
Assembly: SoundMaker.dll
This generates triangle wave.
public class TriangleSoundChannel : SoundChannelBase
Object -> SoundChannelBase -> TriangleSoundChannel
- ISoundChannel
- Ver 2.2.0 ~ IEnumerable<ISoundComponent>
Declaration
public TriangleSoundChannel(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. |
Declaration
public TriangleSoundChannel(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. |
Declaration
public override ushort[] GenerateWave()
Returns
Type | Desctiption |
---|---|
ushort[] | The array of wave data. |
- Usage
- Kind of waves
- What is the SMSC format?
- kind of sound components.
- How to export the wave
- Use cases
SoundMaker.ScoreData.SMSC
SoundMaker.WaveFile
SoundMaker.Sounds
- Sounds.BitRateType
- Sounds.ChannelType
- IWave
- MixerBase
- MonauralMixer
- MonauralWave
- Sounds.SamplingFrequencyType
- SoundDirectionType
- SoundFormat
- StereoMixer
- StereoWave