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.


Variable Index

 o MIDIMAPPER

Constructor Index

 o Win32MidiOutput()
Contructor for using MIDIMAPPER device.
 o Win32MidiOutput(int)
Contructor for using a particular device
 o Win32MidiOutput(int, boolean)
Contructor for using a particular device

Method Index

 o close()
Close the device.
 o open()
Open the device.
 o reset()
Reset the MIDI out device.
 o run()
Run the output loop.
 o schedule(byte[], long)
Schedule bytes for output.
 o schedule(MidiPhrase, long)
Schedule a MidiPhrase for output.
 o startRunning()
 o stopRunning()
Stop the output loop.

Variables

 o MIDIMAPPER
 public static final int MIDIMAPPER

Constructors

 o Win32MidiOutput
 public Win32MidiOutput() throws MidiException
Contructor for using MIDIMAPPER device.

Throws: MidiException
If anything goes wrong.
 o Win32MidiOutput
 public Win32MidiOutput(int id) throws MidiException
Contructor for using a particular device

Parameters:
id - The device id.
Throws: MidiException
If anything goes wrong.
 o 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.

Methods

 o open
 public void open() throws MidiException
Open the device.

Throws: MidiException
If anything goes wrong.
 o 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.

 o close
 public synchronized void close() throws MidiException
Close the device.

Throws: MidiException
If anything goes wrong.
 o startRunning
 public void startRunning()
 o run
 public void run()
Run the output loop.

 o stopRunning
 public void stopRunning()
Stop the output loop.

 o 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.
 o 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