Created
March 20, 2018 10:11
-
-
Save ssaurel/c06d923e14002fa49d452c472b0a20b2 to your computer and use it in GitHub Desktop.
Declaration of the PianoView class for the Piano tutorial on the SSaurel's Channel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by ssaurel on 15/03/2018. | |
*/ | |
public class PianoView extends View { | |
public static final int NB = 14; | |
private Paint black, yellow, white; | |
private ArrayList<Key> whites = new ArrayList<>(); | |
private ArrayList<Key> blacks = new ArrayList<>(); | |
private int keyWidth, height; | |
private AudioSoundPlayer soundPlayer; | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment