Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 JFugue (vr 5.0.9) 中获得 2 个音符之间的半音的最快方法是什么(如果有的话)?
例如,我如何获得 F4 和 G5 之间的半音数?
我认为 Note 上的 getValue() 方法将为您提供所需的内容。
Note n1 = new Note("F4"); Note n2 = new Note("G5"); int semitoneDelta = n2.getValue() - n1.getValue(); System.out.println(semitoneDelta); // returns 14 in this case