添加一些关于midi播放的项目
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user