我正在运行Jfugue测试程序,以下是代码:
package ge;
import org.jfugue.*;
public class GE {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Player player = new Player();
Pattern pattern = new Pattern("C D E F G A B I[MARIMBA]");
player.play(pattern);
System.exit(0); // If using Java 1.4 or lower
}
}到目前为止,代码确实起作用了,也就是说,它编译并播放了注释。然而,我可以改变乐器,无论我多么希望,我总是得到钢琴音乐。
我怎样才能改变这一点?
发布于 2013-04-01 04:04:44
您应该将仪器设置在序列的开头,而不是序列的末尾。Sequence "I[MARIMBA] C D E F G A B"对我来说是一种马林巴乐器。
https://stackoverflow.com/questions/15732906
复制相似问题