ERIS CORE

◆ update()

void FLASHMEM AppCQT::update ( )
inlineprotectedvirtual

update loop

Reimplemented from AppBaseClass.

Definition at line 279 of file appCQT.h.

279  {
280  if (!is_active) return;
281  rt_calls++;
282  //if (rt_calls < 10000) return;
283  if (fft == NULL || fft2 == NULL) return;
284 
285  if (fft2->capture() && fft->capture()){
286  //AudioNoInterrupts();
287  fft2->analyze();
288  fft->analyze();
289  //AudioInterrupts();
290  updateOscillatorBank(true);
291  updateOscillatorBank(false);
292  am->data->increment(CQT_UPDATE_COUNT);
293  }
294  //Serial.flush();
295  }; //allways called even if app is not active
AppManager * am
Definition: AppBaseClass.h:38
double rt_calls
Definition: appCQT.h:69
bool is_active
Definition: appCQT.h:68
erisAudioAnalyzeFFT1024 * fft
Definition: appCQT.h:79
erisAudioAnalyzeFFT1024 * fft2
Definition: appCQT.h:80
void FASTRUN updateOscillatorBank(bool low_range_switch)
Definition: appCQT.h:329
SvcDataDictionary * data
Definition: AppManager.h:63
bool increment(const char *key)
increments the value of a global record creates a new record if one does not exist and initializes ...

References AppBaseClass::am, erisAudioAnalyzeFFT1024::analyze(), erisAudioAnalyzeFFT1024::capture(), AppManager::data, fft, fft2, SvcDataDictionary::increment(), is_active, rt_calls, and updateOscillatorBank().

+ Here is the call graph for this function: