ERIS CORE

◆ onAnalog3()

void FLASHMEM AppAudioToPolyphonic::onAnalog3 ( uint16_t  uval,
float  fval 
)
inlinevirtual

Event handler for analog 3 event.

Parameters
uval
fval

Reimplemented from AppBaseClass.

Definition at line 291 of file AppAudioToPolyphonic.h.

291  {
292  float lp,hp,gain;
293  //Serial.print("AN3 ");Serial.printf("%0.4f\n",fval);
294  //analog 3 controls the dry signal biquad output filter and additional gain stage (post cqt)
295  if (ad == NULL) return;
298  if (filter != NULL && mixer != NULL){
299  lp = 300.0 + (18000.0 * log1p(fval));
300  hp = 210.0 + (100.0 * log1p(fval));
301  gain = log1p(fval);
302  filter->setLowpass(0,lp);
303  filter->setHighpass(1,hp);
304  //mixer->gain(2,gain);
305  }
306  };
AudioDirector * ad
Definition: AppBaseClass.h:37
AudioStream * getAudioStreamObjByName(const char *AudioStreamObjName)

References AppBaseClass::ad, and AudioDirector::getAudioStreamObjByName().

+ Here is the call graph for this function: