ERIS CORE

◆ changeVoice()

void FASTRUN AppAudioToPolyphonic::changeVoice ( uint16_t  voice_type)
inline

Definition at line 389 of file AppAudioToPolyphonic.h.

389  {
390  char buffer[32];
392  if (ad == NULL) return;
393  for (int16_t i=1; i <= OSC_BANK_SIZE; i++){
394  sprintf(buffer, "waveform:%d", i);
396  if (w != NULL) w->begin(voice_type);
397  }
398 
399  //change the voice of the test signal too
400  w = (erisAudioSynthWaveform*) (ad->getAudioStreamObjByName("waveform:17"));
401  if (w != NULL) w->begin(voice_type);
402  return;
403  }
AudioDirector * ad
Definition: AppBaseClass.h:37
AudioStream * getAudioStreamObjByName(const char *AudioStreamObjName)

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

Referenced by messageHandler().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: