Music Player Library for YMZ294 Sound Generator LSI
Note.h@0:85d8bf9fb6fe, 2011-07-06 (annotated)
- Committer:
- yamaguch
- Date:
- Wed Jul 06 09:36:48 2011 +0000
- Revision:
- 0:85d8bf9fb6fe
0.9
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
yamaguch | 0:85d8bf9fb6fe | 1 | #ifndef MBED_NOTE_H |
yamaguch | 0:85d8bf9fb6fe | 2 | #define MBED_NOTE_H |
yamaguch | 0:85d8bf9fb6fe | 3 | |
yamaguch | 0:85d8bf9fb6fe | 4 | #include "mbed.h" |
yamaguch | 0:85d8bf9fb6fe | 5 | |
yamaguch | 0:85d8bf9fb6fe | 6 | class Note { |
yamaguch | 0:85d8bf9fb6fe | 7 | public: |
yamaguch | 0:85d8bf9fb6fe | 8 | Note(int pitch = 0, int dur = 0, bool tie = false); |
yamaguch | 0:85d8bf9fb6fe | 9 | Note(const char *s); |
yamaguch | 0:85d8bf9fb6fe | 10 | |
yamaguch | 0:85d8bf9fb6fe | 11 | int pitch; // 69 = A4 = 440Hz, 0 for Rest |
yamaguch | 0:85d8bf9fb6fe | 12 | int dur; // w h q i s t x (. /), duration may be appended, w = 1920 |
yamaguch | 0:85d8bf9fb6fe | 13 | bool tie; // true when tied to next note |
yamaguch | 0:85d8bf9fb6fe | 14 | }; |
yamaguch | 0:85d8bf9fb6fe | 15 | |
yamaguch | 0:85d8bf9fb6fe | 16 | #endif |