void chooseWave()
{
waveNumber = map(mozziAnalogRead(pot2),0,1023, 5, 0);
switch (waveNumber)
{
case 0:
mainVCO.setTable(SIN2048_DATA);
break;
case 1:
mainVCO.setTable(TRIANGLE2048_DATA);
break;
case 2:
mainVCO.setTable(SAW2048_DATA);
break;
case 3:
mainVCO.setTable(SMOOTHSQUARE8192_DATA);
break;
case 4:
//noise.setTable(WHITENOISE8192_DATA);
break;
}
}
so you can't mix both
I read this somewhere but can't find it (anyone to confirm ?)
Also changing wave with the pot are not easy
why don't you just do :
void updateControl()
{
chooseOctave();
chooseWave();
controlPitch();
}