我需要做一个电子节拍器,现在我有sampling, 用matlab 转化成数列
#include
#include
#include
#include
#define NUM_SAMPLES 8
//Sound 1 - Bass01
const uint8_t sample_text_1[] ;PROGMEM = int "Bass01\0";
unsigned char sample_1[2223];PROGMEM = {84,84,84,84,84,84,84,84,83,83,83,83,82,82,82,81,81,81,80,80,79,78,78,77,76,76,75,74,73,72,71,70,69,68,67,66,65,63,62,60,59,57,56,54,53,51,49,48,46,44,43,41,40,38,37,35,34,32,30,29,26,24,22,21,21,21,23,25,28,31,35,40,45,50,54,59,64,69,74,78,83,88,93,98,103,108,113,117,122,127,131,135,139,143,147,150,154,157,161,163,166,167,167,167,167,167,167,167,167,167,166,166,165,165,164,164,163,163,162,162,161,160,158,156,154,151,147,143,139,134,129,124,120,115,111,107,103,99,95,91,87,83,79,75,71,68,64,60,56,53,49,46,43,40,37,34,31,29,26,23,21,18,16,14,12,10,8,7,6,5,5,5,5,6,7,7,8,9,9,9,10,10,10,11,11,11,11,12,12,12,12,12,12,12,13,14,16,17,19,21,24,27,30,33,37,41,45,49,53,57,61,65,69,73,77,81,86,90,95,99,104,109,113,117,121,125,129,133,136,140,143,147,150,153,156,158,160,161,162,163,164,164,164,163,163,162,161,161,160,160,159,159,159,158,158,158,157,157,157,157,156,156,156,156,156,156,155,154,153,151,149,147,144,141,138,135,131,128,124,121,117,113,110,106,103,99,95,92,88,84,80,76,73,69,65,61,58,54,51,47,44,40,37,34,31,28,25,22,19,17,14,13,11,10,9,8,7,7,7,7,8,8,9,9,10,10,10,11,11,11,11,12,12,12,13,13,14,16,17,19,21,23,25,27,29,31,33,36,38,39,41,43,45,46,48,50,52,54,57,59,60,62,64,65,67,68,69,70,72,73,74,75,76,77,78,79,80,81,81,82,83,84,85,85,86,86,86,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,86,86,85,85,84,84,83,82,82,81,80,80,79,78,77,76,75,74,73,71,70,69,68,67,65,64,63,61,60,58,57,56,54,53,52,50,49,48,46,45,44,43,42,41,40,39,38,38,37,36,35,34,34,33,32,32,32,31,31,30,30,29,29,29,29,28,28,28,28,28,28,29,29,30,30,31,32,33,34,35,37,38,40,42,43,45,47,48,50,52,53,55,56,58,60,62,64,67,70,73,76,79,81,84,87,90,93,96,99,101,104,107,110,113,116,119,122,124,127,130,132,134,136,138,140,142,143,145,146,148,150,152,154,155,157,158,159,160,160,161,161,161,161,161,161,161,161,161,160,160,160,160,160,160,160,160,160,160,160,160,160,160,160,160,160,160,160,161,161,161,161,161,161,161,162,162,162,163,163,163,164,164,164,165,165,165,165,166,166,166,166,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,166,165,164,162,161,159,157,154,152,150,148,145,143,141,138,136,133,131,128,125,123,120,117,114,112,109,106,103,100,97,94,91,88,85,82,80,77,74,71,69,66,64,61,59,56,54,51,49,46,44,42,40,38,36,34,32,30,28,26,25,23,22,20,19,17,16,15,14,13,12,12,11,11,11,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,9,9,9,9,9,9,9,8,8,8,8,7,7,7,7,7,6,6,6,6,5,5,5,5,4,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,5,6,7,8,9,11,12,14,15,17,18,20,22,23,25,27,29,31,33,35,37,39,41,44,46,49,51,54,56,59,61,64,66,68,71,73,75,77,79,81,83,85,87,89,90,92,94,96,97,99,101,102,104,106,108,109,111,113,115,116,118,120,121,123,125,127,128,130,132,134,135,137,139,140,142,144,145,147,148,150,151,153,154,155,156,157,158,159,159,159,160,160,161,161,161,161,161,161,161,161,162,162,162,162,162,162,162,162,162,163,163,163,163,163,163,163,164,164,164,164,164,164,164,165,165,165,165,165,166,166,166,166,166,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,166,165,164,163,162,161,160,159,158,156,155,154,153,152,151,150,150,149,148,148,147,147,146,145,145,144,144,143,142,142,141,140,140,139,138,137,137,136,135,134,133,132,131,130,129,128,127,126,125,124,123,121,120,119,117,116,114,113,111,110,108,106,105,103,101,99,98,96,94,92,90,88,86,84,82,81,79,77,75,73,71,69,67,65,63,62,60,58,56,55,54,52,51,50,49,48,47,46,45,43,42,42,41,40,39,38,37,36,36,35,34,33,33,32,32,31,31,30,30,29,29,28,28,27,27,27,26,26,25,25,24,24,23,23,22,22,21,21,20,20,19,18,18,17,17,16,15,15,14,13,13,12,12,11,10,10,9,9,8,7,7,6,6,5,5,4,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,4,5,6,7,8,9,9,10,11,12,13,14,15,16,17,19,20,21,22,23,25,26,27,29,30,32,33,35,36,38,39,41,42,44,45,47,49,50,52,54,55,57,59,60,62,64,66,67,69,71,72,74,76,77,79,80,81,83,84,85,87,88,89,90,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,107,108,109,110,111,111,112,113,114,114,115,116,117,117,118,119,119,120,121,121,122,123,123,124,125,125,126,127,128,128,129,130,130,131,132,132,133,134,134,135,136,136,137,138,138,139,140,140,141,142,142,143,143,144,145,145,146,146,147,148,148,149,149,150,150,151,151,151,152,152,152,153,153,154,154,154,154,155,155,155,155,155,156,156,156,156,156,156,156,156,156,156,156,156,156,156,156,156,156,156,156,155,155,155,155,155,155,154,154,154,154,153,153,153,153,152,152,152,151,151,151,150,150,150,149,149,149,148,148,147,147,147,146,146,145,145,144,144,143,142,142,141,141,140,139,139,138,137,137,136,135,134,134,133,132,131,130,129,129,128,127,126,125,124,123,123,122,121,120,119,118,117,116,116,115,114,113,112,111,111,110,109,108,107,107,106,105,104,103,103,102,101,100,99,99,98,97,96,95,95,94,93,92,92,91,90,89,89,88,87,86,86,85,84,84,83,82,81,81,80,79,79,78,77,77,76,75,75,74,74,73,72,72,71,71,70,69,69,68,68,67,67,66,66,65,65,64,64,63,63,63,62,62,61,61,61,60,60,60,59,59,59,58,58,58,57,57,57,57,56,56,56,56,55,55,55,55,55,55,54,54,54,54,54,54,54,54,54,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,53,53,53,53,53,53,53,53,53,53,53,53,53,54,54,54,54,54,54,55,55,55,55,55,55,56,56,56,56,57,57,57,57,57,58,58,58,58,59,59,59,59,60,60,60,61,61,61,61,62,62,62,62,63,63,63,64,64,64,65,65,65,66,66,66,67,67,67,68,68,68,69,69,69,70,70,70,71,71,72,72,72,73,73,73,74,74,75,75,75,76,76,76,77,77,77,78,78,79,79,79,80,80,80,81,81,81,82,82,82,83,83,83,84,84,84,85,85,85,86,86,86,86,87,87,87,88,88,88,88,89,89,89,89,89,90,90,90,90,90,91,91,91,91,91,91,91,91,92,92,92,92,92,92,92,92,92,92,93,93,93,93,93,93,93,93,93,93,93,93,93,93,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,93,93,93,93,93,93,93,93,93,93,93,93,93,93,92,92,92,92,92,92,92,92,92,92,92,91,91,91,91,91,91,91,91,91,91,91,90,90,90,90,90,90,90,90,90,90,89,89,89,89,89,89,89,89,89,89,88,88,88,88,88,88,88,88,88,88,88,87,87,87,87,87,87,87,87,87,87,87,87,87,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84};
错误是1 this declaration has no storage class or type specifier.
2 expected an expression
|