A program to automatically tune a guitar. Written by Justin Reidhead and Steven Swenson

Dependencies:   FFT FrequencyFinder Motor NewTextLCD PinDetect mbed strings

Committer:
melangeaddict
Date:
Mon Apr 16 22:29:41 2012 +0000
Revision:
3:c672e782f19b
Parent:
2:9c0a83c5ded5
Child:
4:e370f322a697
changed from global vector to global pointer array

Who changed what in which revision?

UserRevisionLine numberNew 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 2:9c0a83c5ded5 12 std::string get_note();
melangeaddict 2:9c0a83c5ded5 13 float get_freq();
melangeaddict 3:c672e782f19b 14
melangeaddict 3:c672e782f19b 15 protected:
melangeaddict 3:c672e782f19b 16 void set_values(int string_num);
melangeaddict 2:9c0a83c5ded5 17
melangeaddict 2:9c0a83c5ded5 18 private:
melangeaddict 2:9c0a83c5ded5 19 float frequencies[9];
melangeaddict 2:9c0a83c5ded5 20 std::string notes [9];
melangeaddict 2:9c0a83c5ded5 21 int index;
melangeaddict 2:9c0a83c5ded5 22 };