Mercurial > hg > mep
comparison MelodyResults.java @ 10:3dd7636ca811
Add facility for printing out debugging info.
Ignore-this: 8073cadd49dcc4a7e7cc81dd25f90e89
author | Marcus Pearce <m.pearce@gold.ac.uk> |
---|---|
date | Fri, 04 Nov 2011 17:44:38 +0000 |
parents | 1fe7ac28a3ca |
children | 84d943797cf2 |
comparison
equal
deleted
inserted
replaced
9:46c6d604e32c | 10:3dd7636ca811 |
---|---|
1 /*============================================================================= | 1 /*============================================================================= |
2 * File: MelodyResults.java | 2 * File: MelodyResults.java |
3 * Author: Marcus Pearce <m.pearce@gold.ac.uk> | 3 * Author: Marcus Pearce <m.pearce@gold.ac.uk> |
4 * Created: <2007-02-14 11:28:27 marcusp> | 4 * Created: <2007-02-14 11:28:27 marcusp> |
5 * Time-stamp: <2010-06-14 13:00:50 marcusp> | 5 * Time-stamp: <2011-11-04 17:35:30 marcusp> |
6 *============================================================================= | 6 *============================================================================= |
7 */ | 7 */ |
8 | 8 |
9 import java.util.ArrayList; | 9 import java.util.ArrayList; |
10 import java.util.Iterator; | 10 import java.util.Iterator; |
55 return midifile.substring(0, midifile.length() - 4); | 55 return midifile.substring(0, midifile.length() - 4); |
56 } | 56 } |
57 | 57 |
58 /* add a reponse i and time t (nanoseconds) */ | 58 /* add a reponse i and time t (nanoseconds) */ |
59 public void addResponse(int i, long t) { | 59 public void addResponse(int i, long t) { |
60 //System.out.println("addResponse(" + i + ", " + t + ")"); | 60 //if (exp.getDebug()) |
61 // System.out.println("addResponse(" + i + ", " + t + ")"); | |
61 responses.add(i); | 62 responses.add(i); |
62 responseTimes.add(t); | 63 responseTimes.add(t); |
63 } | 64 } |
64 | 65 |
65 /* add question */ | 66 /* add question */ |