RingJavafor Ring

javax.sound.midi

28 classes of the module java.desktop.

Load them with:

using {
	"javax.sound.midi"
}

All packages

ControllerEventListener#

interface · javax.sound.midi.ControllerEventListener

Extends: EventListener

Methods

MethodRing callJava overloads
controlChangecontrolChange(event)void controlChange(ShortMessage event)

Instrument#

abstract · extends SoundbankResource · javax.sound.midi.Instrument

Methods

MethodRing callJava overloads
getPatchgetPatch()Patch getPatch()

The methods and fields of SoundbankResource are inherited.

InvalidMidiDataException#

class · extends Exception · javax.sound.midi.InvalidMidiDataException

Constructors

new InvalidMidiDataException()
new InvalidMidiDataException(String message)

Ring: new InvalidMidiDataException(args) uses the constructor with the fewest parameters (at least one); new InvalidMidiDataException makes the object with the constructor without parameters; the others: (new InvalidMidiDataException).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of Exception are inherited.

MetaEventListener#

interface · javax.sound.midi.MetaEventListener

Extends: EventListener

Methods

MethodRing callJava overloads
metameta(meta)void meta(MetaMessage meta)

MetaMessage#

class · extends MidiMessage · javax.sound.midi.MetaMessage

Constructors

new MetaMessage()
new MetaMessage(int type, byte[] data, int length)

Ring: new MetaMessage(args) uses the constructor with the fewest parameters (at least one); new MetaMessage makes the object with the constructor without parameters; the others: (new MetaMessage).@New([ :param = value ]) or .@New([v1,v2]).

Fields

NameTypeAccessIn Ring
METAintconstant · statico.META

Methods

MethodRing callJava overloads
getDatagetData()byte[] getData()
getTypegetType()int getType()
setMessagesetMessage(type,data,length)void setMessage(int type, byte[] data, int length)

The methods and fields of MidiMessage are inherited.

MidiChannel#

interface · javax.sound.midi.MidiChannel

Methods

MethodRing callJava overloads
allNotesOffallNotesOff()void allNotesOff()
allSoundOffallSoundOff()void allSoundOff()
controlChangecontrolChange(controller,value)void controlChange(int controller, int value)
getChannelPressuregetChannelPressure()int getChannelPressure()
getControllergetController(controller)int getController(int controller)
getMonogetMono()boolean getMono()
getMutegetMute()boolean getMute()
getOmnigetOmni()boolean getOmni()
getPitchBendgetPitchBend()int getPitchBend()
getPolyPressuregetPolyPressure(noteNumber)int getPolyPressure(int noteNumber)
getProgramgetProgram()int getProgram()
getSologetSolo()boolean getSolo()
localControllocalControl(on)boolean localControl(boolean on)
noteOffnoteOff(noteNumber)
noteOff([noteNumber,velocity])
noteOff([ :noteNumber = v, :velocity = v ])
void noteOff(int noteNumber)
void noteOff(int noteNumber, int velocity)
noteOnnoteOn(noteNumber,velocity)void noteOn(int noteNumber, int velocity)
programChangeprogramChange(program)
programChange([bank,program])
programChange([ :bank = v, :program = v ])
void programChange(int program)
void programChange(int bank, int program)
resetAllControllersresetAllControllers()void resetAllControllers()
setChannelPressuresetChannelPressure(pressure)void setChannelPressure(int pressure)
setMonosetMono(on)void setMono(boolean on)
setMutesetMute(mute)void setMute(boolean mute)
setOmnisetOmni(on)void setOmni(boolean on)
setPitchBendsetPitchBend(bend)void setPitchBend(int bend)
setPolyPressuresetPolyPressure(noteNumber,pressure)void setPolyPressure(int noteNumber, int pressure)
setSolosetSolo(soloState)void setSolo(boolean soloState)

MidiDevice#

interface · javax.sound.midi.MidiDevice

Extends: AutoCloseable

Methods

MethodRing callJava overloads
closeclose()void close()
getDeviceInfogetDeviceInfo()Info getDeviceInfo()
getMaxReceiversgetMaxReceivers()int getMaxReceivers()
getMaxTransmittersgetMaxTransmitters()int getMaxTransmitters()
getMicrosecondPositiongetMicrosecondPosition()long getMicrosecondPosition()
getReceivergetReceiver()Receiver getReceiver()
getReceiversgetReceivers()List getReceivers()
getTransmittergetTransmitter()Transmitter getTransmitter()
getTransmittersgetTransmitters()List getTransmitters()
isOpenisOpen()boolean isOpen()
openopen()void open()

MidiDeviceInfo#

class · extends Object · javax.sound.midi.MidiDevice$Info

Methods

MethodRing callJava overloads
getDescriptiongetDescription()String getDescription()
getNamegetName()String getName()
getVendorgetVendor()String getVendor()
getVersiongetVersion()String getVersion()

The methods and fields of Object are inherited.

MidiDeviceReceiver#

interface · javax.sound.midi.MidiDeviceReceiver

Extends: Receiver

Methods

MethodRing callJava overloads
closeclose()void close()
getMidiDevicegetMidiDevice()MidiDevice getMidiDevice()
sendsend(message,timeStamp)void send(MidiMessage message, long timeStamp)

MidiDeviceTransmitter#

interface · javax.sound.midi.MidiDeviceTransmitter

Extends: Transmitter

Methods

MethodRing callJava overloads
closeclose()void close()
getMidiDevicegetMidiDevice()MidiDevice getMidiDevice()
getReceivergetReceiver()Receiver getReceiver()
setReceiversetReceiver(receiver)void setReceiver(Receiver receiver)

MidiEvent#

class · extends Object · javax.sound.midi.MidiEvent

Constructors

new MidiEvent(MidiMessage message, long tick)

Ring: new MidiEvent(args) uses the constructor with the fewest parameters (at least one); new MidiEvent makes the object with the constructor without parameters; the others: (new MidiEvent).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
getMessagegetMessage()MidiMessage getMessage()
getTickgetTick()long getTick()
setTicksetTick(tick)void setTick(long tick)

The methods and fields of Object are inherited.

MidiFileFormat#

class · extends Object · javax.sound.midi.MidiFileFormat

Constructors

new MidiFileFormat(int type, float divisionType, int resolution, int bytes, long microseconds)
new MidiFileFormat(int type, float divisionType, int resolution, int bytes, long microseconds, Map properties)

Ring: new MidiFileFormat(args) uses the constructor with the fewest parameters (at least one); new MidiFileFormat makes the object with the constructor without parameters; the others: (new MidiFileFormat).@New([ :param = value ]) or .@New([v1,v2]).

Fields

NameTypeAccessIn Ring
UNKNOWN_LENGTHintconstant · statico.UNKNOWN_LENGTH

Methods

MethodRing callJava overloads
getByteLengthgetByteLength()int getByteLength()
getDivisionTypegetDivisionType()float getDivisionType()
getMicrosecondLengthgetMicrosecondLength()long getMicrosecondLength()
getPropertygetProperty(key)Object getProperty(String key)
getResolutiongetResolution()int getResolution()
getTypegetType()int getType()
propertiesproperties()Map properties()

The methods and fields of Object are inherited.

MidiMessage#

abstract · extends Object · javax.sound.midi.MidiMessage

Implements: Cloneable

Methods

MethodRing callJava overloads
cloneclone()Object clone()
getLengthgetLength()int getLength()
getMessagegetMessage()byte[] getMessage()
getStatusgetStatus()int getStatus()

The methods and fields of Object are inherited.

MidiSystem#

class · extends Object · javax.sound.midi.MidiSystem

Methods

MethodRing callJava overloads
@getMidiFileTypes@getMidiFileTypes(sequence)static int[] getMidiFileTypes(Sequence sequence)
@getSequencer@getSequencer(connected)static Sequencer getSequencer(boolean connected)
getMidiDevicegetMidiDevice(info)static MidiDevice getMidiDevice(Info info)
getMidiDeviceInfogetMidiDeviceInfo()static Info[] getMidiDeviceInfo()
getMidiFileFormatgetMidiFileFormat(url)static MidiFileFormat getMidiFileFormat(URL url)
static MidiFileFormat getMidiFileFormat(File file)
static MidiFileFormat getMidiFileFormat(InputStream stream)
getMidiFileTypesgetMidiFileTypes()static int[] getMidiFileTypes()
getReceivergetReceiver()static Receiver getReceiver()
getSequencegetSequence(stream)static Sequence getSequence(InputStream stream)
static Sequence getSequence(File file)
static Sequence getSequence(URL url)
getSequencergetSequencer()static Sequencer getSequencer()
getSoundbankgetSoundbank(stream)static Soundbank getSoundbank(InputStream stream)
static Soundbank getSoundbank(File file)
static Soundbank getSoundbank(URL url)
getSynthesizergetSynthesizer()static Synthesizer getSynthesizer()
getTransmittergetTransmitter()static Transmitter getTransmitter()
isFileTypeSupportedisFileTypeSupported(fileType)
isFileTypeSupported([fileType,sequence])
isFileTypeSupported([ :fileType = v, :sequence = v ])
static boolean isFileTypeSupported(int fileType)
static boolean isFileTypeSupported(int fileType, Sequence sequence)
writewrite(in,fileType,out)static int write(Sequence in, int fileType, OutputStream out)
static int write(Sequence in, int type, File out)

The methods and fields of Object are inherited.

MidiUnavailableException#

class · extends Exception · javax.sound.midi.MidiUnavailableException

Constructors

new MidiUnavailableException()
new MidiUnavailableException(String message)

Ring: new MidiUnavailableException(args) uses the constructor with the fewest parameters (at least one); new MidiUnavailableException makes the object with the constructor without parameters; the others: (new MidiUnavailableException).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of Exception are inherited.

Patch#

class · extends Object · javax.sound.midi.Patch

Constructors

new Patch(int bank, int program)

Ring: new Patch(args) uses the constructor with the fewest parameters (at least one); new Patch makes the object with the constructor without parameters; the others: (new Patch).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
getBankgetBank()int getBank()
getProgramgetProgram()int getProgram()

The methods and fields of Object are inherited.

Receiver#

interface · javax.sound.midi.Receiver

Extends: AutoCloseable

Methods

MethodRing callJava overloads
closeclose()void close()
sendsend(message,timeStamp)void send(MidiMessage message, long timeStamp)

Sequence#

class · extends Object · javax.sound.midi.Sequence

Constructors

new Sequence(float divisionType, int resolution)
new Sequence(float divisionType, int resolution, int numTracks)

Ring: new Sequence(args) uses the constructor with the fewest parameters (at least one); new Sequence makes the object with the constructor without parameters; the others: (new Sequence).@New([ :param = value ]) or .@New([v1,v2]).

Fields

NameTypeAccessIn Ring
PPQfloatconstant · statico.PPQ
SMPTE_24floatconstant · statico.SMPTE_24
SMPTE_25floatconstant · statico.SMPTE_25
SMPTE_30DROPfloatconstant · statico.SMPTE_30DROP
SMPTE_30floatconstant · statico.SMPTE_30

Methods

MethodRing callJava overloads
createTrackcreateTrack()Track createTrack()
deleteTrackdeleteTrack(track)boolean deleteTrack(Track track)
getDivisionTypegetDivisionType()float getDivisionType()
getMicrosecondLengthgetMicrosecondLength()long getMicrosecondLength()
getPatchListgetPatchList()Patch[] getPatchList()
getResolutiongetResolution()int getResolution()
getTickLengthgetTickLength()long getTickLength()
getTracksgetTracks()Track[] getTracks()

The methods and fields of Object are inherited.

Sequencer#

interface · javax.sound.midi.Sequencer

Extends: MidiDevice

Fields

NameTypeAccessIn Ring
LOOP_CONTINUOUSLYintconstant · statico.LOOP_CONTINUOUSLY

Methods

MethodRing callJava overloads
addControllerEventListeneraddControllerEventListener(listener,controllers)int[] addControllerEventListener(ControllerEventListener listener, int[] controllers)
addMetaEventListeneraddMetaEventListener(listener)boolean addMetaEventListener(MetaEventListener listener)
closeclose()void close()
getDeviceInfogetDeviceInfo()Info getDeviceInfo()
getLoopCountgetLoopCount()int getLoopCount()
getLoopEndPointgetLoopEndPoint()long getLoopEndPoint()
getLoopStartPointgetLoopStartPoint()long getLoopStartPoint()
getMasterSyncModegetMasterSyncMode()SyncMode getMasterSyncMode()
getMasterSyncModesgetMasterSyncModes()SyncMode[] getMasterSyncModes()
getMaxReceiversgetMaxReceivers()int getMaxReceivers()
getMaxTransmittersgetMaxTransmitters()int getMaxTransmitters()
getMicrosecondLengthgetMicrosecondLength()long getMicrosecondLength()
getMicrosecondPositiongetMicrosecondPosition()long getMicrosecondPosition()
getReceivergetReceiver()Receiver getReceiver()
getReceiversgetReceivers()List getReceivers()
getSequencegetSequence()Sequence getSequence()
getSlaveSyncModegetSlaveSyncMode()SyncMode getSlaveSyncMode()
getSlaveSyncModesgetSlaveSyncModes()SyncMode[] getSlaveSyncModes()
getTempoFactorgetTempoFactor()float getTempoFactor()
getTempoInBPMgetTempoInBPM()float getTempoInBPM()
getTempoInMPQgetTempoInMPQ()float getTempoInMPQ()
getTickLengthgetTickLength()long getTickLength()
getTickPositiongetTickPosition()long getTickPosition()
getTrackMutegetTrackMute(track)boolean getTrackMute(int track)
getTrackSologetTrackSolo(track)boolean getTrackSolo(int track)
getTransmittergetTransmitter()Transmitter getTransmitter()
getTransmittersgetTransmitters()List getTransmitters()
isOpenisOpen()boolean isOpen()
isRecordingisRecording()boolean isRecording()
isRunningisRunning()boolean isRunning()
openopen()void open()
recordDisablerecordDisable(track)void recordDisable(Track track)
recordEnablerecordEnable(track,channel)void recordEnable(Track track, int channel)
removeControllerEventListenerremoveControllerEventListener(listener,controllers)int[] removeControllerEventListener(ControllerEventListener listener, int[] controllers)
removeMetaEventListenerremoveMetaEventListener(listener)void removeMetaEventListener(MetaEventListener listener)
setLoopCountsetLoopCount(count)void setLoopCount(int count)
setLoopEndPointsetLoopEndPoint(tick)void setLoopEndPoint(long tick)
setLoopStartPointsetLoopStartPoint(tick)void setLoopStartPoint(long tick)
setMasterSyncModesetMasterSyncMode(sync)void setMasterSyncMode(SyncMode sync)
setMicrosecondPositionsetMicrosecondPosition(microseconds)void setMicrosecondPosition(long microseconds)
setSequencesetSequence(sequence)void setSequence(Sequence sequence)
void setSequence(InputStream stream)
setSlaveSyncModesetSlaveSyncMode(sync)void setSlaveSyncMode(SyncMode sync)
setTempoFactorsetTempoFactor(factor)void setTempoFactor(float factor)
setTempoInBPMsetTempoInBPM(bpm)void setTempoInBPM(float bpm)
setTempoInMPQsetTempoInMPQ(mpq)void setTempoInMPQ(float mpq)
setTickPositionsetTickPosition(tick)void setTickPosition(long tick)
setTrackMutesetTrackMute(track,mute)void setTrackMute(int track, boolean mute)
setTrackSolosetTrackSolo(track,solo)void setTrackSolo(int track, boolean solo)
startstart()void start()
startRecordingstartRecording()void startRecording()
stopstop()void stop()
stopRecordingstopRecording()void stopRecording()

SequencerSyncMode#

class · extends Object · javax.sound.midi.Sequencer$SyncMode

Fields

NameTypeAccessIn Ring
INTERNAL_CLOCKSyncModeconstant · statico.INTERNAL_CLOCK
MIDI_SYNCSyncModeconstant · statico.MIDI_SYNC
MIDI_TIME_CODESyncModeconstant · statico.MIDI_TIME_CODE
NO_SYNCSyncModeconstant · statico.NO_SYNC

The methods and fields of Object are inherited.

ShortMessage#

class · extends MidiMessage · javax.sound.midi.ShortMessage

Constructors

new ShortMessage()
new ShortMessage(int status)
new ShortMessage(int status, int data1, int data2)
new ShortMessage(int command, int channel, int data1, int data2)

Ring: new ShortMessage(args) uses the constructor with the fewest parameters (at least one); new ShortMessage makes the object with the constructor without parameters; the others: (new ShortMessage).@New([ :param = value ]) or .@New([v1,v2]).

Fields

NameTypeAccessIn Ring
MIDI_TIME_CODEintconstant · statico.MIDI_TIME_CODE
SONG_POSITION_POINTERintconstant · statico.SONG_POSITION_POINTER
SONG_SELECTintconstant · statico.SONG_SELECT
TUNE_REQUESTintconstant · statico.TUNE_REQUEST
END_OF_EXCLUSIVEintconstant · statico.END_OF_EXCLUSIVE
TIMING_CLOCKintconstant · statico.TIMING_CLOCK
STARTintconstant · statico.START
CONTINUEintconstant · statico.@CONTINUE
STOPintconstant · statico.STOP
ACTIVE_SENSINGintconstant · statico.ACTIVE_SENSING
SYSTEM_RESETintconstant · statico.SYSTEM_RESET
NOTE_OFFintconstant · statico.NOTE_OFF
NOTE_ONintconstant · statico.NOTE_ON
POLY_PRESSUREintconstant · statico.POLY_PRESSURE
CONTROL_CHANGEintconstant · statico.CONTROL_CHANGE
PROGRAM_CHANGEintconstant · statico.PROGRAM_CHANGE
CHANNEL_PRESSUREintconstant · statico.CHANNEL_PRESSURE
PITCH_BENDintconstant · statico.PITCH_BEND

Methods

MethodRing callJava overloads
getChannelgetChannel()int getChannel()
getCommandgetCommand()int getCommand()
getData1getData1()int getData1()
getData2getData2()int getData2()
setMessagesetMessage(status)
setMessage([status,data1,data2])
setMessage([ :status = v, :data1 = v, :data2 = v ])
setMessage([command,channel,data1,data2])
setMessage([ :command = v, :channel = v, :data1 = v, :data2 = v ])
void setMessage(int status)
void setMessage(int status, int data1, int data2)
void setMessage(int command, int channel, int data1, int data2)

The methods and fields of MidiMessage are inherited.

Soundbank#

interface · javax.sound.midi.Soundbank

Methods

MethodRing callJava overloads
getDescriptiongetDescription()String getDescription()
getInstrumentgetInstrument(patch)Instrument getInstrument(Patch patch)
getInstrumentsgetInstruments()Instrument[] getInstruments()
getNamegetName()String getName()
getResourcesgetResources()SoundbankResource[] getResources()
getVendorgetVendor()String getVendor()
getVersiongetVersion()String getVersion()

SoundbankResource#

abstract · extends Object · javax.sound.midi.SoundbankResource

Methods

MethodRing callJava overloads
getDatagetData()Object getData()
getDataClassgetDataClass()Class getDataClass()
getNamegetName()String getName()
getSoundbankgetSoundbank()Soundbank getSoundbank()

The methods and fields of Object are inherited.

Synthesizer#

interface · javax.sound.midi.Synthesizer

Extends: MidiDevice

Methods

MethodRing callJava overloads
closeclose()void close()
getAvailableInstrumentsgetAvailableInstruments()Instrument[] getAvailableInstruments()
getChannelsgetChannels()MidiChannel[] getChannels()
getDefaultSoundbankgetDefaultSoundbank()Soundbank getDefaultSoundbank()
getDeviceInfogetDeviceInfo()Info getDeviceInfo()
getLatencygetLatency()long getLatency()
getLoadedInstrumentsgetLoadedInstruments()Instrument[] getLoadedInstruments()
getMaxPolyphonygetMaxPolyphony()int getMaxPolyphony()
getMaxReceiversgetMaxReceivers()int getMaxReceivers()
getMaxTransmittersgetMaxTransmitters()int getMaxTransmitters()
getMicrosecondPositiongetMicrosecondPosition()long getMicrosecondPosition()
getReceivergetReceiver()Receiver getReceiver()
getReceiversgetReceivers()List getReceivers()
getTransmittergetTransmitter()Transmitter getTransmitter()
getTransmittersgetTransmitters()List getTransmitters()
getVoiceStatusgetVoiceStatus()VoiceStatus[] getVoiceStatus()
isOpenisOpen()boolean isOpen()
isSoundbankSupportedisSoundbankSupported(soundbank)boolean isSoundbankSupported(Soundbank soundbank)
loadAllInstrumentsloadAllInstruments(soundbank)boolean loadAllInstruments(Soundbank soundbank)
loadInstrumentloadInstrument(instrument)boolean loadInstrument(Instrument instrument)
loadInstrumentsloadInstruments(soundbank,patchList)boolean loadInstruments(Soundbank soundbank, Patch[] patchList)
openopen()void open()
remapInstrumentremapInstrument(from,to)boolean remapInstrument(Instrument from, Instrument to)
unloadAllInstrumentsunloadAllInstruments(soundbank)void unloadAllInstruments(Soundbank soundbank)
unloadInstrumentunloadInstrument(instrument)void unloadInstrument(Instrument instrument)
unloadInstrumentsunloadInstruments(soundbank,patchList)void unloadInstruments(Soundbank soundbank, Patch[] patchList)

SysexMessage#

class · extends MidiMessage · javax.sound.midi.SysexMessage

Constructors

new SysexMessage()
new SysexMessage(byte[] data, int length)
new SysexMessage(int status, byte[] data, int length)

Ring: new SysexMessage(args) uses the constructor with the fewest parameters (at least one); new SysexMessage makes the object with the constructor without parameters; the others: (new SysexMessage).@New([ :param = value ]) or .@New([v1,v2]).

Fields

NameTypeAccessIn Ring
SYSTEM_EXCLUSIVEintconstant · statico.SYSTEM_EXCLUSIVE
SPECIAL_SYSTEM_EXCLUSIVEintconstant · statico.SPECIAL_SYSTEM_EXCLUSIVE

Methods

MethodRing callJava overloads
getDatagetData()byte[] getData()
setMessagesetMessage([data,length])
setMessage([ :data = v, :length = v ])
setMessage([status,data,length])
setMessage([ :status = v, :data = v, :length = v ])
void setMessage(byte[] data, int length)
void setMessage(int status, byte[] data, int length)

The methods and fields of MidiMessage are inherited.

Track#

class final · extends Object · javax.sound.midi.Track

Methods

MethodRing callJava overloads
@get@get(index)MidiEvent get(int index)
addadd(event)boolean add(MidiEvent event)
removeremove(event)boolean remove(MidiEvent event)
sizesize()int size()
ticksticks()long ticks()

The methods and fields of Object are inherited.

Transmitter#

interface · javax.sound.midi.Transmitter

Extends: AutoCloseable

Methods

MethodRing callJava overloads
closeclose()void close()
getReceivergetReceiver()Receiver getReceiver()
setReceiversetReceiver(receiver)void setReceiver(Receiver receiver)

VoiceStatus#

class · extends Object · javax.sound.midi.VoiceStatus

Constructors

new VoiceStatus()

Ring: new VoiceStatus(args) uses the constructor with the fewest parameters (at least one); new VoiceStatus makes the object with the constructor without parameters; the others: (new VoiceStatus).@New([ :param = value ]) or .@New([v1,v2]).

Fields

NameTypeAccessIn Ring
activebooleanread, writeo.active o.active = v
channelintread, writeo.channel o.channel = v
bankintread, writeo.bank o.bank = v
programintread, writeo.program o.program = v
noteintread, writeo.note o.note = v
volumeintread, writeo.volume o.volume = v

The methods and fields of Object are inherited.

RingJava - use Java classes and methods from Ring programs.