a newbie error i dont understand.
in
Programming Questions
•
3 years ago
- import arb.soundcipher.*;
note[][] beats;
int beatcounter;
int[] playing;
SoundCipher sc;
void setup(){
size(400,400);
background(100);
beats = new note[8][8];
sc = new SoudCipher();
frameRate(2);
for(int x = 0; x< height; x +=50){
for(int y = 0; y < width; y+=50){
switch(x){
case = 0:
beats[x][y] = new note(x*50,y*50,72);
case = 1:
beats[x][y] = new note(x*50,y*50,71);
case = 2:
beats[x][y] = new note(x*50,y*50,69);
case = 3:
beats[x][y] = new note(x*50,y*50,67);
case = 4:
beats[x][y] = new note(x*50,y*50,65);
case = 5:
beats[x][y] = new note(x*50,y*50,64);
case = 6:
beats[x][y] = new note(x*50,y*50,62);
case = 7:
beats[x][y] = new note(x*50,y*50,60);
case = 8:
beats[x][y] = new note(x*50,y*50,59);
}
}
}
}
and when i hit run, it says 'unexpected token: void', highlighting the setup method.
i've tried commenting out the soundcipher lines, the global declarations, removing the return method, changing the return method, adding a return statement, and no progress was made=[
help out a confused newb guys?
1