diff --git a/TBbard/src/bard/MidiParser.java b/TBbard/src/bard/MidiParser.java index 86f7805..3e7e560 100644 --- a/TBbard/src/bard/MidiParser.java +++ b/TBbard/src/bard/MidiParser.java @@ -121,9 +121,16 @@ public void getNotes(String filePath, int instrumentIndex, int octaveTarget, boo for(int o = 0; o < 11; o++){ sheets[sm.getChannel()][o] += line; - if(octave < o) sheets[sm.getChannel()][o] += "-1"; - if(octave > o) sheets[sm.getChannel()][o] += "+1"; - + if(noteName.equals("C") && octave > o+1){ + sheets[sm.getChannel()][o] += "+2"; + } else { + if(octave < o) { + sheets[sm.getChannel()][o] += "-1"; + } + if(octave > o) { + sheets[sm.getChannel()][o] += "+1"; + } + } } } else