USBMIDI sampled pipe organ uses real pipe organ samples to produce a realistic sound with 16 note polyphony. A serial output will drive external TPIC6A596 shift registers that could be used to drive pipe organ magnets (Solenoid valves)
Dependencies: TextLCD USBDevice mbed
Diff: main.cpp
- Revision:
- 18:472954b6b711
- Parent:
- 17:7f27f4921305
- Child:
- 19:4cec60669626
--- a/main.cpp Thu Nov 12 22:48:31 2015 +0000 +++ b/main.cpp Thu Nov 12 23:46:17 2015 +0000 @@ -10,10 +10,9 @@ #include "Bourdon_44.h" //This is the best sample 44.1Khz #include "Montre_44.h" -const float sample1_rate = 0.00002268; //44.1KHz -const float freqtab[] = { -//For Organ Sample played at sample speed -1, 1.0596, 1.1227, 1.1893, 1.2599, 1.3348, 1.4144, 1.4985, 1.5872, 1.6819, 1.782, 1.888, 2 }; +const float sample1_rate = 0.00002268; //44.1KHz +//For Organ Sample played at sample speed +const float freqtab[] = {1, 1.0596, 1.1227, 1.1893, 1.2599, 1.3348, 1.4144, 1.4985, 1.5872, 1.6819, 1.782, 1.888, 2}; #include "USBMIDI.h"