Hi mütze,
Code:
// Temperierte Tonhöhen definieren:
// Subkontraoktave
#define Tone_2A 4189 //28Hz
#define Tone_2Ais 3953 //29Hz
#define Tone_2H 3732 //31Hz
// Kontraoktave
#define Tone_1C 3523 //33Hz
#define Tone_1Cis 3325 //35Hz
#define Tone_1D 3138 //37Hz
#define Tone_1Dis 2962 //39Hz
#define Tone_1E 2796 //41Hz
#define Tone_1F 2639 //44Hz
#define Tone_1Fis 2491 //46Hz
#define Tone_1G 2351 //49Hz
#define Tone_1Gis 2219 //52Hz
#define Tone_1A 2095 //55Hz
#define Tone_1Ais 1977 //58Hz
#define Tone_1H 1866 //62Hz
// Große Oktave
#define Tone_C 1761 //65Hz
#define Tone_Cis 1662 //69Hz
#define Tone_D 1569 //73Hz
#define Tone_Dis 1481 //78Hz
#define Tone_E 1398 //82Hz
#define Tone_F 1319 //87Hz
#define Tone_Fis 1245 //93Hz
#define Tone_G 1176 //98Hz
#define Tone_Gis 1110 //104Hz
#define Tone_A 1047 //110Hz
#define Tone_Ais 989 //117Hz
#define Tone_H 933 //123Hz
// Kleine Oktave
#define Tone_c 881 //131Hz
#define Tone_cis 831 //139Hz
#define Tone_d 785 //147Hz
#define Tone_dis 741 //156Hz
#define Tone_e 699 //165Hz
#define Tone_f 660 //175Hz
#define Tone_fis 623 //185Hz
#define Tone_g 588 //196Hz
#define Tone_gis 555 //208Hz
#define Tone_a 524 //220Hz
#define Tone_ais 494 //233Hz
#define Tone_h 467 //247Hz
// Eingestrichene Oktave
#define Tone_C1 440 //262Hz
#define Tone_Cis1 416 //277Hz
#define Tone_D1 392 //294Hz
#define Tone_Dis1 370 //311Hz
#define Tone_E1 349 //330Hz
#define Tone_F1 330 //349Hz
#define Tone_Fis1 311 //370Hz
#define Tone_G1 294 //392Hz
#define Tone_Gis1 277 //415Hz
#define Tone_A1 262 //440Hz
#define Tone_Ais1 247 //466Hz
#define Tone_H1 233 //494Hz
// Zweigestrichene Oktave
#define Tone_C2 220 //523Hz
#define Tone_Cis2 208 //554Hz
#define Tone_D2 196 //587Hz
#define Tone_Dis2 185 //622Hz
#define Tone_E2 175 //659Hz
#define Tone_F2 165 //698Hz
#define Tone_Fis2 156 //740Hz
#define Tone_G2 147 //784Hz
#define Tone_Gis2 139 //831Hz
#define Tone_A2 131 //880Hz
#define Tone_Ais2 124 //932Hz
#define Tone_H2 117 //988Hz
// Dreigestrichene Oktave
#define Tone_C3 110 //1047Hz
#define Tone_Cis3 104 //1109Hz
#define Tone_D3 98 //1175Hz
#define Tone_Dis3 93 //1245Hz
#define Tone_E3 87 //1319Hz
#define Tone_F3 82 //1397Hz
#define Tone_Fis3 78 //1480Hz
#define Tone_G3 73 //1568Hz
#define Tone_Gis3 69 //1661Hz
#define Tone_A3 65 //1760Hz
#define Tone_Ais3 62 //1865Hz
#define Tone_H3 58 //1976Hz
// Viergestrichene Oktave
#define Tone_C4 55 //2093Hz
#define Tone_Cis4 52 //2217Hz
#define Tone_D4 49 //2349Hz
#define Tone_Dis4 46 //2489Hz
#define Tone_E4 44 //2637Hz
#define Tone_F4 41 //2794Hz
#define Tone_Fis4 39 //2960Hz
#define Tone_G4 37 //3136Hz
#define Tone_Gis4 35 //3322Hz
#define Tone_A4 33 //3520Hz
#define Tone_Ais4 31 //3729Hz
#define Tone_H4 29 //3951Hz
// Fünfgestrichene Oktave
#define Tone_C5 28 //4186Hz
Hier noch die Definitionen für die Töne, die man mit der CCPRO M128 mit der Funktion tone() erzeugen kann.
Lesezeichen