示例#1
0
文件: Piezo.cs 项目: ducas/Robbo
 /// <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]);
     }
 }
示例#2
0
文件: Piezo.cs 项目: ducas/Robbo
 /// <summary>
 /// Plays a Tone
 /// </summary>
 /// <param name="tone">The desired tone.</param>
 public void Play(Tone tone)
 {
     Play(tone.Frequency, tone.Duration);
 }