我正在运行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
}
}
Run Code Online (Sandbox Code Playgroud)
到目前为止代码确实有效,也就是说,它编译并播放音符.但是,我可以随心所欲地改变乐器,我总是得到钢琴音乐.
我怎么能改变这个?
| 归档时间: |
|
| 查看次数: |
347 次 |
| 最近记录: |