Mercurial > hg > mep
diff MidiPlayer.java @ 23:9fc8683b8fed
Fixed GUI button presses, had their background change as feedback and added ability to record responses for a probe tone at the end of a sequence
author | JShulver |
---|---|
date | Wed, 07 Nov 2012 18:22:01 +0000 |
parents | 5c54f5213f3d |
children | 7102e646b223 |
line wrap: on
line diff
--- a/MidiPlayer.java Wed Oct 31 15:16:26 2012 +0000 +++ b/MidiPlayer.java Wed Nov 07 18:22:01 2012 +0000 @@ -279,7 +279,9 @@ } /* return the tatum of the midi file */ - public long getTatum() { + public long getTatum() { + + Object[] durs = getDurations().toArray(); Object[] rests = getDeltaST().toArray(); long tatum = -1; @@ -290,12 +292,13 @@ long min = dur; if (rest != 0) min = Math.min(dur, rest); - + System.out.println("Min: " + min); if (tatum < 0) tatum = dur; else if (min < tatum) tatum = min; } + //tatum = sequence.getResolution()*1000; return tatum; }