28 |
* @author Grigor Iliev |
* @author Grigor Iliev |
29 |
*/ |
*/ |
30 |
public class MidiInputDevice extends AbstractDevice { |
public class MidiInputDevice extends AbstractDevice { |
31 |
|
private Parameter<Integer> ports = null; |
32 |
private MidiPort[] midiPorts = new MidiPort[0]; |
private MidiPort[] midiPorts = new MidiPort[0]; |
33 |
|
|
34 |
/** Creates a new instance of MidiInputDevice */ |
/** Creates a new instance of MidiInputDevice */ |
54 |
} |
} |
55 |
|
|
56 |
/** |
/** |
57 |
|
* Gets the <code>PORTS</code> parameter. |
58 |
|
* @return A <code>Parameter<Integer></code> instance. |
59 |
|
*/ |
60 |
|
public Parameter<Integer> |
61 |
|
getPortsParameter() { return ports; } |
62 |
|
|
63 |
|
/** |
64 |
|
* Sets the <code>PORTS</code> parameter. |
65 |
|
* @param ports The new <code>PORTS</code> parameter. |
66 |
|
*/ |
67 |
|
public void |
68 |
|
setPortsParameter(Parameter<Integer> ports) { this.ports = ports; } |
69 |
|
|
70 |
|
/** |
71 |
* Gets the MIDI port at the specified index. |
* Gets the MIDI port at the specified index. |
72 |
* @param index The index of the MIDI port to be retrieved. |
* @param index The index of the MIDI port to be retrieved. |
73 |
*/ |
*/ |