[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cryptic error message with tabs

From: hernan gonzalez
Subject: Cryptic error message with tabs
Date: Sat, 7 Apr 2007 11:16:12 -0300

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'
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.

Hernán J. González

\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 address@hidden

\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 } }

reply via email to

[Prev in Thread] Current Thread [Next in Thread]