Austin Suszek / Mbed 2 deprecated MIDISynthesizer

Dependencies:   mbed USBDevice PinDetect

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Constants.h Source File

Constants.h

00001 
00002 #ifndef AS_CONSTANTS_H
00003 #define AS_CONSTANTS_H
00004 
00005 //#define DEBUG
00006 #define USE_PWM true
00007 
00008 /* A namespace for all global constants.
00009  * Access using C::VAR_NAME
00010  */
00011 namespace C {
00012     
00013 const int SAMPLE_RATE = 22050;
00014 const int MAX_POLYPHONY = 4;
00015 const int MIN_FREQUENCY = 55;  
00016 
00017 const float STRING_DAMPING_MIN = 0.1;
00018 const float STRING_DAMPING_MAX = 0.7;
00019 const float STRING_DAMPING_VARIATION = 0.25;
00020 
00021 const float CHARACTER_VARIATION = 0.5;
00022 const float PLUCK_DAMPING = 0.5;
00023 const float PLUCK_DAMPING_VARIATION = 0.25;
00024     
00025 } // namespace C 
00026 
00027 #endif