|
jlscp v0.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.linuxsampler.lscp.SamplerChannel
public class SamplerChannel
Provides information about the current settings of a specific sampler channel.
Constructor Summary | |
---|---|
SamplerChannel()
Creates a new instance of SamplerChannel |
|
SamplerChannel(java.lang.String[] resultSet)
Creates a new instance of SamplerChannel and parses the information
about a specific sampler channel described by resultSet . |
Method Summary | |
---|---|
int |
getAudioOutputChannels()
Gets the number of output channels the sampler channel offers. |
int |
getAudioOutputDevice()
Gets the numerical ID of the audio output device which is currently connected to this sampler channel to output the audio signal. |
java.lang.Integer[] |
getAudioOutputRouting()
Gets a list which reflects to which audio channel of the selected audio output device each sampler output channel is routed to. |
int |
getChannelId()
Gets the sampler channel number. |
SamplerEngine |
getEngine()
Gets the engine that is deployed on the sampler channel. |
java.lang.String |
getInstrumentFile()
Gets the file name of the loaded instrument. |
int |
getInstrumentIndex()
Gets the instrument index number of the loaded instrument. |
java.lang.String |
getInstrumentName()
Gets the name of the loaded instrument. |
int |
getInstrumentStatus()
Gets the instrument status - an integer values from 0 to 100 indicating loading progress percentage for the instrument. |
int |
getMidiInputChannel()
Gets the MIDI input channel number this sampler channel should listen to or -1 to listen on all MIDI channels. |
int |
getMidiInputDevice()
Gets the numerical ID of the MIDI input device which is currently connected to this sampler channel to deliver MIDI input commands. |
int |
getMidiInputPort()
Gets the port number of the MIDI input device. |
int |
getMidiInstrumentMapId()
Gets the numerical id of the MIDI instrument map, to which this sampler channel is assigned to. |
float |
getVolume()
Gets the channel volume factor. |
boolean |
isMuted()
Determines whether this channel is muted. |
boolean |
isMutedBySolo()
Determines whether this channel is muted because of the presence of a solo channel. |
boolean |
isSoloChannel()
Determines whether this channel is a solo channel. |
boolean |
isUsingDefaultMidiInstrumentMap()
Determines whether the sampler channel is assigned to the default MIDI instrument map. |
boolean |
parse(java.lang.String s)
Parses a line of text. |
void |
setChannelId(int id)
Sets the sampler channel number. |
void |
setEngine(SamplerEngine engine)
Associates the specified sampler engine to this sampler channel. |
java.lang.String |
toString()
Returns the numerical ID of this sampler channel. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SamplerChannel()
public SamplerChannel(java.lang.String[] resultSet) throws LscpException
SamplerChannel
and parses the information
about a specific sampler channel described by resultSet
.
resultSet
- An array with information categories about a sampler channel.
LscpException
- If the parse fail.Method Detail |
---|
public int getChannelId()
public void setChannelId(int id)
id
- The new sampler channel number.public SamplerEngine getEngine()
null
if there is no engine deployed yet for this sampler channel.public void setEngine(SamplerEngine engine)
engine
- A SamplerEngine
instance containing the information
about the engine to be assigned to this channel.public int getAudioOutputDevice()
public int getAudioOutputChannels()
public java.lang.Integer[] getAudioOutputRouting()
public java.lang.String getInstrumentFile()
null
if there is no instrument yet loaded for this sampler channel.public int getInstrumentIndex()
public java.lang.String getInstrumentName()
null
if there is no instrument loaded.public int getInstrumentStatus()
public int getMidiInputDevice()
public int getMidiInputPort()
public int getMidiInputChannel()
public float getVolume()
public boolean isMuted()
true
if the channel is muted, false
otherwise.public boolean isMutedBySolo()
true
if the channel is muted because of the presence of a solo
channel, false
otherwise.public boolean isSoloChannel()
true
if the channel is a solo channel, false
otherwise.public int getMidiInstrumentMapId()
-1
if no MIDI instrument map is assigned to this sampler
channel and -2
if the channel is assigned
to the default MIDI instrument map.isUsingDefaultMidiInstrumentMap()
public boolean isUsingDefaultMidiInstrumentMap()
true
if the sampler channel is assigned
to the default MIDI instrument map, false
otherwise.public boolean parse(java.lang.String s) throws LscpException
parse
in interface Parseable
s
- The string to be parsed.
true
if the line has been processed, false
otherwise.
LscpException
- If some error occurs.public java.lang.String toString()
toString
in class java.lang.Object
|
jlscp v0.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |