ERIS CORE

◆ onAnalog2()

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

Event handler for analog 2 event.

Parameters
uval
fval

Reimplemented from AppBaseClass.

Definition at line 283 of file AppAudioToPolyphonic.h.

283  {
284  if (ad == NULL) return;
285  //Serial.print("AN2 ");Serial.printf("%0.4f\n",fval);
286  //analog 2 controls the resynthesized signal biquad output filter
288  if (filter != NULL) filter->setLowpass(0,220.0 + (15000.0 * fval));
289  };
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: