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
MyAcousticEffector_MIC/GuiChanger.hpp
- Committer:
- MikamiUitOpen
- Date:
- 2017-04-13
- Revision:
- 14:34c356ceb8e7
File content as of revision 14:34c356ceb8e7:
//--------------------------------------------------------------
// 信号処理の種類に応じた 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