Tux Guitar

Problems

Subject LilyPond Output Problem



Author Message
Mark Clark
Post: Apr 11th 2008 at 4:07 PM

There is a spelling error in the LilyPond output for guitar tuning. The implementation is just what one could hope for but the generated code...

GuitarATabStaff = new TabStaff {
set TabStaff.StringTuning = #'(4 -1 -5 -10 -15 -20 )
GuitarAMusic ##t
}

fails because the correct variable reference is...

set TabStaff.stringTunings = #'(4 -1 -5 -10 -15 -20 )

I don't know whether the lower case "s" in stringTunings is critical or not but an "s" must be added to the variable name for LilyPond to interpret the statement correctly.

Since the generated code fails, LilyPond defaults to standard guitar tuning which is acceptable for most purposes but if someone had specified a special tuning in TuxGuitar, it may not make it into LilyPond correctly.

The warning that LilyPond issues is...

warning: can't find property type-check for `StringTuning' (translation-type?). perhaps a typing error?
warning: doing assignment anyway

This may just mean that LilyPond figured out that "stringTunings" was intended or it may mean that the statement was ignored completely. I haven't played with the possible variations to ascertain which is the case.

NB: I'm sure liking this. LilyPond output has great potential.

- Mark


Back to Top
 
Julian
Post: Apr 11th 2008 at 6:36 PM

Hi,
yes you are right.

> I don't know whether the lower case "s" in stringTunings is critical
Yes it is.. with "TabStaff.StringTunings" it still showing the warning.
So as you told "TabStaff.stringTunings" is the right.

I fixed it on CVS version now.
Thanks for report!


Back to Top
 
Mark Clark
Post: Apr 11th 2008 at 7:01 PM

Wow! That was fast.

Thanks for the fix. I'll look forward to the next release.

- Mark


Back to Top