Exemple #1
0
 /// <summary>
 /// Plays a tune (collection of tones).
 /// </summary>
 /// <param name="tune">The collection of tones to play.</param>
 public void Play(Tone[] tune)
 {
     for (var i = 0; i < tune.Length; i++)
     {
         Play(tune[i]);
     }
 }
Exemple #2
0
 /// <summary>
 /// Plays a Tone
 /// </summary>
 /// <param name="tone">The desired tone.</param>
 public void Play(Tone tone)
 {
     Play(tone.Frequency, tone.Duration);
 }