|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.event.WindowAdapter
toys.RhythmStream
public class RhythmStream
Stream rhythm events to stdout.
| Field Summary | |
|---|---|
private int |
beats
Count of beats in one takt. |
private List |
count
We listen to all picks until closed. |
| Constructor Summary | |
|---|---|
RhythmStream(int per)
Constructs a new rhythm stremer. |
|
| Method Summary | |
|---|---|
void |
beat(RhythmEvent re)
Any rhythm event dumps the time stamp to stdout. |
static void |
main(String[] arg)
Create a fram with a rhythm button in it. |
void |
windowClosing(WindowEvent we)
On closing, we try to deduce the rhythm to notes. |
| Methods inherited from class java.awt.event.WindowAdapter |
|---|
windowActivated, windowClosed, windowDeactivated, windowDeiconified, windowGainedFocus, windowIconified, windowLostFocus, windowOpened, windowStateChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private List count
private int beats
| Constructor Detail |
|---|
public RhythmStream(int per)
| Method Detail |
|---|
public void windowClosing(WindowEvent we)
windowClosing in interface WindowListenerwindowClosing in class WindowAdapterpublic void beat(RhythmEvent re)
beat in interface RhythmListenerpublic static void main(String[] arg)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||