Skip to content

Commit 1b0c9d3

Browse files
committed
Fix comments in TestMelodyConversion.java
1 parent 5e40c76 commit 1b0c9d3

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

dl4j-examples/src/main/java/org/deeplearning4j/examples/wip/advanced/modelling/melodl4j/TestMelodyConversion.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
package org.deeplearning4j.examples.wip.advanced.modelling.melodl4j;
22

33
import java.io.*;
4-
import java.net.URL;
54
import java.util.ArrayList;
65
import java.util.List;
76

7+
/**
8+
* Sanity checks on the Midi-to-String and the String-to-Midi conversions.
9+
*
10+
* The method testConversion converts a midi file to a melody strings then converts
11+
* that string back into MIDI and plays the result on your computer speakers.
12+
*/
813
public class TestMelodyConversion {
914
private static List<String> convertFileToStrings(File file) throws IOException {
1015
final List<String> strings = new ArrayList<>();
@@ -23,9 +28,9 @@ private static List<String> convertFileToStrings(File file) throws IOException {
2328
}
2429

2530
/**
26-
* Plays converts midi file to melody strings and then plays back the melody strings.
31+
* Converts midi file to melody strings and then plays back the melody strings.
2732
* This tests that the conversions from MIDI to strings and from strings back to MIDI
28-
* preserve melodies.
33+
* preserve melodies. The sounds you hear should sound like recognizable melodies.
2934
* @param file
3035
* @throws Exception
3136
*/

0 commit comments

Comments
 (0)