]> git.donarmstrong.com Git - lilypond.git/blob - lily/notename-table.cc
release: 0.1.65
[lilypond.git] / lily / notename-table.cc
1 /*
2   notename-table.cc -- implement Notename_table
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--1998 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
8
9 #include "notename-table.hh"
10 #include "pointer.tcc"
11 #include "musical-request.hh"
12 #include "assoc-iter.hh"
13
14 String
15 Notename_table::get_name (Musical_pitch m) const
16 {
17
18   for (Assoc_iter<String, Musical_pitch> ai (*this); ai.ok (); ai++)
19     {
20       if (ai.val () == m)
21         return ai.key ();
22     }
23   return "r";                   // rest. 
24 }