A program to automatically tune a guitar. Written by Justin Reidhead and Steven Swenson
Dependencies: FFT FrequencyFinder Motor NewTextLCD PinDetect mbed strings
strings/strings.h@7:057bcd99a3f8, 2012-04-20 (annotated)
- Committer:
- melangeaddict
- Date:
- Fri Apr 20 17:28:27 2012 +0000
- Revision:
- 7:057bcd99a3f8
- Parent:
- 5:c0fd99f07536
kinda works; lcd looks good
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
melangeaddict | 2:9c0a83c5ded5 | 1 | #pragma once |
melangeaddict | 3:c672e782f19b | 2 | #include "string" |
melangeaddict | 2:9c0a83c5ded5 | 3 | |
melangeaddict | 2:9c0a83c5ded5 | 4 | class strings |
melangeaddict | 2:9c0a83c5ded5 | 5 | { |
melangeaddict | 2:9c0a83c5ded5 | 6 | public: |
melangeaddict | 2:9c0a83c5ded5 | 7 | strings(int string_num); |
melangeaddict | 3:c672e782f19b | 8 | strings(); |
melangeaddict | 2:9c0a83c5ded5 | 9 | ~strings(void); |
melangeaddict | 2:9c0a83c5ded5 | 10 | |
melangeaddict | 2:9c0a83c5ded5 | 11 | void inc_index(); |
melangeaddict | 5:c0fd99f07536 | 12 | void reset_index(); |
melangeaddict | 4:e370f322a697 | 13 | char* get_note(); |
melangeaddict | 2:9c0a83c5ded5 | 14 | float get_freq(); |
melangeaddict | 3:c672e782f19b | 15 | |
melangeaddict | 3:c672e782f19b | 16 | protected: |
melangeaddict | 3:c672e782f19b | 17 | void set_values(int string_num); |
melangeaddict | 2:9c0a83c5ded5 | 18 | |
melangeaddict | 2:9c0a83c5ded5 | 19 | private: |
melangeaddict | 2:9c0a83c5ded5 | 20 | float frequencies[9]; |
melangeaddict | 4:e370f322a697 | 21 | char *notes [9]; |
melangeaddict | 2:9c0a83c5ded5 | 22 | int index; |
melangeaddict | 7:057bcd99a3f8 | 23 | float threshold[6]; |
melangeaddict | 2:9c0a83c5ded5 | 24 | }; |