13#ifndef __conversions__
14#define __conversions__
22#pragma warning (disable : 4251)
35 enum type { undefined, upper, main, below, last=below };
38 static const string xml (type d);
40 static type
xml (
const string str);
45 static string fSNStrings[];
53 enum type { undefined, whole, half, unison, none, last=none };
56 static const string xml (type d);
58 static type
xml (
const string str);
63 static string fTSStrings[];
71 enum type { undefined, full, cue, last=cue };
74 static const string xml (type d);
76 static type
xml (
const string str);
81 static string fFCStrings[];
89 enum type { undefined, yes, no, last=no };
92 static const string xml (type d);
94 static type
xml (
const string str);
99 static string fYNStrings[];
107 enum type { undefined, start, stop, cont, last=cont };
110 static const string xml (type d);
112 static type
xml (
const string str);
116 static type fStartStopTbl[];
117 static string fStartStopStrings[];
125 enum type { undefined, solid, dashed, dotted, wavy, last=wavy };
128 static const string xml (type d);
130 static type
xml (
const string str);
134 static type fLineTypeTbl[];
135 static string fLineTypeStrings[];
147 enum type { undefined,
148 t256th=1, t128th=1<<1, t64th=1<<2, t32nd=1<<3,
149 t16th=1<<4, eighth=1<<5, quarter=1<<6,
150 half=1<<7, whole=1<<8, breve=1<<9, tlong=1<<10,
156 static const string xml (type d);
158 static type
xml (
const string str);
162 static type fTypeTbl[];
163 static string fTypeStrings[];
provides conversions between numeric note size types and strings
Definition conversions.h:69
static const string xml(type d)
convert a numeric size value to a MusicXML string
static type xml(const string str)
convert a MusicXML string to a numeric size value
provides conversions between numeric line types and strings
Definition conversions.h:123
static const string xml(type d)
convert a numeric start-stop value to a MusicXML string
static type xml(const string str)
convert a MusicXML string to a numeric start-stop value
provides conversions between numeric note types and strings
Definition conversions.h:145
static const string xml(type d)
convert an integer note type to a MusicXML string
static rational type2rational(type d)
convert an integer note to a rational representation
static type xml(const string str)
convert an MusicXML string to an integer note type
provides conversions between numeric start-stop types and strings
Definition conversions.h:105
static const string xml(type d)
convert a numeric start-stop value to a MusicXML string
static type xml(const string str)
convert a MusicXML string to a numeric start-stop value
provides conversions between numeric trill start notes and strings
Definition conversions.h:33
static const string xml(type d)
convert a numeric start note value to a MusicXML string
static type xml(const string str)
convert a MusicXML string to a numeric start note value
provides conversions between numeric trill step, turn and strings
Definition conversions.h:51
static const string xml(type d)
convert a numeric trill step or turn value to a MusicXML string
static type xml(const string str)
convert a MusicXML string to a numeric trill step or turn value
provides conversions between numeric yes-no types and strings
Definition conversions.h:87
static const string xml(type d)
convert a numeric yes-no value to a MusicXML string
static type xml(const string str)
convert a MusicXML string to a numeric yes-no value
implements a bijective map
Definition bimap.h:28
Rational number representation.
Definition rational.h:25