-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from saalfeldlab/0.8.0
0.8.0
- Loading branch information
Showing
7 changed files
with
332 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,11 +3,7 @@ | |
*/ | ||
package org.janelia.saalfeldlab.control.mcu; | ||
|
||
import javax.sound.midi.InvalidMidiDataException; | ||
import javax.sound.midi.MidiMessage; | ||
import javax.sound.midi.Receiver; | ||
import javax.sound.midi.ShortMessage; | ||
import javax.sound.midi.Transmitter; | ||
import javax.sound.midi.*; | ||
|
||
/** | ||
* @author Stephan Saalfeld <[email protected]> | ||
|
@@ -18,11 +14,13 @@ public abstract class MCUControlPanel implements Receiver { | |
private static final int STATUS_KEY = 0x90; | ||
private static final int STATUS_FADER = 0xe8; | ||
|
||
private final MidiDevice device; | ||
private final Transmitter trans; | ||
private final Receiver rec; | ||
|
||
public MCUControlPanel(final Transmitter trans, final Receiver rec) { | ||
public MCUControlPanel(final MidiDevice device, final Transmitter trans, final Receiver rec) { | ||
|
||
this.device = device; | ||
this.trans = trans; | ||
this.rec = rec; | ||
trans.setReceiver(this); | ||
|
@@ -97,5 +95,6 @@ public void close() { | |
|
||
trans.close(); | ||
rec.close(); | ||
device.close(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.