Main Page | Data Structures | File List | Data Fields | Globals

mr_staff.c File Reference

#include <stdlib.h>
#include "mr_lib.h"

Defines

#define STAFF_TIME_A   4
#define STAFF_TIME_B   4
#define STAFF_CLEF   0
#define STAFF_KEY_SCALE   2
#define STAFF_KEY_MODE   1

Functions

MrStaffmr_staff_new (const MrLine *bb, unsigned int number_of_lines)
void mr_staff_free (void *o)
const MrLinemr_staff_get_bb (MrStaff *staff)
void mr_staff_set_line (MrStaff *staff, unsigned int pos, const MrLine *line)
MrLinemr_staff_get_line (MrStaff *staff, unsigned int pos)

Define Documentation

#define STAFF_CLEF   0
 

#define STAFF_KEY_MODE   1
 

#define STAFF_KEY_SCALE   2
 

#define STAFF_TIME_A   4
 

#define STAFF_TIME_B   4
 


Function Documentation

void mr_staff_free void *  o  ) 
 

Destroy a staff

const MrLine* mr_staff_get_bb MrStaff staff  ) 
 

Get the bounding box

MrLine* mr_staff_get_line MrStaff staff,
unsigned int  pos
 

Get a staff line

MrStaff* mr_staff_new const MrLine bb,
unsigned int  number_of_lines
 

Creates a new staff with default values.

void mr_staff_set_line MrStaff staff,
unsigned int  pos,
const MrLine line
 

Set a staff line


Generated on Sun Apr 9 17:29:41 2006 for MusicReco by  doxygen 1.4.4