lilypond-0.0.1
[lilypond.git] / notename.cc
blob8ebc4df2442a6bc0ffaab666259ccf31970d4a41
1 #include "glob.hh"
2 #include "string.hh"
5 /// change this along with lex file for other notenames.
6 const char *notetab[] =
8 "ceses", "ces", "c", "cis", "cisis",
9 "deses", "des", "d", "dis", "disis",
10 "eses", "es", "e", "eis", "eisis",
11 "feses", "fes", "f", "fis", "fisis",
12 "geses", "ges", "g", "gis", "gisis",
13 "ases", "as", "a", "ais", "aisis",
14 "beses", "bes", "b", "bis", "bisis",
18 void
19 lookup_notename(int &large, int &small, String s)
21 int i;
22 for (i =0; notetab[i]; i++)
23 if (s == notetab[i])
25 large = i /5;
26 small = i %5 - 2;
27 return;
29 assert(false);