diff ExperimentController.java @ 4:5080b65e6963

Close MIDI sequencer and synthesizer properly and allow user to pass MIDI file directory as a command line argument Ignore-this: dbf86cc9008fba00379b67dd541adb38
author Marcus Pearce <m.pearce@gold.ac.uk>
date Thu, 18 Nov 2010 11:47:32 +0000
parents 1fe7ac28a3ca
children 135338ba37ef
line wrap: on
line diff
--- a/ExperimentController.java	Mon Jun 21 17:37:24 2010 +0100
+++ b/ExperimentController.java	Thu Nov 18 11:47:32 2010 +0000
@@ -2,7 +2,7 @@
  * File:       ExperimentController.java
  * Author:     Marcus Pearce <m.pearce@gold.ac.uk>
  * Created:    <2007-12-14 12:06:10 marcusp>
- * Time-stamp: <2010-06-14 13:20:03 marcusp>
+ * Time-stamp: <2010-11-18 11:04:51 marcusp>
  *=============================================================================
  */
 
@@ -115,6 +115,8 @@
                 block.addMelodyQA("liked", answer2); 
                 block.storeMelodyResult();
                 results.writeResults();
+                // close the midi player
+                block.getMidiPlayer().stop();
                 // proceed to ... 
                 String nextFile = block.nextFile();
                 if (nextFile == null) {