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 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180
|
/*
Gregorio xml output format headers.
Copyright (C) 2006 Elie Roux <elie.roux@telecom-bretagne.eu>.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
// Functions to write GregorioXML
#ifndef XML_H
#define XML_H
void
libgregorio_xml_write_score_attributes (FILE * f, gregorio_score * score);
void
write_score (FILE * f, gregorio_score * score);
void
libgregorio_xml_write_specials_as_neumes (FILE * f, gregorio_element * element,
int voice, int *clef);
void
libgregorio_xml_write_neume (FILE * f, gregorio_element * element, int voice, int *clef,
char alterations[]);
void
libgregorio_xml_write_syllable (FILE * f, gregorio_syllable * syllable,
int number_of_voices, int clef[],
char alterations[][13]);
void
libgregorio_xml_print_text (FILE * f, gregorio_character *text, char position);
void
libgregorio_xml_print_translation (FILE * f, gregorio_character * translation);
void
libgregorio_xml_write_key_change_in_polyphony (FILE * f, char step, int line,
int voice);
const char *libgregorio_xml_shape_to_str (char shape);
const char *libgregorio_xml_signs_to_str (char signs);
void libgregorio_xml_write_signs (FILE *f, char signs, char rare_sign, char multi_h_episemus_type);
void libgregorio_xml_write_note (FILE *f, char signs, char step, int octave, char shape, char multi_h_episemus_type, char alteration, char rare_sign);
const char *libgregorio_xml_glyph_type_to_str(char name);
void libgregorio_xml_write_liquescentia (FILE *f, char liquescentia);
void determine_h_episemus_type (gregorio_note *note);
void libgregorio_xml_write_pitch(FILE *f, char pitch, char clef);
void libgregorio_xml_write_gregorio_glyph (FILE *f, gregorio_glyph *glyph, int clef, char alterations[]);
void libgregorio_xml_write_gregorio_note (FILE *f, gregorio_note *note, int clef, char alterations[]);
void libgregorio_xml_write_alteration (FILE *f, char type, char pitch, int clef, char *tab);
void
libgregorio_xml_write_gregorio_element (FILE * f, gregorio_element * element, int *clef,
char alterations[]);
const char * libgregorio_xml_bar_to_str(char type);
void libgregorio_xml_write_neumatic_bar (FILE * f, char type);
void libgregorio_xml_write_space (FILE * f, char type);
void libgregorio_xml_write_key_change (FILE *f, char step, int line);
void libgregorio_xml_write_begin (FILE * f, unsigned char style);
void libgregorio_xml_write_end (FILE * f, unsigned char style);
void libgregorio_xml_write_special_char (FILE * f, grewchar * special_char);
void libgregorio_xml_write_verb (FILE * f, grewchar * verb_str);
void libgregorio_xml_print_char (FILE * f, grewchar to_print);
void libgregorio_xml_set_pitch_from_octave_and_step (char step, int octave, char *pitch, int clef);
// Functions to read GregorioXML
#include <libxml/xmlmemory.h>
#include <libxml/parser.h>
gregorio_score * read_file (char *filename);
void libgregorio_xml_read_score_attributes (xmlNodePtr current_node, xmlDocPtr doc, gregorio_score * score);
void libgregorio_xml_read_multi_voice_info (xmlNodePtr current_node, xmlDocPtr doc, gregorio_score * score);
void libgregorio_xml_read_mono_voice_info (xmlNodePtr current_node, xmlDocPtr doc, gregorio_score * score);
void libgregorio_xml_read_voice_info (xmlNodePtr current_node, xmlDocPtr doc, gregorio_voice_info * voice_info);
int
libgregorio_xml_read_initial_key (xmlNodePtr current_node, xmlDocPtr doc);
void
libgregorio_xml_read_key (xmlNodePtr current_node, xmlDocPtr doc, char *step,
int *line);
void
libgregorio_xml_read_syllable (xmlNodePtr current_node, xmlDocPtr doc,
gregorio_syllable ** current_syllable,
int number_of_voices, char alterations[][13],
int clefs[]);
char
libgregorio_xml_read_signs (xmlNodePtr current_node, xmlDocPtr doc,
char * h_episemus, char *rare_sign);
char
libgregorio_xml_read_shape (char *type);
void
libgregorio_xml_read_h_episemus (xmlNodePtr current_node, char *h_episemus);
char
libgregorio_xml_read_pitch (xmlNodePtr current_node, xmlDocPtr doc, int key);
void
libgregorio_xml_read_note
(xmlNodePtr
current_node, xmlDocPtr doc, gregorio_note ** current_note, int key);
char
libgregorio_xml_read_glyph_type (char *type);
char
libgregorio_xml_read_alteration (xmlNodePtr current_node, xmlDocPtr doc,
int key);
void
libgregorio_xml_read_glyph (xmlNodePtr current_node, xmlDocPtr doc,
gregorio_glyph ** current_glyph,
int key);
void
libgregorio_xml_read_glyphs (xmlNodePtr current_node, xmlDocPtr doc,
gregorio_element * element, char alterations[13],
int key);
void
libgregorio_xml_read_element (xmlNodePtr current_node, xmlDocPtr doc,
gregorio_element ** current_element,
char alterations[13], int *key);
void
libgregorio_xml_read_elements (xmlNodePtr current_node, xmlDocPtr doc,
gregorio_element ** first_element,
char alterations[13], int *key);
void
libgregorio_xml_read_multi_neumes (xmlNodePtr current_node, xmlDocPtr doc,
gregorio_syllable * syllable,
int number_of_voices, char alterations[][13],
int clefs[]);
void
libgregorio_xml_read_mono_neumes (xmlNodePtr current_node, xmlDocPtr doc,
gregorio_syllable * syllable,
char alterations[][13], int clefs[]);
void
libgregorio_xml_read_text (xmlNodePtr current_node, xmlDocPtr doc,
gregorio_syllable * syllable);
void
libgregorio_xml_read_translation (xmlNodePtr current_node, xmlDocPtr doc,
gregorio_syllable * syllable);
char
libgregorio_xml_read_figura (char *liquescentia);
char libgregorio_xml_read_bar (xmlNodePtr current_node, xmlDocPtr doc);
char libgregorio_xml_read_position (char *position);
#endif
|