A MIDI piano synthesizer that implements the Karplus Strong physical modeling algorithm.
Dependencies: mbed USBDevice PinDetect
Diff: Constants.h
- Revision:
- 2:e21bd39bdf46
- Child:
- 6:688698f814c0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Constants.h Sun Apr 10 22:06:25 2016 +0000 @@ -0,0 +1,19 @@ + +#ifndef AS_CONSTANTS_H +#define AS_CONSTANTS_H + +#define DEBUG + +/* A namespace for all global constants. + * Access using C::VAR_NAME + */ +namespace C { + +const bool USE_PWM = true; +const int SAMPLE_RATE = 44100; +const int MAX_POLYPHONY = 4; +const int MIN_FREQUENCY = 110; + +} // namespace C + +#endif \ No newline at end of file