views:

14

answers:

1

Hi I have java application which plays midi messages from sequence. I'm doing this using jfugue library.

the problem is when I'm tryingto stop playback with stop button (which call sequencer.stop() and sequencer.close()) the last played note is sound all of rest time, and I can't stop it.

So I'm asking about solution about stopping all audio and MIDI too! sound playback from java application.

Notice: If you want propose just mute volume, you need to know that I want end-use will be able to press play button again and hear the sound again, so muting volumr will be not a solution, or explain please.

Thank you!

A: 

I'm guessing you need to call Player.allNotesOff() before calling sequencer.stop(). Untested, so please let me know if it didn't work.

Chubas
nope it doesn't. the current playing note is still sounds. very weird. ((