Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Declaration of the PianoView class for the Piano tutorial on the SSaurel's Channel
/**
* 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