Transposing the key using jfugue - 关于Jfugue的一些问题

Transposing the key using jfugue - Some questions concerning Jfugue


我有几个关于 JFugue(5,测试版)的问题。

感谢您的帮助,
最好的问候,
侯赛因·哈穆德。

回答你问题的第一部分:在F大调中,Bb的弹奏方式与Bb一样,与F大调中的B本身相同。这是一个对此进行测试的程序:

StaccatoParser parser = new StaccatoParser();
DiagnosticParserListener dpl = new DiagnosticParserListener();
parser.addParserListener(dpl);
Pattern pattern = new Pattern("KEY:Cmaj B Bn Bb   KEY:FMaj B Bn Bb");
parser.parse(pattern);

及其输出(注意MIDI Note 70是Bb,MIDI Note 71是B):

Before parsing starts
Key signature parsed: key = 0  scale = 1
Note parsed: value = 71  duration = 0.25  onVelocity = 64  offVelocity = 64
Note parsed: value = 71  duration = 0.25  onVelocity = 64  offVelocity = 64
Note parsed: value = 70  duration = 0.25  onVelocity = 64  offVelocity = 64
Key signature parsed: key = 5  scale = 1
Note parsed: value = 70  duration = 0.25  onVelocity = 64  offVelocity = 64
Note parsed: value = 71  duration = 0.25  onVelocity = 64  offVelocity = 64
Note parsed: value = 70  duration = 0.25  onVelocity = 64  offVelocity = 64
After parsing finished

回答你问题的第二部分:我不确定现在是否有合适的答案。但是你启发了我在 Pattern class 上写一个 transpose() 方法。谢谢!