Skip to content

Commit

Permalink
修复了一些已知问题
Browse files Browse the repository at this point in the history
  • Loading branch information
gulihua committed Apr 8, 2023
1 parent d58e43f commit cf11762
Show file tree
Hide file tree
Showing 8 changed files with 26,641 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/main/java/cn/jianwoo/util/ReadXmlAsNoteUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ public List<NoteBO> readAsNote(String filePath, NoteBO.Mode mode)
Document document = JDOM_HELPER.build(bytes);
Double unit = JDOM_HELPER.obtainNumValueFrom(document, "header.audio.midi.unit");
Double bpm = JDOM_HELPER.obtainNumValueFrom(document, "header.audio.midi.bpm");
Double rate = 1/bpm/0.006;
Double rate = 1d;
if (bpm != 0)
{
rate = 1 / bpm / 0.006;
}

return readXml(document, unit, rate, mode);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<midi>
<name>test</name>
<unit>0.04167</unit>
<bpm>132</bpm
<bpm>132</bpm>
</midi>
</audio>
</header>
Expand Down
Loading

0 comments on commit cf11762

Please sign in to comment.