home *** CD-ROM | disk | FTP | other *** search
/ Sound Sensations! / sound_sensations.iso / soundb / sndhack / examp007.wsn < prev    next >
Text File  |  1991-07-28  |  619b  |  22 lines

  1. ; SndHack allows notes to be specified as the 
  2. ; name of the note with the octave appended to 
  3. ; the end.  Sharps are specified by # or + 
  4. ; and flats by -.  
  5. CloseSound();
  6. OpenSound();
  7.  
  8. SetVoiceNote(1, 1, 4, 0);   This note and the next are equivalent.
  9. SetVoiceNote(1, C1, 4, 0);
  10.  
  11. SetVoiceNote(1, 13, 4, 0);   This note and the next are equivalent.
  12. SetVoiceNote(1, C2, 4, 0);
  13.  
  14. SetVoiceNote(1, C4, 4, 0);    Plays C in Octave 4
  15. SetVoiceNote(1, C#1, 4, 0);  Plays C sharp in Octave 1
  16. SetVoiceNote(1, G-3, 4, 0);   Plays G flat in Octave 3
  17.  
  18. StartSound();
  19. WaitSoundState(S_QUEUEEMPTY);
  20. CloseSound();
  21.  
  22.