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: F746_GUI F746_SAI_IO FrequencyResponseDrawer SD_PlayerSkeleton UIT_FFT_Real
Diff: MyAcousticEffector_MIC/GuiChanger.hpp
- Revision:
- 14:34c356ceb8e7
diff -r 6ed68345d5a6 -r 34c356ceb8e7 MyAcousticEffector_MIC/GuiChanger.hpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/MyAcousticEffector_MIC/GuiChanger.hpp Thu Apr 13 23:23:04 2017 +0000
@@ -0,0 +1,37 @@
+//--------------------------------------------------------------
+// 信号処理の種類に応じた GUI 部品の状態を変更する
+//
+// 2017/04/08, Copyright (c) 2017 MIKAMI, Naoki
+//--------------------------------------------------------------
+
+#ifndef GUI_CHANGER_HPP
+#define GUI_CHANGER_HPP
+
+// Through の場合
+void SetThrough(SeekBar *barReverb, SeekBar *barFqCh,
+ NumericLabel<int> *frqLabel)
+{
+ barReverb->Inactivate();
+ barFqCh->Inactivate();
+ frqLabel->Redraw(GuiBase::ENUM_INACTIVE_TEXT);
+}
+
+// 残響生成の場合
+void SetReverb(SeekBar *barReverb, SeekBar *barFqCh,
+ NumericLabel<int> *frqLabel)
+{
+ barReverb->Activate();
+ barFqCh->Inactivate();
+ frqLabel->Redraw(GuiBase::ENUM_INACTIVE_TEXT);
+}
+
+// 周波数シフトの場合
+void SetFrqShifter(SeekBar *barReverb, SeekBar *barFqCh,
+ NumericLabel<int> *frqLabel)
+{
+ barReverb->Inactivate();
+ barFqCh->Activate();
+ frqLabel->Redraw(GuiBase::ENUM_TEXT);
+}
+
+#endif // GUI_CHANGER_HPP