@Override public void onDeviceOpened(MidiDevice device) { if (device == null) { Log.e(MidiConstants.TAG, "could not open " + info); } else { mOpenDevice = device; mInputPort = mOpenDevice.openInputPort( wrapper.getPortIndex()); if (mInputPort == null) { Log.e(MidiConstants.TAG, "could not open input port on " + info); } } } }, null);
@Override public void onDeviceOpened(MidiDevice device) { if (device == null) { Log.e(MidiConstants.TAG, "could not open " + info); } else { mOpenDevice = device; mInputPort = mOpenDevice.openInputPort( wrapper.getPortIndex()); if (mInputPort == null) { Log.e(MidiConstants.TAG, "could not open input port on " + info); } } } }, null);
@Override public void onDeviceOpened(MidiDevice device) { if (device == null) { Log.e(MidiConstants.TAG, "could not open " + info); } else { mOpenDevice = device; mInputPort = mOpenDevice.openInputPort( wrapper.getPortIndex()); if (mInputPort == null) { Log.e(MidiConstants.TAG, "could not open input port on " + info); } } } }, null);
.openInputPort(destinationPortIndex); if (destinationInputPort != null) { Log.i(MidiConstants.TAG,
.openInputPort(destinationPortIndex); if (destinationInputPort != null) { Log.i(MidiConstants.TAG,
.openInputPort(destinationPortIndex); if (destinationInputPort != null) { Log.i(MidiConstants.TAG,
private void setupMidiOut() throws IOException { repetitionsDone = 0; deltasInputTotal.clear(); deltasOutputTotal.clear(); midiInputPort = midiDevice.openInputPort(0); waltDevice.syncClock(); waltDevice.command(WaltDevice.CMD_MIDI); waltDevice.startListener(); waltDevice.setTriggerHandler(triggerHandler); scheduleNotes(); }