// // a tune is an array of data pairs // #define E2 40 #define F2 41 #define G2 43 #define A2 45 #define B2 47 #define C3 48 #define D3 50 #define E3 52 #define F3 53 #define G3 55 #define A3 57 #define B3 59 #define C4 60 #define D4 62 #define E4 64 #define F4 65 #define G4 67 #define A4 69 #define B4 71 #define C5 72 #define D5 74 #define E5 76 #define D5 78 #define E5 79 #define F5 81 #define G5 83 #define A5 85 #define B5 87 #define C6 88 #define D6 90 #define E6 92 #define N(a) a, 1 // Note on #define O(a) a, 2 // Note off #define T(a) a, 6 // Time to wait #define MONO 1, 7 // monophonic #define POLY 0, 7 // polyphonic const unsigned char tune_1[] = { MONO, N( C4), T(12), N( D4), T(12), N( E4), T(12), N( C4), T(24), O(C4), T(24), POLY, N(C4), T(12), N(E4), T(12), N(G4), T(12), N(C5), T(24), O(C4), O(E4), O(G4), O(C5), T(12), N(C4), N(E4), N(G4), N(C5), T(24), O(C4), O(E4),O(G4), O(C5), // 0, 0 }; const unsigned char tune_2[] = { // end 0, 0 }; const unsigned char tune_3[] = { 0, 0 }; const unsigned char tune_4[] = { 0, 0 }; const unsigned char tune_5[] = { 0, 0 };