第一個參數設定樂器,第二個整數設定音符。 o import javax.sound.midi . ... void play ( int instrument , int note ) { try { Sequencer player = MidiSystem.
確定! 回上一頁