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@2:9c0a83c5ded5, 2012-04-15 (annotated)
- Committer:
- melangeaddict
- Date:
- Sun Apr 15 00:37:37 2012 +0000
- Revision:
- 2:9c0a83c5ded5
- Child:
- 3:c672e782f19b
Uncommented mbed parts
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
melangeaddict | 2:9c0a83c5ded5 | 1 | #pragma once |
melangeaddict | 2:9c0a83c5ded5 | 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 | 2:9c0a83c5ded5 | 8 | ~strings(void); |
melangeaddict | 2:9c0a83c5ded5 | 9 | |
melangeaddict | 2:9c0a83c5ded5 | 10 | void inc_index(); |
melangeaddict | 2:9c0a83c5ded5 | 11 | std::string get_note(); |
melangeaddict | 2:9c0a83c5ded5 | 12 | float get_freq(); |
melangeaddict | 2:9c0a83c5ded5 | 13 | |
melangeaddict | 2:9c0a83c5ded5 | 14 | private: |
melangeaddict | 2:9c0a83c5ded5 | 15 | float frequencies[9]; |
melangeaddict | 2:9c0a83c5ded5 | 16 | std::string notes [9]; |
melangeaddict | 2:9c0a83c5ded5 | 17 | int index; |
melangeaddict | 2:9c0a83c5ded5 | 18 | }; |