simpleGamePlatform
Class MusicKeyboard

java.lang.Object
  extended by simpleGamePlatform.MusicKeyboard

public class MusicKeyboard
extends java.lang.Object


Constructor Summary
MusicKeyboard(int[] allNotes)
          Constructor for a music keyboard, takes an array of note values.
 
Method Summary
 void addNote(int note)
          Add a note to the notes to be played during the next update cycle.
 void playNotes()
          Play all the notes that have been specified for this update cycle.
 void stop()
          Stop playing all notes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MusicKeyboard

public MusicKeyboard(int[] allNotes)
Constructor for a music keyboard, takes an array of note values.

Method Detail

stop

public void stop()
Stop playing all notes.


playNotes

public void playNotes()
Play all the notes that have been specified for this update cycle.


addNote

public void addNote(int note)
Add a note to the notes to be played during the next update cycle.