Two player imu pong
Dependencies: 4DGL-uLCD-SE IMUfilter LSM9DS0 PinDetect mbed
soundBuilder.h
- Committer:
- rrr93
- Date:
- 2015-10-22
- Revision:
- 0:941225f01ccc
File content as of revision 0:941225f01ccc:
#include "Speaker.h" class Note { public: Note(); Note(float, float, float); float getFreq(); float getLength(); float getVol(); // You create your own constructors and // member functions!! private: float freq; float length; float volume; }; class SoundBuilder { public: SoundBuilder(); SoundBuilder(Speaker *); void addNote(Note); void playSong(); // Set Sounds // Set Songs // Play Sounds // Play Songs // Clear Songs private: Note song[20]; Speaker *speaker; int ind; };