问题
I have a program which dynamically creates sequences of midi events after some user input, and does that while looping the currently played sequence. It's written in scala and I'm using the java library javax.sound.midi.*
Now the algorithm works as follows:
- create sequencer;
- build sequence;
- set sequence
- start the sequencer;
- build new sequence;
- when the finish event is triggered by the sequencer execute from 3
the problem with this approach is that there is a delay between two sequences, while I would like it to be playing without pauses, if possible even overlapping the two sequences.
Is there any way to do it?
来源:https://stackoverflow.com/questions/4361886/dynamically-updating-midi-sequences