We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I'm getting an error when running my program. This is what it shows: Cannot cast from Controller<capture#14-of?> to Radio Does anyone know how I fix this problem, so that it can cast correctly. Here is the snippet of code where the problem is coming from:
if(theEvent.controller().name()=="rad1") { Radio b=(Radio)controlP5.controller("rad2"); currScale=new Scale((int)theEvent.controller().value()+9,(int)b.value()); grid.update(currScale,BASE_DUR,(int)complen.value()); }