oap
. You should never try to
create an OMS_app yourself.
class OMS_app { public: ioref open_input( const char* ); ioref open_output( const char* ); ioref open_input( ioref ); ioref open_output( ioref ); ioref open_input(); ioref open_output(); ioref output_refnum( const char* ); void closeAllInputs(); void closeAllOutputs(); int howManyOutputNodes(); char* getOutputNodeName(ioref); int howManyInputNodes(); char* getInputNodeName(ioref); static long time(); void write(const MIDI_msg *m); };
ioref open_input( const char* x)
x
. The matching is done as
a case-insensitive substring search. Once the node is open, the active
parser can receive MIDI messages from the node. Returns the
ioref
of the node.
ioref open_output( const char* x)
x
. The matching is done as
a case-insensitive substring search. Once the node is open, MIDI
messages can be sent to the node with write()
. Returns the
ioref
of the node.
ioref open_input( ioref n )
n
. This is useful if the
ioref
has already been obtained, by using the
howManyInputNodes()
and getInputNodeName()
functions. (for example, to present the user with a menu of nodes.)
Once the node is open, the active
parser can receive MIDI messages from the node. Returns the
ioref
of the node. (Not too useful, since you already
knew it.)
ioref open_output( ioref n )
n
. This is useful if the
ioref
has already been obtained, by using the
howManyOutputNodes()
and getOutputNodeName()
functions. (for example, to present the user with a menu of nodes.)
Once the node is open, MIDI
messages can be sent to the node with write()
. Returns the
ioref
of the node. (Not too useful, since you already
knew it.)
ioref open_input()
default_input
.)
Once the node is open, the active
parser can receive MIDI messages from the node. Returns the
ioref
of the node.
ioref open_output( ioref n )
default_output
.)
Once the node is open, MIDI
messages can be sent to the node with write()
. Returns the
ioref
of the node.
ioref output_refnum( const char* x)
open_output
, and is
provided for compatibility with older Rogus code.
void closeAllInputs()
void closeAllOutputs()
int howManyOutputNodes()
ioref
s range from zero to this number minus one.
char* getOutputNodeName(ioref i)
int howManyInputNodes()
ioref
s range from zero to this number minus one.
char* getInputNodeName(ioref i)
static long time()
void write(const MIDI_msg *m)
m
to the appropriate output node. The output
node must have already been opened.