27 lines
499 B
C
27 lines
499 B
C
#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 |