Enum Class MidiUtils

java.lang.Object
java.lang.Enum<MidiUtils>
com.github.dakusui.symfonion.utils.midi.MidiUtils
All Implemented Interfaces:
Serializable, Comparable<MidiUtils>, Constable

public enum MidiUtils extends Enum<MidiUtils>
  • Method Details

    • values

      public static MidiUtils[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MidiUtils valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • streamMidiDeviceInfo

      public static Stream<MidiDevice.Info> streamMidiDeviceInfo()
    • formatMidiDeviceInfo

      public static String formatMidiDeviceInfo(MidiDevice.Info info)
    • isMidiDeviceForInput

      public static boolean isMidiDeviceForInput(MidiDevice.Info device)
    • isMidiDeviceForOutput

      public static boolean isMidiDeviceForOutput(MidiDevice.Info info)
    • chooseOutputDevices

      public static MidiDeviceScanner chooseOutputDevices(PrintStream ps, Pattern regex)
    • getInfos

      public static MidiDevice.Info[] getInfos(String portName, MidiDeviceScanner scanner, Pattern regex) throws CliException
      Throws:
      CliException