All Packages Class Hierarchy This Package Previous Next Index
Class com.nosuch.midi.Win32MidiOutput
java.lang.Object
|
+----com.nosuch.midi.Win32MidiOutput
- public class Win32MidiOutput
- extends Object
- implements MidiOutput, Runnable
Handle MIDI output.
-
MIDIMAPPER
-
-
Win32MidiOutput()
- Contructor for using MIDIMAPPER device.
-
Win32MidiOutput(int)
- Contructor for using a particular device
-
Win32MidiOutput(int, boolean)
- Contructor for using a particular device
-
close()
- Close the device.
-
open()
- Open the device.
-
reset()
- Reset the MIDI out device.
-
run()
- Run the output loop.
-
schedule(byte[], long)
- Schedule bytes for output.
-
schedule(MidiPhrase, long)
- Schedule a MidiPhrase for output.
-
startRunning()
-
-
stopRunning()
- Stop the output loop.
MIDIMAPPER
public static final int MIDIMAPPER
Win32MidiOutput
public Win32MidiOutput() throws MidiException
- Contructor for using MIDIMAPPER device.
- Throws: MidiException
- If anything goes wrong.
Win32MidiOutput
public Win32MidiOutput(int id) throws MidiException
- Contructor for using a particular device
- Parameters:
- id - The device id.
- Throws: MidiException
- If anything goes wrong.
Win32MidiOutput
public Win32MidiOutput(int id,
boolean r) throws MidiException
- Contructor for using a particular device
- Parameters:
- id - The device id.
- r - True if you want to enable windows realtime priority.
- Throws: MidiException
- If anything goes wrong.
open
public void open() throws MidiException
- Open the device.
- Throws: MidiException
- If anything goes wrong.
reset
public void reset()
- Reset the MIDI out device. This would also be the logical place to turn
notes off if we add note tracking.
close
public synchronized void close() throws MidiException
- Close the device.
- Throws: MidiException
- If anything goes wrong.
startRunning
public void startRunning()
run
public void run()
- Run the output loop.
stopRunning
public void stopRunning()
- Stop the output loop.
schedule
public synchronized void schedule(MidiPhrase p,
long offset) throws MidiException
- Schedule a MidiPhrase for output.
- Parameters:
- p - MidiPhrase to schedule
- offset - Time (in clicks) to add to phrase before scheduling
- Throws: MidiException
- If anything goes wrong.
schedule
public synchronized void schedule(byte b[],
long offset) throws MidiException
- Schedule bytes for output.
- Parameters:
- bytes - Bytes to schedule
- offset - Time (in clicks) to add to phrase before scheduling
- Throws: MidiException
- If anything goes wrong.
All Packages Class Hierarchy This Package Previous Next Index