#include <avr/wdt.h>\r
#include <avr/power.h>\r
#include <avr/pgmspace.h>\r
+ #include <avr/interrupt.h>\r
#include <stdbool.h>\r
\r
#include "Descriptors.h"\r
/** LED mask for the library LED driver, to indicate that an error has occurred in the USB interface. */\r
#define LEDMASK_USB_ERROR (LEDS_LED1 | LEDS_LED3)\r
\r
- #define AUDIO_SAMPLE_FREQUENCY 24000\r
+ #define SCALE_FACTOR 65536\r
+ #define BASE_FREQUENCY 27.5\r
+ #define NOTE_OCTIVE_RATIO 1.05946\r
+ #define BASE_PITCH_INDEX 21\r
+ #define MAX_SIMULTANEOUS_NOTES 3\r
+ \r
+ #define BASE_INCREMENT (((F_CPU / 255 / 2) / BASE_FREQUENCY))\r
\r
/* Function Prototypes: */\r
void SetupHardware(void);\r