class Music extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| private static double | pitch | 
| Constructor and Description | 
|---|
| Music() | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | play(int duration)play note at the current pitch for the given duration
      in milliseconds (the initial pitch is A = 440 Hz) | 
| static void | reset()reset the pitch to note A = 440 Hz | 
| static void | rest(int duration)rest for given duration | 
| static void | scalePitch(double factor)multiply the pitch frequency by the given factor
      (a factor less than one will lower the pitch) | 
private static double pitch
Music()
public static void play(int duration)
public static void rest(int duration)
public static void scalePitch(double factor)
public static void reset()