![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Vowel synthesizer using digital resonators. This program can run without LCD display. ディジタル共振器を使った合成母音ジェネレータ.LCD表示器なしでも動く.
Dependencies: UITDSP_ADDA UIT_ACM1602NI UIT_AQM1602 mbed
Diff: main.cpp
- Revision:
- 1:aab9254a774d
- Parent:
- 0:6c67a9387981
- Child:
- 2:6a0a8374b4ee
diff -r 6c67a9387981 -r aab9254a774d main.cpp --- a/main.cpp Tue Dec 02 00:06:08 2014 +0000 +++ b/main.cpp Tue Dec 02 03:10:09 2014 +0000 @@ -11,6 +11,7 @@ #include "Rosenberg.hpp" // Glottal source #include "Resonator.hpp" // Resonator corresponding to vocal tract #include "Radiator.hpp" // Radiator from mouth +#include "ACM1602NI.hpp" // for LCD display using namespace Mikami; @@ -46,8 +47,15 @@ myDac_.ScfClockTim3(336000); // cutoff frequency: 3.36 kHz + Acm1602Ni lcd; // objetc for display using LCD + lcd.Clear(); + lcd.WriteStringXY("Vowel Synthesize", 0, 0); + int sw = (sw8_ << 3) | (sw4_ << 2) | (sw2_ << 1) | sw1_; if (sw > 5) sw = 5; + + char str[4] = {'/', 0xB0+sw, '/', NULL}; + lcd.WriteStringXY(str, 0, 1); // -アイウエオ // 共振器の準備 if (sw > 0)