Main Page | Alphabetical List | Class List | Directories | File List | Class Members | File Members

Netmusic Class Reference

#include <Netmusic.hh>

List of all members.


Detailed Description

Provides methods for the netmusic sender and receiver program.

Definition at line 60 of file Netmusic.hh.

Static Public Member Functions

static void check_error (int value, std::string error_text)
 checks the return value of many other functions.
static snd_seq_t * sender_open_seq ()
 creates a new sequencer s on the sender side
static snd_seq_t * receiver_open_seq (int *portId)
 creates a new sequencer client on the receiver side
static void print_read_data (snd_seq_event_t *ev)
 write read data to console
static void sender_print_welcome_msg ()
 Prints out the welcome message for the sender.
static void receiver_print_welcome_msg ()
 Prints out the welcome message for the receiver.
static void sender_print_help_msg ()
 Prints out the help message text for the sender.
static void receiver_print_help_msg ()
 Prints out the help message text for the receiver.
static void sender_print_param (int mini, int midiPort, int miniPort, int syncPort, int startKey, int threshold, char *receiverIp)
 Prints out the set values of the application.
static void receiver_print_param (int mini, int midiPort, int miniPort, int syncPort, int startKey, int pgmChange, int velocity)
 Prints out the receiver parameters.
static void sender_check_args (int argc, char **argv, int *mini, int *midiPort, int *miniPort, int *syncPort, int *startKey, int *threshold, char *receiverIp)
 Sets the given sender parameters, according to the command line args.
static void receiver_check_args (int argc, char **argv, int *syncPort, int *pgmChange, int *velocity)
 Sets the given receiver parameters, according to the command line args.


Member Function Documentation

void Netmusic::check_error int  value,
std::string  error_text
[static]
 

checks the return value of many other functions.

Parameters:
value A integer value containing the to be checked value.
error_text A string containing the error text

Definition at line 34 of file Netmusic.cpp.

Referenced by main(), midi_function(), mini_function(), mini_off_function(), mini_on_function(), receiver_check_args(), receiver_open_seq(), sender_check_args(), sender_open_seq(), and sync_function().

void Netmusic::print_read_data snd_seq_event_t *  ev  )  [static]
 

write read data to console

Parameters:
ev read event

Definition at line 80 of file Netmusic.cpp.

References DELIMITER.

Referenced by midi_function().

void Netmusic::receiver_check_args int  argc,
char **  argv,
int *  syncPort,
int *  pgmChange,
int *  velocity
[static]
 

Sets the given receiver parameters, according to the command line args.

Parameters:
argc 
argv 
syncPort 
pgmChange 
velocity 

Definition at line 245 of file Netmusic.cpp.

References check_error(), and receiver_print_help_msg().

Referenced by main().

Here is the call graph for this function:

snd_seq_t * Netmusic::receiver_open_seq int *  portId  )  [static]
 

creates a new sequencer client on the receiver side

Returns:
seq_handle Returns the handler for the sequencer
Parameters:
portId The portId of the used output port.
See also:
sender_open_seq()

Definition at line 63 of file Netmusic.cpp.

References check_error().

Referenced by main().

Here is the call graph for this function:

void Netmusic::receiver_print_help_msg  )  [static]
 

Prints out the help message text for the receiver.

Definition at line 141 of file Netmusic.cpp.

References DELIMITER, and VERSION.

Referenced by receiver_check_args().

void Netmusic::receiver_print_param int  mini,
int  midiPort,
int  miniPort,
int  syncPort,
int  startKey,
int  pgmChange,
int  velocity
[static]
 

Prints out the receiver parameters.

Parameters:
mini 
midiPort 
miniPort 
syncPort 
startKey 
pgmChange 
velocity 

Definition at line 329 of file Netmusic.cpp.

Referenced by main().

void Netmusic::receiver_print_welcome_msg  )  [static]
 

Prints out the welcome message for the receiver.

Definition at line 118 of file Netmusic.cpp.

References AUTHOR, DELIMITER, EMAIL, and VERSION.

Referenced by main().

void Netmusic::sender_check_args int  argc,
char **  argv,
int *  mini,
int *  midiPort,
int *  miniPort,
int *  syncPort,
int *  startKey,
int *  threshold,
char *  receiverIp
[static]
 

Sets the given sender parameters, according to the command line args.

Parameters:
argc Number of args
argv char** holds all args
mini A pointer to the mini parameter.
midiPort 
miniPort 
syncPort 
startKey 
receiverIp 
threshold 

Definition at line 152 of file Netmusic.cpp.

References check_error(), and sender_print_help_msg().

Referenced by main().

Here is the call graph for this function:

snd_seq_t * Netmusic::sender_open_seq  )  [static]
 

creates a new sequencer s on the sender side

Returns:
seq_handle Returns the handler for the sequencer
See also:
receiver_open_seq()

Definition at line 44 of file Netmusic.cpp.

References check_error().

Referenced by main().

Here is the call graph for this function:

void Netmusic::sender_print_help_msg  )  [static]
 

Prints out the help message text for the sender.

Definition at line 126 of file Netmusic.cpp.

References DELIMITER, and VERSION.

Referenced by sender_check_args().

void Netmusic::sender_print_param int  mini,
int  midiPort,
int  miniPort,
int  syncPort,
int  startKey,
int  threshold,
char *  receiverIp
[static]
 

Prints out the set values of the application.

Parameters:
mini A pointer to the mini parameter.
midiPort 
miniPort 
syncPort 
startKey 
receiverIp 
threshold 

Definition at line 297 of file Netmusic.cpp.

Referenced by main().

void Netmusic::sender_print_welcome_msg  )  [static]
 

Prints out the welcome message for the sender.

Definition at line 110 of file Netmusic.cpp.

References AUTHOR, DELIMITER, EMAIL, and VERSION.

Referenced by main().


The documentation for this class was generated from the following files:
Generated on Mon Jun 13 22:06:59 2005 for Netmusic by  doxygen 1.4.3