示例#1
0
        /// <summary>
        /// Locate and play the audio file matching the passed note.
        /// This method is specifically for rendering notes, not their spoken representation
        /// </summary>
        /// <param name="note"></param>
        public void PlayNoteAsAudio(MusicalNote note) { 
            var tmp = note.Note + note.Octave;
            var x = StringUtility.MakeFileName(@"c:\temp", tmp, "wav");

            _toneProvider.PlayAudio(x);
        }
示例#2
0
 public void PlayNote(MusicalNote note) {
     _toneProvider.PlayTone(note.Frequency, 1);
 }