0

I have a Sequence player in which I simply open(), set the tempo, and start a Midi file where the Midi file is actually the bulk of my project (parsing a string file into a music piece)

Now in all the complexity of my code, I can't figure out how to change the instrument per voice:

The midi files can have multiple voices which my sequencer takes as being multiple notes to play at once. So if I have:

Voice: 1
notes
Voice: 2
more notes

Then my sequencer will play those two parts simultaneously. Maybe splitting the two to play different instruments isn't doable but at least how do I change the Instrument for the entire sequence?

4

1 回答 1

0

“声音”是指合成器可以处理多少复音。

如果您想演奏不同的合成器,最简单的方法可能是更改“通道”编号,假设您将不同的通道分配给您希望听到的不同乐器。

http://docs.oracle.com/javase/tutorial/sound/MIDI-synth.html

于 2013-10-29T02:39:45.437 回答