A MIDI piano synthesizer that implements the Karplus Strong physical modeling algorithm.
Dependencies: mbed USBDevice PinDetect
Diff: Constants.h
- Revision:
- 13:bb0ec927e458
- Parent:
- 6:688698f814c0
- Child:
- 15:aa5a4c350251
--- a/Constants.h Wed Apr 13 19:48:15 2016 +0000 +++ b/Constants.h Sun Apr 17 21:35:23 2016 +0000 @@ -10,9 +10,12 @@ */ namespace C { -const int SAMPLE_RATE = 44100; +const int SAMPLE_RATE = 22050; const int MAX_POLYPHONY = 4; const int MIN_FREQUENCY = 110; + +const float STRING_DAMPING = 0.7; +const float STRING_DAMPING_VARIATION = 0.3; } // namespace C