添加一些关于midi播放的项目

This commit is contained in:
terryLP
2025-03-24 14:30:56 +08:00
parent e31eb22077
commit 498b4ef13b
699 changed files with 186162 additions and 1 deletions
+27
View File
@@ -0,0 +1,27 @@
#ifndef __WAVETABLE__
#define __WAVETABLE__
#ifdef __cplusplus
extern "C" {
#endif
// Sample's base frequency: 523.629906 Hz
// Sample's sample rate: 32000 Hz
#define WAVETABLE_LEN 2608
#define WAVETABLE_ATTACK_LEN 1998
#define WAVETABLE_LOOP_LEN 610
#ifndef __ASSEMBLER__
#include <stdint.h>
extern const int8_t WaveTable[WAVETABLE_LEN];
extern const uint16_t WaveTable_Increment[];
#else
.extern WaveTable
.extern WaveTable_Increment
#endif
#ifdef __cplusplus
} //end extern "C"
#endif
#endif