Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : Piano Roll

$
0
0
Your Note.hole() method doesn't make any sense.
Your code line ->      int c = color(0, 255);      local variable c always get the same value. That is -> #000000.
And obviously, it's greater than 255 and it'll always return false. No need to check that out @ if block. 

Another issue is that you reload your .wav snippet files all the time within draw()
By creating new instances of class Note inside a for loop there.
Which is also very similar to 1 already within setup().



Viewing all articles
Browse latest Browse all 1768

Trending Articles