You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dl4j-examples/src/main/java/org/deeplearning4j/examples/wip/advanced/modelling/melodl4j/MelodyModelingExample.java
Copy file name to clipboardExpand all lines: dl4j-examples/src/main/java/org/deeplearning4j/examples/wip/advanced/modelling/melodl4j/MelodyStrings.java
+16-11Lines changed: 16 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -35,27 +35,32 @@ public class MelodyStrings {
35
35
publicstaticfinalcharlowestPitchGapChar = 'A';
36
36
publicstaticfinalcharREST_CHAR = ' ';
37
37
38
-
// We allow pitch gaps between -12 and +12, inclusive.
39
-
// If you want to change the allowed gap, you will have to change the characters in PITCH_GAP_CHARS_NEGATIVE and PITCH_GAP_CHARS_POSITIVE
38
+
// As written now, it allows pitch gaps between -12 and +12, inclusive.
39
+
// If you want to change the allowed gap, you will have to change the characters in PITCH_GAP_CHARS_POSITIVE
40
+
// and PITCH_GAP_CHARS_NEGATIVE
41
+
42
+
// There are thirteen chars in pitchGapCharsPositive because the first one ('M') indicates a zero pitch gap.
43
+
// "M" indicates delta=0. "N" indicates delta=1, 'O' indicates delta=2, etc.
0 commit comments