blue.music
Class Instrument

java.lang.Object
  |
  +--blue.music.Instrument
Direct Known Subclasses:
Flute, Synthesizedbass, Whistle, Xylophone

public class Instrument
extends java.lang.Object


Field Summary
protected  java.applet.Applet applet
           
 
Constructor Summary
Instrument(java.applet.Applet applet)
           
 
Method Summary
 java.lang.String audioClipKey(Note note)
           
 double determineRealTime(Note note)
           
 java.lang.String pitchClassName(int degree, int modifier, Key key)
           
 void play(Note note)
           
 java.lang.String registerName(int n)
           
 void rest(Note note)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

applet

protected java.applet.Applet applet
Constructor Detail

Instrument

public Instrument(java.applet.Applet applet)
Method Detail

play

public void play(Note note)

rest

public void rest(Note note)

determineRealTime

public double determineRealTime(Note note)

audioClipKey

public java.lang.String audioClipKey(Note note)

registerName

public java.lang.String registerName(int n)

pitchClassName

public java.lang.String pitchClassName(int degree,
                                       int modifier,
                                       Key key)