-
Notifications
You must be signed in to change notification settings - Fork 1
PseudoTriangleWave
AutumnSky1010 edited this page Dec 15, 2022
·
4 revisions
Namespace: SoundMaker.Sounds.WaveTypes
Assembly: SoundMaker.dll
The pseudo triangle wave.
public class PseudoTriangleWave : WaveTypeBase
Object -> WaveTypeBase -> PseudoTriangleWave
Declaration
public ushort[] GenerateWave(SoundFormat format, int length, int volume, double hertz)
Parameters
Type | Desctiption |
---|---|
SoundFormat | The format of the sound. |
int | Length of the array. |
int | Volume.(0 ~ 100) |
double | Hertz of the sound. |
Returns
Type | Desctiption |
---|---|
ushort[] | The array of wave data. |
Exceptions
Exception | Desctiption |
---|---|
ArgumentOutOfRangeException | Length must be non-negative. |
ArgumentOutOfRangeException | Volume must be below than 100 and more than 0. |
ArgumentOutOfRangeException | Hertz must be non-negative and greater than 0. |
Attention
GenerateWave(SoundFormat, int, int, int, double)
will be deleted because int tempo
is unnecessary argument.
Declaration
[Obsolete]
public ushort[] GenerateWave(SoundFormat format, int tempo, int length, int volume, double hertz)
Parameters
Type | Desctiption |
---|---|
SoundFormat | The format of the sound. |
int | Quarter note/rest per minute. |
int | Length of the array. |
int | Volume.(0 ~ 100) |
double | Hertz of the sound. |
Returns
Type | Desctiption |
---|---|
ushort[] | The array of wave data. |
Exceptions
Exception | Desctiption |
---|---|
ArgumentOutOfRangeException | Tempo must be non-negative and greater than 0. |
ArgumentOutOfRangeException | Length must be non-negative. |
ArgumentOutOfRangeException | Volume must be below than 100 and more than 0. |
ArgumentOutOfRangeException | Hertz must be non-negative and greater than 0. |
- 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