public class Lab5
extends java.lang.Object
Constructor and Description |
---|
Lab5() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Program that reads in notes from a text file and plays a song
using the Guitar class to generate the sounds which are then
played by a SimpleAudio object.
|
private static Note |
parseNote(java.lang.String line)
Returns a new Note initialized to the value represented by the specified String
|
public static void main(java.lang.String[] args)
args
- Ignoredprivate static Note parseNote(java.lang.String line)
line
- Description of a note with scientific pitch followed by duration in milliseconds.