This content has been marked as final. Show 1 reply
871816 wrote:Control change events are, as I recall, higher priority messages and they need to be finished before the next note plays. You wouldn't want the first note after an instrument change to be the old instrument, or the first note to be really loud after you've decreased the volume.
1 - The control Change event (which activates my clip) seems to get fired before the midi note-on events, resulting in both the midi click track and the clip being out of sync.
2 - the clip does not always fire, i.e. once every 12 notes or so, it skips a beat.I believe that clips will refuse to fire if you're lacking system resources.
For your application, I believe you'd be better off loading the various audio samples into a series of byte and playing them manually.
You'd simply want to call "line.write" with the appropriate byte for the desired sample everytime you want to play anything and it should work more reliably than starting a clip.