OMS_app


The OMS_app is the class which handles basic MIDI I/O. There is only one OMS_app, which Rogus creates for you, and you can access it through the global pointer oap. You should never try to create an OMS_app yourself.

class OMS_app {
public:
  OMS_app( long app_sig  );
  ~OMS_app();
  
  ioref open_input( const char* );
  ioref output_refnum( const char* );
  
  void closeAllInputs();
  void closeAllOutputs();
  void processQueue();
  
  int howManyOutputNodes();
  ioref getOutputRefnum(int);
  char* getOutputNodeName(ioref);
  
  static long time();
  
  void write(const MIDI_msg *m);
};
OMS_app( long app_sig )
Constructs an OMS_app. Only trained professionals should attempt this.
~OMS_app()
Destroys an OMS_app.
ioref open_input( const char* x)
Opens the input node named 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 output_refnum( const char* x)
Returns the ioref of the node named x. The matching is done as a case-insensitive substring search.
void closeAllInputs()
Closes all open input nodes.
void closeAllOutputs()
Closes all open output nodes.
void processQueue()
Internal to the implementation. Shouldn't really be a public function.
int howManyOutputNodes()
Returns the number of output nodes in the system.
ioref getOutputRefnum(int n)
Returns the ioref of the nth output node.
char* getOutputNodeName(ioref i)
Returns the name of output node i.
static long time()
Returns the current time, as the number of half-milliseconds since Rogus was started.
void write(const MIDI_msg *m)
Sends m to the appropriate output node.

Modified 30 March 1996 pepellet@mit.edu