A MIDI piano synthesizer that implements the Karplus Strong physical modeling algorithm.
Dependencies: mbed USBDevice PinDetect
Constants.h
- Committer:
- asuszek
- Date:
- 2016-04-21
- Revision:
- 19:894c31ee9ad4
- Parent:
- 18:26d93c5b9bb6
- Child:
- 20:bf675ba2c454
File content as of revision 19:894c31ee9ad4:
#ifndef AS_CONSTANTS_H #define AS_CONSTANTS_H //#define DEBUG #define USE_PWM true /* A namespace for all global constants. * Access using C::VAR_NAME */ namespace C { const int SAMPLE_RATE = 22050; const int MAX_POLYPHONY = 4; const int MIN_FREQUENCY = 55; const float STRING_DAMPING_MIN = 0.1; const float STRING_DAMPING_MAX = 0.7; const float STRING_DAMPING_VARIATION = 0.35; const float CHARACTER_VARIATION = 0.5; const float PLUCK_DAMPING = 0.5; const float PLUCK_DAMPING_VARIATION = 0.25; } // namespace C #endif