Reverb system using parallel structure of comb filters and cascade structure of allpass filters for ST Nucleo F401RE.
Dependencies: UITDSP_ADDA mbed
Diff: main.cpp
- Revision:
- 5:3568300a78d8
- Parent:
- 3:c0d8eec43a4e
--- a/main.cpp Sat Nov 15 06:35:08 2014 +0000 +++ b/main.cpp Sat Jul 25 07:22:14 2015 +0000 @@ -1,19 +1,19 @@ //-------------------------------------------------------------- // Reverb system using comb filter and allpass filter -// 2014/11/12, Copyright (c) 2014 MIKAMI, Naoki +// sw number = even : No reverb +// sw number = odd : Reverb +// 2015/07/25, Copyright (c) 2015 MIKAMI, Naoki //-------------------------------------------------------------- -#include "mbed.h" - -#include "ADC_Base.hpp" // for ADC not using interrupt -#include "DAC_MCP4922.hpp" // for DAC MCP4922 +#include "ADC_BuiltIn.hpp" // for ADC not using interrupt +#include "DAC_MCP4921.hpp" // for DAC MCP4921, MCP4922 #include "reverb_unit.hpp" using namespace Mikami; -const int FS_ = 12000; // Sampling frequency: 12 kHz -ADC_Base adc_(A0, FS_); // for AD -DAC_MCP4922 myDac_; // for DA +const int FS_ = 12000; // Sampling frequency: 12 kHz +ADC_BuiltIn adc_(A0, FS_); // for AD +DAC_MCP4921 myDac_; // for DA const float G_C_ = 0.8f; const float G_A_ = 0.6f;