|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.columbia.ee.csmit.MidiKaraoke.examples.PitchWheelExample
public class PitchWheelExample
Shows how to use the PitchWheelChangeViewParser.
public static void main(String[] args) {
if(args.length == 0){
System.out.println("Usage: PitchWheelExample [midi file name]");
return;
}
try {
File file = new File(args[0]);
Sequence mySeq = MidiSystem.getSequence(file);
PitchWheelChangesInMidi roll = PitchWheelChangeViewParser.parse(mySeq);
PitchWheelChangeInTrack[] pitchWheels = roll.getPitchWheelChanges();
for(int i=1;i < pitchWheels.length;i++){
System.out.println(pitchWheels[i].toString());
}
} catch (Exception e) {
System.out.println("Problem!");
e.printStackTrace();
System.out.println(e.toString());
}
}
| Constructor Summary | |
|---|---|
PitchWheelExample()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
Shows how to use the PitchWheelChangeViewParser to parse midi commands
in a PitchWheelChangesInMidi. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PitchWheelExample()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
PitchWheelChangeViewParser to parse midi commands
in a PitchWheelChangesInMidi. Prints out the pitch wheel commands.
args - the command line arguments. The first (and only) argument
should be the name of a midi file.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||