ERIS CORE

◆ onAnalog1()

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

Event handler for analog 1 event.

Parameters
uval
fval

Reimplemented from AppBaseClass.

Definition at line 275 of file AppAudioToPolyphonic.h.

275  {
276  if (ad == NULL) return;
277  // Serial.print("AN1 ");Serial.printf("%0.4f\n",fval);
278  //analog 1 controls the dry signal input to the fft blocks (used by the cqt app)
280  if (amp != NULL) amp->gain(2 + log1p(fval));
281  };
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: