/*
- tab-note-heads-engraver.cc -- part of GNU LilyPond
+ This file is part of LilyPond, the GNU music typesetter.
- (c) 2002--2007 Han-Wen Nienhuys, Jean-Baptiste Lamy <jiba@tuxfamily.org>,
+ Copyright (C) 2002--2010 Han-Wen Nienhuys, Jean-Baptiste Lamy <jiba@tuxfamily.org>,
+
+ LilyPond 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.
+
+ LilyPond 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 LilyPond. If not, see <http://www.gnu.org/licenses/>.
*/
#include <cctype>
SCM scm_pitch = event->get_property ("pitch");
int min_fret = robust_scm2int (get_property ("minimumFret"), 0);
int start = (high_string_one) ? 1 : string_count;
- int end = (high_string_one) ? string_count : 1;
+ int end = (high_string_one) ? string_count+1 : 0;
int i = start;
do
}
ADD_TRANSLATOR (Tab_note_heads_engraver,
- /* doc */ "Generate one or more tablature noteheads from event of type NoteEvent.",
+ /* doc */
+ "Generate one or more tablature noteheads from event of type"
+ " @code{NoteEvent}.",
+
/* create */
- "TabNoteHead "
- ,
+ "TabNoteHead ",
/* read */
+ "fretLabels "
+ "highStringOne "
"middleCPosition "
- "stringTunings "
"minimumFret "
- "tablatureFormat "
- "highStringOne "
- "stringOneTopmost ",
+ "stringOneTopmost "
+ "stringTunings "
+ "tablatureFormat ",
- /* write */ "");
+ /* write */ ""
+ );