Java MidiChannel setMono() method with example

javax.sound.midi.MidiChannel.setMono() method Turns mono mode on or off. In mono mode, the channel synthesizes only one note at a time. In poly mode (identical to mono mode off), the channel can synthesize multiple notes simultaneously. The default is mono off (poly mode on).

“Mono” is short for the word “monophonic,” which in this context is opposed to the word “polyphonic” and refers to a single synthesizer voice per MIDI channel. It has nothing to do with how many audio channels there might be (as in “monophonic” versus “stereophonic” recordings). It is possible that the underlying synthesizer does not support mono mode. In order to verify that a call to setMono was successful, use getMono.

MidiChannel setMono() method Signature

void setMono(boolean on)


true to turn mono mode on,
false to turn it off (which means turning poly mode on).

See Also:


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

void setMono(boolean on){

MidiChannel setMono() method Example

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

public class SetMonoMethodExample {

	public static void main(String[] args) {




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 MethodType hasWrappers() method with example
  2. Java MultiSliderUI contains() method with example
  3. Java RMIClassLoader getClassAnnotation() method with example
  4. Java MutableComboBoxModel removeElementAt() method with example
  5. Java – BasicListUI.PropertyChangeHandler Class
  6. Java ReentrantReadWriteLock writeLock() method with example
  7. Java IntStream.Builder build() method with example
  8. Java TransformerException setLocator() method with example
  9. Java ParagraphView getLayoutViewCount() method with example
  10. Java – KeyStore.Entry Interface
  11. Java – PaintContext Interface
  12. Java JSeparator updateUI() method with example
  13. Java LabelView isUnderline() method with example
  14. Java QuadCurve2D.Float getY1() method with example 1
  15. Java – RenderContext Class

Be the first to comment