Constructor | Description |
---|---|
Tone | Default constructor. Sets pitch, duration, and volume to default levels. |
Tone (int Pitch, int Duration, VOLUME Vol) | Sets pitch, duration, and volume. Values are dependent on the range limits set by Tone.PITCH, Tone.DURATION, and Tone.VOLUME. |
Tone (int Pitch, int duration, int Vol) | Sets pitch, duration, and volume. Pitch and duration values are dependent on the range limits set by Tone.PITCH and Tone.DURATION. Volume is dependent on the specific range supported by the computer. |
In addition to the methods listed, you can also use the helper methods to test the return values for Tone class methods.
Method | Description |
---|---|
Pause | Generates a pause, allowing you to insert gaps or rests between audible tones. |
Play (int Pitch, int Duration) | Generates the tone as a simple monotonic sound based on a specified pitch and duration and the CurrentVolume property of the Tone instance. |
Play (int Pitch, int Duration, VOLUME vol) | Generates the tone as a simple monotonic sound based on a specified pitch, duration and volume. |
Play (int Pitch, VOLUME vol) | Generates the tone as a simple monotonic sound based on a specified pitch and volume and the CurrentDuration property of the Tone instance. |
Play (VOLUME vol) | Generates the tone as a simple monotonic sound based on a specified volume and the CurrentDuration and CurrentPitch properties of the Tone instance. |
Play | Generates the tone as a simple monotonic sound based on the CurrentPitch, CurrentDuration and CurrentVolume properties of the Tone instance. |
Rest | Generates a pause, allowing you to insert gaps or rests between audible tones. |
Property | Description |
---|---|
Tone.CurrentDuration Property | Gets or sets the duration. Subject to range limits set by Tone.DURATION. |
Tone.CurrentPitch Property | Gets or sets the pitch. Subject to range limits set by Tone.PITCH. |
Tone.CurrentVolume Property | Gets or sets the volume. Subject to range limits set by Tone.VOLUME. |
Tone.EnableExceptions Property | Determines whether or not exceptions can be raised by Tone methods. |
Tone.EnableStaticExceptions Property | Determines whether or not exceptions can be raised by static Tone methods. |
Tone.IsAudioToneSupported Property | (Static) Returns a bool indicating whether or not the Tone class is supported. |
Tone.IsSupported Property | Returns a bool indicating whether or not the Tone class is supported. |