Version 2 (modified by 14 years ago) ( diff ) | ,
---|
PlayNotes
Play simple music notes on the beeper.
void PlayNotes(const string& strNotes); void PlayNotes(const char* pszNotes);
Parameters
- strNotes - string containing notes to play
- pszNotes - character array pointer containing notes to play
Return Value
- void - does not return any value
Remarks
Any application that will use PlayNotes must call OpenBeeeper first.
The duration of note may be specified such as 8A as an eighth note, 4C and a quarter note. The octave may be specified after the note such as 8A5 to specify an eighth A note octave 5.
The available notes are limited to:
Octave 5 - A, B, C, D, E, F, G
Octave 6 - A, C, E, G
Octave 7 - C, D, E
Examples
string str = "A,B,C"; PlayNotes(str);
PlayNotes("A,B,C");
See Also
Note:
See TracWiki
for help on using the wiki.