class Cmdline

Class Cmdline

Public Methods

void close_score (void)
If current score file is open, close it.
Cmdline ()
Constructor. Initialize variables.
void cmdline_read (int argc, char **argv)
Read the arguments from the m4cave command line
char* get_aiff_name (void)
Return sound file name.
char* get_aiff_path (void)
Return sound file path.
FILE* get_scf (void)
Return a pointer to the score file.
void proc_m4c (char *fname)
Read the *

Private Fields

char a_name [256]
char a_path [256]
int* idesk
FILE* score_fp
int score_open
const char SHELL_DELIMITER

Private Methods

void proc_audio (char *fullpath)
Set the file name and <b>full</b> path for the audio file
void proc_score (char *fname)
Open the score file

Documentation

Class Cmdline. Class Cmdline will read the command line arguments and load the corresponding score and audio files. Additionally, the class is used to load new files from within the program by directly calling the proc_m4c method.
Cmdline()
Constructor. Initialize variables.

void cmdline_read(int argc, char **argv)
Read the arguments from the m4cave command line. crash if arguments not present. Othewise, process the *.m4c file listed.
Parameters:
argc - Number of command line arguments.
argv - Array containing those arguments. *

void proc_m4c(char *fname)
Read the *.m4c file. Get the audio and score file names from the file and process each.
Parameters:
fname - m4c file name

char* get_aiff_name(void)
Return sound file name.

char* get_aiff_path(void)
Return sound file path.

void close_score(void)
If current score file is open, close it.

FILE* get_scf(void)
Return a pointer to the score file.

void proc_score(char *fname)
Open the score file.
Parameters:
fname - Score file to open.

void proc_audio(char *fullpath)
Set the file name and <b>full</b> path for the audio file
Parameters:
fullpath - The *.aiff file name.

const char SHELL_DELIMITER

int score_open

char a_name[256]

char a_path[256]

FILE* score_fp

int* idesk


This class has no child classes.

alphabetic index hierarchy of classes


M4cave Sound Visualization

Contacts

M4cave Reference Manual
Help With Doc++

generated by doc++