drum

Dependencies:   mbed drum

Revision:
0:cd5fcde85881
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/astronomical_observation.h	Sat Nov 28 15:27:46 2020 +0000
@@ -0,0 +1,639 @@
+#include "note.h"
+namespace astro{
+
+const note_t mearsure[12] = {
+    {drum_1,0},
+    {drum_2,0},
+    {drum_2_1,0},
+    {drum_3,0},
+    {drum_4,0},
+    {drum_5,0},
+    {drum_5_1,0},
+    {cymbal_1,0},
+    {cymbal_1_1,0},
+    {cymbal_2,0},
+    {cymbal_3,0},
+    {cymbal_4,0}
+};
+    
+const note_t blank[4]= {
+    {rest,0},
+    {rest,note_4},
+    {rest,note_4},
+    {rest,note_4}
+};
+
+const note_t mearsure_1[7] = {
+    {rest,0},
+    {rest,note_4},
+    {rest,note_4},
+    {rest,note_4},
+    {rest,note_8},
+    {drum_2,note_16},
+    {drum_2_1,note_16}
+};
+
+const note_t mearsure_2[17]= {
+    {cymbal_2,0},
+    {drum_1,0},
+    {drum_1,note_4},
+    {drum_2,0},
+    {drum_5,0},
+    {drum_2_1,note_8},
+    {drum_5_1,0},
+    {drum_1,note_8},
+    {drum_2,0},
+    {drum_5,0},
+    {drum_2_1,note_8},
+    {drum_5_1,0},
+    {drum_1,note_8},
+    {drum_2,0},
+    {drum_5,0},
+    {drum_2_1,note_8},
+    {drum_5_1,0}
+};
+
+const note_t mearsure_3[20]= {
+    {drum_1,0},
+    {drum_2,0},
+    {drum_5,0},
+    {drum_2_1,note_8},
+    {drum_5_1,0},
+    {drum_1,note_8},
+    {drum_2,0},
+    {drum_5,0},
+    {drum_2_1,note_8},
+    {drum_5_1,0},
+    {drum_1,note_8},
+    {drum_2,0},
+    {drum_5,0},
+    {drum_2_1,note_8},
+    {drum_5_1,0},
+    {drum_1,note_8},
+    {drum_2,0},
+    {drum_5,0},
+    {drum_2_1,note_8},
+    {drum_5_1,0}
+};
+
+const note_t mearsure_4[11]= {
+    {cymbal_2,0},
+    {drum_1,0},
+    {drum_2,0},
+    {drum_1,note_4},
+    {drum_2_1,note_4},
+    {drum_2,note_8},
+    {drum_4,note_8},
+    {drum_4,note_8},
+    {drum_1,note_8},
+    {drum_2_1,0},
+    {cymbal_2}
+};
+
+const note_t mearsure_5[11]= {
+    {rest,0},
+    {drum_2,note_8},
+    {drum_4,0},
+    {rest,note_8},
+    {drum_1,note_8},
+    {drum_2_1,0},
+    {cymbal_2,0},
+    {rest,note_8},
+    {drum_2,note_8},
+    {drum_2_1,note_8},
+    {drum_2,note_8}
+};
+
+const note_t mearsure_6[17]= {
+    {cymbal_2,0},
+    {drum_1,0},
+    {drum_1,note_4},
+    {cymbal_1,0},
+    {hihat_off,0},
+    {cymbal_1_1,note_8},
+    {hihat_off,0},
+    {drum_1,note_8},
+    {cymbal_1,0},
+    {hihat_off,0},
+    {cymbal_1_1,note_8},
+    {hihat_off,0},
+    {drum_1,note_8},
+    {cymbal_1,0},
+    {hihat_off,0},
+    {cymbal_1_1,note_8},
+    {hihat_off,0}
+};
+
+const note_t mearsure_7[20]= {
+    {cymbal_1,0},
+    {hihat_off,0},
+    {drum_1,0},
+    {cymbal_1_1,note_8},
+    {hihat_off,0},
+    {drum_1,note_8},
+    {cymbal_1,0},
+    {hihat_off,0},
+    {cymbal_1_1,note_8},
+    {hihat_off,0},
+    {drum_1,note_8},
+    {cymbal_1,0},
+    {hihat_off,0},
+    {cymbal_1_1,note_8},
+    {hihat_off,0},
+    {drum_1,note_8},
+    {cymbal_1,0},
+    {hihat_off,0},
+    {cymbal_1_1,note_8},
+    {hihat_off,0}
+};
+
+const note_t mearsure_8[20]= {
+    {cymbal_1,0},
+    {hihat_off,0},
+    {drum_1,0},
+    {cymbal_1_1,note_8},
+    {hihat_off,0},
+    {drum_1,note_8},
+    {cymbal_1,0},
+    {hihat_off,0},
+    {cymbal_1_1,note_8},
+    {hihat_off,0},
+    {drum_1,note_8},
+    {cymbal_1,0},
+    {hihat_off,0},
+    {cymbal_1_1,note_8},
+    {hihat_off,0},
+    {drum_1,note_8},
+    {cymbal_1_1,0},
+    {hihat_off,0},
+    {drum_2,note_8},
+    {drum_2_1,note_16}
+};
+
+const note_t mearsure_9[17]= {
+    {cymbal_1,0},
+    {hihat_off,0},
+    {drum_1,0},
+    {cymbal_1_1,note_8},
+    {hihat_off,0},
+    {drum_1,note_8},
+    {cymbal_1,0},
+    {hihat_off,0},
+    {cymbal_1_1,note_8},
+    {hihat_off,0},
+    {drum_1,note_8},
+    {cymbal_1,0},
+    {hihat_off,0},
+    {cymbal_1_1,note_8},
+    {hihat_off,0},
+    {drum_1,note_8},
+    {cymbal_1,0}//open
+};
+
+const note_t mearsure_10[18]= {
+    {drum_1,0},
+    {drum_2,0},
+    {cymbal_2,0},
+    {cymbal_1,note_4},
+    {hihat_off,0},
+    {drum_1,0},
+    {cymbal_1_1,note_8},
+    {hihat_off,0},
+    {drum_1,note_8},
+    {cymbal_1,0},
+    {hihat_off,0},
+    {cymbal_1_1,note_8},
+    {hihat_off,0},
+    {drum_1,note_8},
+    {cymbal_1,0},
+    {hihat_off,0},
+    {cymbal_1_1,note_8},
+    {hihat_off,0}
+};
+
+const note_t mearsure_11[14]= {
+    {cymbal_1,0},
+    {hihat_off,0},
+    {drum_1,0},
+    {drum_2,note_8},
+    {drum_1,note_8},
+    {drum_4,0},
+    {drum_4,note_8},
+    {drum_1,note_8},
+    {drum_4,0},
+    {drum_4,note_8},
+    {drum_1,note_8},
+    {drum_5,0},
+    {drum_5_1,note_8},
+    {drum_5,note_16}
+};
+
+const note_t mearsure_12[14]= {
+    {cymbal_1,0},
+    {hihat_off,0},
+    {drum_1,0},
+    {cymbal_1_1,note_8},
+    {hihat_off,0},
+    {cymbal_1,note_8},
+    {hihat_off,0},
+    {drum_1,0},
+    {drum_4,note_8},
+    {drum_1,note_8},
+    {drum_4,0},
+    {drum_4,note_8},
+    {drum_1,note_8},
+    {drum_5,0}
+};
+
+const note_t mearsure_13[12]= {
+    {cymbal_2,0},
+    {drum_1,0},
+    {drum_1,note_4},
+    {drum_4,note_4},
+    {drum_1,note_8},
+    {drum_4,0},
+    {drum_4,note_8},
+    {drum_1,note_8},
+    {drum_5,0}
+};
+
+const note_t mearsure_14[8] = {
+    {cymbal_2,0},
+    {drum_1,0},
+    {drum_1,note_4},
+    {drum_4,0},
+    {cymbal_2,note_4},
+    {drum_1,0},
+    {drum_1,note_4},
+    {drum_4,0}
+};
+
+const note_t mearsure_15[13] = {
+    {cymbal_2,0},
+    {drum_1,0},
+    {drum_1,note_4},
+    {drum_4,0},
+    {drum_4,note_8},
+    {drum_1,note_8},
+    {drum_2,0},
+    {drum_2_1,note_8},
+    {drum_1,note_8},
+    {drum_2,0},
+    {drum_2_1,note_8},
+    {drum_2,note_16},
+    {drum_2_1,note_16}
+};
+
+const note_t mearsure_16[21] = {
+    {cymbal_1,0},
+    {hihat_off,0},
+    {drum_1,0},
+    {cymbal_1_1,note_8},
+    {hihat_off,0},
+    {drum_1,note_8},
+    {cymbal_1,0},
+    {hihat_off,0},
+    {cymbal_1_1,note_8},
+    {hihat_off,0},
+    {cymbal_1,note_8},
+    {hihat_off,0},
+    {drum_1,0},
+    {cymbal_1_1,note_8},
+    {hihat_off,0},
+    {drum_1,note_8},
+    {drum_2,0},
+    {cymbal_1,0},
+    {hihat_off,0},
+    {cymbal_1_1,note_8},
+    {hihat_off,0}
+};
+
+const note_t mearsure_17[18] = {
+    {cymbal_2,0},
+    {drum_1,0},
+    {drum_2,note_4},
+    {cymbal_1,0},
+    {hihat_off,0},
+    {cymbal_1_1,note_8},
+    {hihat_off,0},
+    {drum_1,note_8},
+    {cymbal_1,0},
+    {hihat_off,0},
+    {drum_1,note_8},
+    {cymbal_1_1,0},
+    {hihat_off,0},
+    {drum_2_1,note_8},
+    {cymbal_1,0},
+    {hihat_off,0},
+    {cymbal_1_1,note_8},
+    {hihat_off,0}
+};
+
+const note_t mearsure_18[21] = {
+    {drum_1,0},
+    {cymbal_1,0},
+    {hihat_off,0},
+    {drum_1,note_8},
+    {cymbal_1_1,0},
+    {hihat_off,0},
+    {drum_2,note_8},
+    {cymbal_1,0},
+    {hihat_off,0},
+    {cymbal_1_1,note_8},
+    {hihat_off,0},
+    {drum_1,note_8},
+    {cymbal_1,0},
+    {hihat_off,0},
+    {drum_1,note_8},
+    {cymbal_1_1,0},
+    {hihat_off,0},
+    {drum_2,note_8},
+    {drum_2_1,note_16},
+    {drum_2,note_16},
+    {drum_2_1,note_16},
+};
+
+const note_t mearsure_19[10] = {
+    {cymbal_2,0},
+    {drum_1,0},
+    {drum_1,note_4},
+    {drum_2,0},
+    {cymbal_1,0},//open
+    {cymbal_1_1,note_4},//open
+    {drum_1,0},
+    {drum_1,note_4},
+    {drum_2_1,0},
+    {cymbal_1,0},//open
+};
+
+const note_t mearsure_20[11] = {
+    {cymbal_2,0},
+    {drum_1,0},
+    {drum_1,note_4},
+    {drum_2,0},
+    {cymbal_1,0},//open
+    {cymbal_1,note_4},//open
+    {drum_1,0},
+    {drum_1,note_4},
+    {drum_2,0},
+    {drum_2_1,note_8},
+    {drum_2,note_16}
+};
+
+const note_t mearsure_21[12] = {
+    {cymbal_2,0},
+    {drum_1,0},
+    {drum_1,note_4},
+    {drum_2,0},
+    {drum_2_1,note_8},
+    {drum_2,note_16},
+    {cymbal_2,note_16},
+    {drum_1,0},
+    {drum_1,note_4},
+    {drum_2,0},
+    {drum_2_1,note_8},
+    {drum_2,note_16}
+};
+
+const note_t mearsure_22[12] = {
+    {cymbal_2,0},
+    {drum_1,0},
+    {drum_1,note_4},
+    {drum_2,0},
+    {drum_2_1,note_8},
+    {drum_2,note_16},
+    {drum_1,note_16},
+    {drum_2_1,0},
+    {drum_4,note_8},
+    {drum_1,note_8},
+    {drum_4,0},
+    {drum_5,note_8}
+};
+
+const note_t mearsure_23[13] = {
+    {cymbal_2,0},
+    {drum_1,0},
+    {cymbal_1,note_4},
+    {hihat_off,0},
+    {drum_1,0},
+    {drum_4,note_4},
+    {drum_5,0},
+    {drum_4,note_8},
+    {drum_5_1,0},
+    {drum_4,note_8},
+    {drum_5,0},
+    {drum_1,note_8},
+    {cymbal_2,0}
+};
+
+const note_t mearsure_24[7] = {
+    {rest,0},
+    {cymbal_2,note_4},
+    {drum_1,0},
+    {drum_2,note_4},
+    {drum_2_1,note_8},
+    {drum_4,note_8},
+    {drum_4,note_8}
+};
+
+const note_t mearsure_25[15] = {
+    {cymbal_2,0},
+    {drum_1,0},
+    {cymbal_1,note_4},
+    {hihat_off,0},
+    {drum_1,0},
+    {drum_1,note_8},
+    {cymbal_1,note_8},
+    {hihat_off,0},
+    {drum_1,0},
+    {drum_1,note_8},
+    {cymbal_1,note_8},
+    {hihat_off,0},
+    {drum_1,0},
+    {drum_2,note_8},
+    {drum_2_1,note_16}
+};
+
+const note_t mearsure_26[10] = {
+    {cymbal_2,0},
+    {drum_1,0},
+    {drum_1,note_4},
+    {drum_2,note_8},
+    {drum_2_1,note_16},
+    {cymbal_2,note_16},
+    {drum_1,0},
+    {drum_1,note_4},
+    {drum_2,note_8},
+    {drum_2_1,note_16}
+};
+
+const note_t mearsure_27[13] = {
+    {cymbal_2,0},
+    {drum_1,0},
+    {drum_1,note_4},
+    {drum_2,0},
+    {drum_2_1,note_8},
+    {drum_1,note_16},
+    {drum_2,0},
+    {drum_2_1,note_8},
+    {drum_1,note_8},
+    {drum_2,0},
+    {drum_2_1,note_16},
+    {drum_2,note_16},
+    {drum_2_1,note_16}
+};
+
+const note_t mearsure_28[15] = {
+    {cymbal_2,0},
+    {drum_1,0},
+    {drum_2,note_8},
+    {drum_2_1,note_16},
+    {drum_2,note_16},
+    {drum_2_1,note_16},
+    {cymbal_2,note_16},
+    {drum_1,0},
+    {drum_2,note_8},
+    {drum_2_1,note_16},
+    {drum_2,note_16},
+    {drum_2_1,note_16},
+    {drum_2,note_16},
+    {drum_2_1,note_8},
+    {drum_2,note_16}
+};
+
+const note_t mearsure_29[9] = {
+    {cymbal_2,0},
+    {drum_1,0},
+    {cymbal_1,note_4},//open
+    {drum_2,0},
+    {cymbal_1,note_4},//open
+    {drum_1,0},
+    {drum_1,note_8},
+    {cymbal_1,note_8},//open
+    {drum_2_1,0}
+};
+
+const note_t mearsure_30[8] = {
+    {cymbal_2,0},
+    {drum_1,0},
+    {cymbal_2,note_4},
+    {drum_2,0},
+    {cymbal_2,note_4},
+    {drum_1,0},
+    {cymbal_2,note_4},
+    {drum_2_1,0}
+};
+
+const note_t mearsure_31[11] = {
+    {cymbal_2,0},
+    {drum_1,0},
+    {cymbal_2,note_4},
+    {drum_2,0},
+    {drum_2_1,note_4},
+    {drum_2,note_16},
+    {drum_2_1,note_16},
+    {drum_2,note_16},
+    {drum_2_1,note_16},
+    {drum_2,note_8},
+    {drum_2_1,note_16}
+};
+
+const note_t mearsure_32[9] = {
+    {rest,0},
+    {drum_4,note_8},
+    {drum_5,note_8},
+    {cymbal_2,note_8},
+    {drum_1,0},
+    {cymbal_2,note_8},
+    {drum_2,note_8},
+    {drum_2_1,note_8},
+    {drum_2,note_8}
+};
+
+const note_t mearsure_33[5] = {
+    {cymbal_2,0},
+    {drum_1,0},
+    {rest,note_4},
+    {rest,note_4},
+    {rest,note_4}
+};
+
+const note_t mearsure_34[6] = {
+    {rest,0},
+    {rest,note_4},
+    {rest,note_4},
+    {drum_2,note_4},
+    {drum_1,note_8},
+    {cymbal_2,0}
+};
+
+const note_t mearsure_35[18] = {
+    {cymbal_2,0},
+    {drum_1,0},
+    {drum_1,note_4},
+    {cymbal_1,0},
+    {hihat_off,0},
+    {cymbal_1_1,note_8},
+    {hihat_off,0},
+    {cymbal_1,note_8},
+    {hihat_off,0},
+    {drum_1,0},
+    {cymbal_1_1,note_8},
+    {hihat_off,0},
+    {cymbal_1,note_8},
+    {hihat_off,0},
+    {drum_1,0},
+    {drum_2,0},
+    {cymbal_1_1,note_8},
+    {hihat_off,0}
+};
+
+const note_t mearsure_36[11] = {
+    {cymbal_2,0},
+    {drum_1,0},
+    {cymbal_1,note_4},
+    {hihat_off,0},
+    {drum_1,0},
+    {cymbal_1,note_4},
+    {hihat_off,0},
+    {drum_2,0},
+    {cymbal_1,note_4},
+    {hihat_off,0},
+    {drum_2_1,note_8}
+};
+
+const note_t mearsure_37[12] = {
+    {cymbal_1,0},
+    {hihat_off,0},
+    {drum_1,0},
+    {drum_2,note_8},
+    {cymbal_1,note_8},
+    {hihat_off,0},
+    {drum_1,0},
+    {cymbal_1,note_4},
+    {hihat_off,0},
+    {drum_2,0},
+    {cymbal_1,note_4},
+    {hihat_off,0}
+};
+
+const note_t mearsure_38[8] = {
+    {cymbal_1,0},
+    {hihat_off,0},
+    {drum_1,0},
+    {cymbal_1,note_4},
+    {hihat_off,0},
+    {drum_2,note_4},
+    {drum_2_1,note_8},
+    {drum_2,note_8}
+};
+
+const note_t mearsure_39[5] = {
+    {cymbal_2,0},
+    {cymbal_2,note_4},
+    {drum_1,0},
+    {rest,note_4},
+    {rest,note_4}
+};
+        
+}
\ No newline at end of file