| 1 |
# include "process_score.h" |
| 2 |
|
| 3 |
# define APPOGG_SPACING SP(64)+SP(256) /* not a legitimate spacing */ |
| 4 |
# define notespp "\\vnotes2.95\\elemskip" |
| 5 |
# define Notespp "\\vnotes3.95\\elemskip" |
| 6 |
# define NOtespp "\\vnotes4.95\\elemskip" |
| 7 |
# define NOTespp "\\vnotes6.95\\elemskip" |
| 8 |
# define NOTEsp "\\vnotes9.52\\elemskip" |
| 9 |
# define APPOGG_NOTES "\\vnotes1.45\\elemskip" |
| 10 |
|
| 11 |
extern char terminator[MAX_STAFFS]; /* one of '&' "|', '$' */ |
| 12 |
|
| 13 |
extern char *notes[MAX_STAFFS]; /* note segment for ith staff */ |
| 14 |
extern char *current[MAX_STAFFS]; |
| 15 |
|
| 16 |
extern int spacings[MAX_STAFFS]; /* spacing for ith staff */ |
| 17 |
|
| 18 |
extern int vspacing[MAX_STAFFS]; /* virtual-note (skip) spacing */ |
| 19 |
extern bool vspacing_active[MAX_STAFFS]; /* virtual-note spacing active? */ |
| 20 |
/* used to preclude unnecessary pre-accidental skips */ |
| 21 |
|
| 22 |
extern bool nonvirtual_notes; /* used to preclude output of *only* virtual notes */ |
| 23 |
|
| 24 |
extern int cspacing[MAX_STAFFS]; /* nominal collective-note spacing */ |
| 25 |
extern char collective[MAX_STAFFS][SHORT_LEN]; |
| 26 |
/* prefixes for collective note sequences */ |
| 27 |
extern bool first_collective[MAX_STAFFS]; |
| 28 |
|
| 29 |
extern char deferred_bar[SHORT_LEN]; /* deferred \bar (or \endpiece etc.) */ |
| 30 |
|
| 31 |
extern int beaming[MAX_STAFFS]; /* spacing for beamed notes */ |
| 32 |
extern int new_beaming; |
| 33 |
extern int semiauto_beam_notes[MAX_STAFFS]; /* semi-automatic beam notes */ |
| 34 |
|
| 35 |
extern int spacing_staff; /* staff that determines current spacing */ |
| 36 |
|
| 37 |
/* save-restore state for a staff; used in process_xtuplet */ |
| 38 |
extern int beamingi; |
| 39 |
extern char *currenti; |
| 40 |
extern int cspacingi; |
| 41 |
extern int vspacingi; |
| 42 |
extern char collectivei[SHORT_LEN]; |
| 43 |
extern bool first_collectivei; |
| 44 |
|
| 45 |
extern int xtuplet[MAX_STAFFS]; /* x for xtuplet in staff i */ |
| 46 |
|
| 47 |
extern bool appoggiatura; |
| 48 |
|
| 49 |
extern char outstrings[MAX_STAFFS][LINE_LEN]; |
| 50 |
/* accumulate commands to be output */ |
| 51 |
extern char *n_outstrings[MAX_STAFFS]; |
| 52 |
|
| 53 |
extern int global_skip; |
| 54 |
/* = 1, 2, 3, or 4 for (non-standard) commands \QQsk \HQsk \TQsk \Qsk */ |
| 55 |
/* = 5 for five commas and double-flat accidental spacing */ |
| 56 |
/* = 6 for six commas */ |
| 57 |
|
| 58 |
|
| 59 |
extern char s[SHORT_LEN]; /* string for ps() */ |
| 60 |
extern char *s_n; |
| 61 |
|
| 62 |
char *ps(int spacing); |
| 63 |
void note_segment (char *s); |
| 64 |
void status (int i); |
| 65 |
void status_spacing (void); |
| 66 |
void status_all (void); |
| 67 |
void status_collective (int i); |
| 68 |
void status_beam (int i); |
| 69 |
|
| 70 |
|
| 71 |
int spacing_note (int i); |
| 72 |
void output_notes (int i); |
| 73 |
void initialize_notes (); |