![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Starter code for Georgia Tech ECE 2036 Summer 2014 Lab 2
Dependencies: 4DGL-uLCD-SE PinDetect mbed
soundBuilder.h@1:839d22d423bd, 2014-06-19 (annotated)
- Committer:
- jlind6
- Date:
- Thu Jun 19 21:45:38 2014 +0000
- Revision:
- 1:839d22d423bd
- Parent:
- 0:356124c0bafc
Added some clarifying comments plus changed constructors in ball.h
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jlind6 | 0:356124c0bafc | 1 | #include "Speaker.h" |
jlind6 | 0:356124c0bafc | 2 | |
jlind6 | 0:356124c0bafc | 3 | class Note |
jlind6 | 0:356124c0bafc | 4 | { |
jlind6 | 0:356124c0bafc | 5 | public: |
jlind6 | 1:839d22d423bd | 6 | // You create your own constructors and |
jlind6 | 1:839d22d423bd | 7 | // member functions!! |
jlind6 | 0:356124c0bafc | 8 | private: |
jlind6 | 0:356124c0bafc | 9 | float freq; |
jlind6 | 0:356124c0bafc | 10 | float length; |
jlind6 | 0:356124c0bafc | 11 | float volume; |
jlind6 | 0:356124c0bafc | 12 | }; |
jlind6 | 0:356124c0bafc | 13 | |
jlind6 | 0:356124c0bafc | 14 | class SoundBuilder |
jlind6 | 0:356124c0bafc | 15 | { |
jlind6 | 0:356124c0bafc | 16 | public: |
jlind6 | 0:356124c0bafc | 17 | // Set Sounds |
jlind6 | 0:356124c0bafc | 18 | // Set Songs |
jlind6 | 0:356124c0bafc | 19 | // Play Sounds |
jlind6 | 0:356124c0bafc | 20 | // Play Songs |
jlind6 | 0:356124c0bafc | 21 | // Clear Songs |
jlind6 | 0:356124c0bafc | 22 | |
jlind6 | 0:356124c0bafc | 23 | private: |
jlind6 | 0:356124c0bafc | 24 | Note song[20]; |
jlind6 | 0:356124c0bafc | 25 | Speaker *speaker; |
jlind6 | 0:356124c0bafc | 26 | |
jlind6 | 0:356124c0bafc | 27 | }; |