X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=MooNote.java;h=2a82b6d21b5ac48489aa1a5548f49f96152bb21e;hb=d1996d82793d7049115f5280ba8651b818e52e3c;hp=34b0f2f25686e58404dea954116036ea482050d1;hpb=e7289eb46e09ee6ed3bc5bb4a814f59902d885cb;p=moosique.git diff --git a/MooNote.java b/MooNote.java index 34b0f2f..2a82b6d 100644 --- a/MooNote.java +++ b/MooNote.java @@ -1,7 +1,7 @@ import javax.sound.midi.*; /** - * Functional representation of a MIDI note, which adds functionality to the existent MidiEvent class. + * Functional representation of a MIDI note, which adds functionality to the existing MidiEvent class. * Also provides a reference to the corresponding NoteOff event. * * @author Einar Pehrson @@ -40,7 +40,7 @@ public class MooNote extends MidiEvent implements Cloneable, Comparable { noteOffMsg = (ShortMessage)noteOffEvent.getMessage(); try { noteOnMsg.setMessage(ShortMessage.NOTE_ON, channel, pitch, velocity); - noteOffMsg.setMessage(ShortMessage.NOTE_OFF, channel, pitch, 0); + noteOffMsg.setMessage(ShortMessage.NOTE_OFF, channel, pitch, 64); } catch (InvalidMidiDataException e) {System.out.println("Invalid data!");} }