Commit b5ebbd80 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Use enums

parent 5f521a33
......@@ -21,7 +21,8 @@ const uint16_t dac_scale[NUM_VOICES] = {
8384,
};
#define NUM_SEMITONES 12
enum { NUM_SEMITONES = 12 };
// This tuning is chosen to be 'good enough' for the 8382-8384 scale range above
const int16_t dac_semitones[NUM_SEMITONES] = {
0,
......
......@@ -7,7 +7,9 @@ void dac_set_note2(uint8_t voice, uint8_t note, int16_t detune, uint16_t bend);
void dac_init(void);
uint16_t dac_pitch_delta(uint8_t semitones);
#define BEND_CENTER 8192
#define BEND_MAX 16383
enum {
BEND_CENTER = 8192,
BEND_MAX = 16383,
};
#endif
#ifndef _notes_h
#define _notes_h
#define NUM_NOTES 128
enum {
NUM_NOTES = 128,
};
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment