Java MidiChannel setPitchBend() method with example

javax.sound.midi.MidiChannel.setPitchBend() method Changes the pitch offset for all notes on this channel. This affects all currently sounding notes as well as subsequent ones. (For pitch bend to cease, the value needs to be reset to the center position.)

The MIDI specification stipulates that pitch bend be a 14-bit value, where zero is maximum downward bend, 16383 is maximum upward bend, and 8192 is the center (no pitch bend). The actual amount of pitch change is not specified; it can be changed by a pitch-bend sensitivity setting. However, the General MIDI specification says that the default range should be two semitones up and down from center. It is possible that the underlying synthesizer does not support this MIDI message. In order to verify that setPitchBend was successful, use getPitchBend.

MidiChannel setPitchBend() method Signature

void setPitchBend(int bend)

Parameters:

bend – the amount of pitch change, as a nonnegative 14-bit value (8192 = no bend)

See Also:

getPitchBend()

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

void setPitchBend(int bend){
}

MidiChannel setPitchBend() method Example

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

public class SetPitchBendMethodExample {

	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 Component prepareImage() method with example 1
  2. Java JTable getAccessibleContext() method with example
  3. Java – Transient Annotation TypeAnnotation
  4. Java HTML.UnknownTag equals() method with example 1
  5. Java LdapName get() method with example
  6. Java XMLSignature getSignatureValue() method with example
  7. Java HTMLEditorKit.ParserCallback handleStartTag() method with example
  8. Java BufferedImageFilter getBufferedImageOp() method with example
  9. Java SSLEngine getDelegatedTask() method with example
  10. Java AffineTransformOp createCompatibleDestImage() method with example
  11. Java NameDynAnyPairSeqHelper extract() method with example
  12. Java DataOutputStream write_any_array() method with example
  13. Java JTree getSelectionRows() method with example
  14. Java JComboBox addItemListener() method with example
  15. Java JDialog getAccessibleContext() method with example

Be the first to comment