Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed USBDevice PinDetect
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
Generated on Thu Aug 11 2022 16:09:57 by
1.7.2