Skip to content

Instantly share code, notes, and snippets.

@ssaurel
Created March 20, 2018 10:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssaurel/c06d923e14002fa49d452c472b0a20b2 to your computer and use it in GitHub Desktop.
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
/**
* 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