1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
|
/* frogdefs.h */
/* Definitions pertaining to the frog i/o language */
/* (c) 1999, 2000, 2001 Adam Tee, Matthew Hiller */
#ifndef FROGDEFS_H
#define FROGDEFS_H
#include <stdio.h>
#include <ctype.h>
#include "datastructures.h"
#define FROG_MAX_TOKEN_STRING 20
struct p_position
{
float xoff;
float yoff;
};
struct p_beam_type
{
char btype[10];
char direction[5];
};
struct p_beam
{
struct p_beam_type type;
char direction[5];
};
struct p_pitch
{
char notename[3];
int octave;
int number_of_lines;
};
struct p_gracenoteoption
{
char type[FROG_MAX_TOKEN_STRING];
int dots;
struct p_position t_position;
};
struct p_grace
{
char stemdir[5];
struct p_gracenoteoption option;
struct p_beam t_beamd;
struct p_pitch t_pitch;
struct p_position t_position;
float duration;
};
struct p_modifier
{
char type[FROG_MAX_TOKEN_STRING];
struct p_grace gracenote;
int dots;
struct p_position t_position;
};
typedef struct p_noteoption
{
char type[FROG_MAX_TOKEN_STRING];
struct p_modifier t_modifier;
struct p_noteoption *next;
}optionlist;
struct p_note
{
char stemdir[5];
struct p_noteoption *t_option;
struct p_beam t_beamd;
struct p_pitch t_pitch;
struct p_position t_position;
float duration;
};
struct p_staff
{
int numoflines;
int positioninhalflines;
int transposition;
char name[FROG_MAX_TOKEN_STRING];
};
struct p_rest
{
int dots;
char rest;
};
struct p_tupops
{
int numerator;
int denominator;
};
struct p_slur
{
char string[15];
struct p_position t_position;
char curve[15];
};
struct p_hairpin
{
char string[15];
};
void yy_setscore (struct scoreinfo *si);
int froginput (char *filename, struct scoreinfo *si);
void p_newstaff (struct scoreinfo *si, struct p_staff *staff);
void changeofkey (char *keyname);
#endif
|