用JFugue用罗马数字定义倒置和弦

时间:2017-05-11 03:46:35

标签: java jfugue

This pdf说可以通过在和弦定义的末尾添加^来定义反转和弦,但这仅适用于我所知道的显式和弦定义。

例如:

ChordProgression cp = new ChordProgression("I^");
cp.setKey("C");
System.out.println(cp.getChords()[0].getBassNote());
Chord c = new Chord("Cmaj^");
System.out.println(c.getBassNote());

输出:

C
E

尽管两者都应该是E

1 个答案:

答案 0 :(得分:0)

感谢您的建议,现在可以使用JFugue 5.0.9

// This will result in "C4MAJ D4MAJ^ E4MAJ^^ F4MAJ^^^ G4MIN^^^ A4MIN^^ B4MIN^"
// (using C4 as the default root note for each of the chords, unless otherwise
// specified by setRoot("note"). 
ChordProgression cp = new ChordProgression("I II^ III^^ IV^^^ v^^^ vi^^ vii^");