EmbedEd
/
mbed_theremin
xypad theremin for LPC1768
wave.h@2:c5eeaf1c8e69, 2016-03-14 (annotated)
- Committer:
- exopiped
- Date:
- Mon Mar 14 23:43:44 2016 +0000
- Revision:
- 2:c5eeaf1c8e69
- Parent:
- 0:8ee38453bad9
touch screen driver glitches removed; debug statements commented out
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
exopiped | 0:8ee38453bad9 | 1 | #ifndef WAVE_H |
exopiped | 0:8ee38453bad9 | 2 | #define WAVE_H |
exopiped | 0:8ee38453bad9 | 3 | |
exopiped | 0:8ee38453bad9 | 4 | #define WAVE_TYPE_FIRST 0 |
exopiped | 0:8ee38453bad9 | 5 | #define WAVE_TYPE_SAW 0 |
exopiped | 0:8ee38453bad9 | 6 | #define WAVE_TYPE_TRIANGLE 1 |
exopiped | 0:8ee38453bad9 | 7 | #define WAVE_TYPE_SQUARE 2 |
exopiped | 0:8ee38453bad9 | 8 | #define WAVE_TYPE_LAST 2 |
exopiped | 0:8ee38453bad9 | 9 | #define WAVE_TYPE_DEFAULT WAVE_TYPE_SAW |
exopiped | 0:8ee38453bad9 | 10 | #define WAVE_SAMPLE_RATE 22050 |
exopiped | 0:8ee38453bad9 | 11 | |
exopiped | 0:8ee38453bad9 | 12 | void wave_init(void); |
exopiped | 0:8ee38453bad9 | 13 | void wave_reset(void); |
exopiped | 0:8ee38453bad9 | 14 | void wave_update(void); |
exopiped | 0:8ee38453bad9 | 15 | int wave_nextval(unsigned freq); |
exopiped | 0:8ee38453bad9 | 16 | bool wave_type_changed(void); |
exopiped | 0:8ee38453bad9 | 17 | void wave_type_incr(void); |
exopiped | 0:8ee38453bad9 | 18 | #endif |
exopiped | 0:8ee38453bad9 | 19 |