Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4931588

DOC: MidiChannel should specify optionality

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b26
    • CPU:
      generic, x86
    • OS:
      generic, windows_2000

      Description



      Name: fb126949 Date: 10/02/2003


      The MidiChannel interface specifies many methods that are not necessarily implemented by all synthesizers. Examples:

      1) setMono is superseded and not available in modern Synthesizers, which couldn't leverage the extra processing power in mono mode.

      2) setProgram(int, int) may fail if the Synthesizer's soundbank does not contain the specific bank.

      3) PolyPressure is only available in high-end Synthesizers

      4) localControl is a function for devices with built-in keyboard

      In total, this request affects the following methods:

      setPolyPressure
      getPolyPressure
      setChannelPressure
      getChannelPressure
      setControlChange
      getController
      programChange(int)
      programChange(int, int)
      getProgram
      setPitchBend
      getPitchBend
      localControl
      setMono
      getMono
      setOmni
      getOmni
      setMute
      getMute
      setSolo
      getSolo


      The suggested fix is to allow setXXX methods to fail and explicitely ask the user to check the success with the corresponding getXXX method.

      ======================================================================

      ###@###.### 2003-10-22
      Integrated changes to Doc per CCC request 4931588.
      Reviewed by Florian

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kpsmith Kevin Smith (Inactive)
              Reporter:
              fbomerssunw Florian Bomers (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: