A MIDI piano synthesizer that implements the Karplus Strong physical modeling algorithm.

Dependencies:   mbed USBDevice PinDetect

Committer:
asuszek
Date:
Sun Apr 10 22:06:25 2016 +0000
Revision:
2:e21bd39bdf46
Child:
6:688698f814c0
Cleaned up main and added a class for constants.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
asuszek 2:e21bd39bdf46 1
asuszek 2:e21bd39bdf46 2 #ifndef AS_CONSTANTS_H
asuszek 2:e21bd39bdf46 3 #define AS_CONSTANTS_H
asuszek 2:e21bd39bdf46 4
asuszek 2:e21bd39bdf46 5 #define DEBUG
asuszek 2:e21bd39bdf46 6
asuszek 2:e21bd39bdf46 7 /* A namespace for all global constants.
asuszek 2:e21bd39bdf46 8 * Access using C::VAR_NAME
asuszek 2:e21bd39bdf46 9 */
asuszek 2:e21bd39bdf46 10 namespace C {
asuszek 2:e21bd39bdf46 11
asuszek 2:e21bd39bdf46 12 const bool USE_PWM = true;
asuszek 2:e21bd39bdf46 13 const int SAMPLE_RATE = 44100;
asuszek 2:e21bd39bdf46 14 const int MAX_POLYPHONY = 4;
asuszek 2:e21bd39bdf46 15 const int MIN_FREQUENCY = 110;
asuszek 2:e21bd39bdf46 16
asuszek 2:e21bd39bdf46 17 } // namespace C
asuszek 2:e21bd39bdf46 18
asuszek 2:e21bd39bdf46 19 #endif