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

Dependencies:   mbed USBDevice PinDetect

Constants.h

Committer:
asuszek
Date:
2016-04-17
Revision:
13:bb0ec927e458
Parent:
6:688698f814c0
Child:
15:aa5a4c350251

File content as of revision 13:bb0ec927e458:


#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 = 110;  

const float STRING_DAMPING = 0.7;
const float STRING_DAMPING_VARIATION = 0.3;
    
} // namespace C 

#endif