ReSpeaker DSP V02
Dependencies: mbed MbedJSONValue
Diff: main.cpp
- Revision:
- 7:25c81cb23e42
- Parent:
- 6:e8b4ca41c691
- Child:
- 8:8a3e6241c104
--- a/main.cpp Mon Aug 06 09:34:45 2018 +0000 +++ b/main.cpp Mon Aug 06 12:30:23 2018 +0000 @@ -135,6 +135,7 @@ // 1 - passthrough - no filter // 2 - highpass - High Pass filter // 3 - hpf_trig - High Pass filter + Trigger mode +// 4 - gains_trig - highpass filter + trigger mode + Gains vector // Trigger mode variables @@ -211,6 +212,8 @@ highpass(); } else if (operationMode == 3) { highpassTrig(); + } else if (operationMode == 4) { + GainsTrig(); } //highpass_filter(); // more elegant but much slower option: @@ -419,6 +422,9 @@ }else if( modeType == "hpf_trig" ) { FilterFunction = highpassTrig; operationMode = 3 ; + }else if( modeType == "gain_trig" ) { + FilterFunction = GainsTrig; + operationMode = 4 ; } else { switch_dsp.printf("undefined mode %s \r\n", modeType.c_str()); FilterFunction = offMode;