fluid-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [fluid-dev] How to send "all notes off" command to all channels?


From: David Henningsson
Subject: Re: [fluid-dev] How to send "all notes off" command to all channels?
Date: Fri, 13 May 2011 09:31:40 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10

On 2011-05-11 22:11, Jonathan Slenders wrote:
Hi all,

What is the proper way to make sure that all notes on all channels are
turned off.

I have a MIDI player instance, but when I stop the player, certain notes
continue to play, because the noteoff command has not yet been send.

This will turn all notes of on channel 0, but because the MIDI file also
play notes on other channels, this does not work.
fluid_synth_cc(synth, 0, 123, 0);

Is there any better solution than doing a for loop over all possible
channels?

Actually, in current trunk (not yet released), you can use fluid_synth_all_notes_off(synth, -1)

// David



reply via email to

[Prev in Thread] Current Thread [Next in Thread]