Java MidiChannel setMute() method with example

javax.sound.midi.MidiChannel.setMute() method Sets the mute state for this channel. A value of
true means the channel is to be muted,
false means the channel can sound (if other channels are not soloed).

Unlike allSoundOff(), this method applies to only a specific channel, not to all channels. Further, it silences not only currently sounding notes, but also subsequently received notes. It is possible that the underlying synthesizer does not support muting channels. In order to verify that a call to setMute was successful, use getMute.

MidiChannel setMute() method Signature

void setMute(boolean mute)

Parameters:

mute – the new mute state

See Also:

getMute(),
setSolo(boolean)

javax.sound.midi.MidiChannel.setMute() method Implementation

void setMute(boolean mute){
}

MidiChannel setMute() method Example

package com.ehowtonow.javax.sound.midi.midichannel;

public class SetMuteMethodExample {

	public static void main(String[] args) {

	}

}

Output


Ask your questions in eHowToNow Forum

Post your technical, non-technical doubts, questions in our site. Get answer as soon as possible, meanwhile you can help others by answering, unanswered questions.
To Ask new Question : Ask Question
Check our existing discussions : Questions & Answers

  1. Java ORB create_dyn_union() method with example
  2. Java SimpleJavaFileObject openOutputStream() method with example
  3. Java BasicSplitPaneUI createKeyboardDownRightListener() method with example
  4. Java IORInterceptor_3_0Holder _write() method with example
  5. Java JFrame getAccessibleContext() method with example
  6. Java ChoiceFormat toPattern() method with example
  7. Java Matcher useTransparentBounds() method with example
  8. Java WildcardType getSuperBound() method with example
  9. Java RMIConnectionImpl queryNames() method with example
  10. Java PolicyHolder _type() method with example
  11. Java ImageOutputStream writeUTF() method with example
  12. Java POAOperations create_request_processing_policy() method with example
  13. Java CardLayout layoutContainer() method with example
  14. Java ResultSet updateBigDecimal() method with example 1
  15. Java GSSContext isInitiator() method with example

Be the first to comment