Perhaps not really a bug, but an inconvenience anyway:

When the TabStaff finds a note that is out of the range of the
instrument, it dies with an ugly and cryptic "low level" error
message, with no indication about the measure or line where the error
is found (or even what the problem is about).

----------------------------------------------------------------------
\lilypond.exe"  testcase3.ly
GNU LilyPond 2.10.19
Processing `testcase3.ly'
Analizando...
Interpreting music... ERROR: In procedure list-ref:
ERROR: Argument 2 out of range: 6
----------------------------------------------------------------------

This can make fairly difficult for the user to find out what is
happening and where.

I attach a simple testcase below.
Cheers

Hernán J. González
http://hjg.com.ar/ghibli/musica/

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\version "2.8.0"
\include "english.ly"
%
% This test case shows the confusing message that appears when an invalid note
% is found by the TabStaff engraver.
%  Tested with lilypond-2.10.19 in WinXP
%
% Hernán González [EMAIL PROTECTED]
%

\header {  title = "test case - invalid note in tab" }

top =   {
     e4 c4 e,2  | % ok
     e4 c,4 e,2 | % bad: this c note, is out of the range of the guitar
     e4 c4 e,2 | % ok
}

thescore =  \score {    <<
             \context StaffGroup <<
             \context Staff <<
                     \time 4/4
                     \key g \major
                     \set Staff.midiInstrument = "acoustic guitar (nylon)"
                     \clef "G_8"
                     \context Voice { \top }
             >>
             \context TabStaff <<
                     \context TabVoice {     \top }
             >>      >>      >>
     \layout {}
}

\book {  \paper  {} \score  {  \thescore } }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to