receiver method for inter-app string based communication
- Parameters
-
Reimplemented from AppBaseClass.
Definition at line 447 of file appCQT.h.
448 if(strcmp(message,ENABLE)==0){
450 }
else if(strcmp(message,DISABLE)==0){
454 if(sender->
isName(
"SCI")){
455 Serial.print(F(
"M appCQT::MessageHandler SCI param: "));
456 Serial.println(message);
457 if (strcmp(message,CQT_INFO)==0){
461 for (uint16_t i=1;i< NOTE_ARRAY_LENGTH - 1;i++){
463 sci->printf(F(
"M L %d,%f,%f,%d,%d,%d\t\t\t"),
fftLowRR[i].
cqtBin,
fftLowRR[i].
startFrequency,
fftLowRR[i].
stopFrequency,
fftLowRR[i].
startBin,
fftLowRR[i].
stopBin,
fftLowRR[i].
stopBin-
fftLowRR[i].
startBin);
464 sci->printf(F(
"M H %d,%f,%f,%d,%d,%d\n"),
fftHighRR[i].
cqtBin,
fftHighRR[i].
startFrequency,
fftHighRR[i].
stopFrequency,
fftHighRR[i].
startBin,
fftHighRR[i].
stopBin,
fftHighRR[i].
stopBin-
fftHighRR[i].
startBin);
SvcSerialCommandInterface * sci
bool isName(const char *name_string)
Compares the name_string to the app class instance name (string)
void FLASHMEM onFocus()
Event handler called when the app gains focus.
void FLASHMEM onFocusLost()
Event handler called when the app loses focus.
FFTReadRange fftLowRR[NOTE_ARRAY_LENGTH]
FFTReadRange fftHighRR[NOTE_ARRAY_LENGTH]
bool requestStartLZ4Message()
request to start a lz4 compressed message starts the message and returns true if available returns f...
void sendLZ4Message()
Calling this function signals the end of a compressed message. The txBuffer contents are lz4 compres...
static void sort_fftrr_by_cqt_bin(FFTReadRange *a, size_t n)
References cqtBin, fftHighRR, fftLowRR, AppBaseClass::isName(), onFocus(), onFocusLost(), SvcSerialCommandInterface::requestStartLZ4Message(), AppBaseClass::sci, SvcSerialCommandInterface::sendLZ4Message(), erisAudioAnalyzeFFT1024::sort_fftrr_by_cqt_bin(), startBin, startFrequency, stopBin, and stopFrequency.