]> ruin.nu Git - moosique.git/blobdiff - MooNote.java
Fixed the note element length.
[moosique.git] / MooNote.java
index 3e66dab1c4aa10bf2d23674bd84b1940b1502f6b..2774c3052090a98bfadfc76a6156aba485189e6e 100644 (file)
@@ -134,7 +134,7 @@ public class MooNote extends MidiEvent {
         */
        public int getDuration() {
                if (!hasNoteOffEvent()) return 0;
-               return (int)(getTick() - noteOffEvent.getTick());
+               return (int)(noteOffEvent.getTick() - getTick());
        }
 
        /**