-
Notifications
You must be signed in to change notification settings - Fork 1
Rest
AutumnSky1010 edited this page Dec 10, 2022
·
3 revisions
Namespace: SoundMaker.Sounds.Score
Assembly: SoundMaker.dll
The rest.
public class Rest : BasicSoundComponentBase
Object -> BasicSoundComponentBase -> Rest
Declaration
public Rest(LengthType length, bool isDotted = false)
Parameters
Type | Desctiption |
---|---|
LengthType | Length (ex. "quarter" note) |
bool | Is note/rest dotted. |
Declaration
public abstract ushort[] GenerateWave(SoundFormat format, int tempo, int length, WaveTypeBase waveType);
Parameters
Type | Desctiption |
---|---|
SoundFormat | The format of the sound. |
int | Quarter note/rest per minute. |
int | Length of the array. |
WaveTypeBase | Type of wave. |
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. |
Declaration
public abstract ushort[] GenerateWave(SoundFormat format, int tempo, WaveTypeBase waveType);
Parameters
Type | Desctiption |
---|---|
SoundFormat | The format of the sound. |
int | Quarter note/rest per minute. |
WaveTypeBase | Type of wave. |
Returns
Type | Desctiption |
---|---|
ushort[] | The array of wave data. |
Exceptions
Exception | Desctiption |
---|---|
ArgumentOutOfRangeException | Tempo 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