Hello GotoLoop,
Thank you for your reply. I see your point on the local variable. But then how do you check for the black the parts (hole in piano roll) verse the white (the paper) .. This is what it looks like : http://vimeo.com/69498408
I can't get my head around the error ***The constructor Pianola is undefined witch must be in relation to my string array. and how to check for black pixels. I suppose a threshold would be better way to go. Yes I am having trouble with this boolean.
boolean hole(Pianola p) {
//call hole with a colour
int threshold = color(127);
//? roll.loadPixels();
if (threshold < 127){
return true;
} else{
return false;
}
}