lilypond-devel
[Top][All Lists]
Advanced

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

[PATCH] Tablature in LilyPond


From: Han-Wen
Subject: [PATCH] Tablature in LilyPond
Date: Wed, 29 May 2002 01:34:11 +0200

address@hidden writes:
> Here is the new version of the tablature patch for Lilypond (1.5.55) !
> 
> The input/test/tablature.ly file is an exemple.

I've added your code with minor modifications to CVS.  Is this code
production quality (ie. ready for unsuspecting users)? If so, some
documentation should be written as well -- a section should be added
to the reference manual, and perhaps, if applicable an example in the
tutorial.

> > you'll probably want to insert \name TabStaff over here, so you can
> > use  normal and tab staffs in the same file.
> 
> I've tried this but it doesn't work :-(
> I guess i'm not good enough at using context with Lilypond...
> Can someone help me ?

see ly/engraver-init.ly in CVS.

> > this is not necessary. The pitch fo a note head grob can be discovered
> > through unsmob_music 
> > (g->get_grob_property("cause"))->get_mus_property("pitch")
> 
> OK, i now use it (in Scheme) !
> BTW i've fixed a bug in pitch-semitons; this Guile function was returning
> the note number and not the semitons !

Probably.

> The string-tuning is now the string-tunings properties of the TabNoteHead
> grob.
> I prefer to keep the tab string number in the TabNoteHead grob, since it
> may be usefull for other things (e.g. hacking the grob molecule brewer, so
> it write letters instead numbers; if i remember well there are a few
> instruments that use letters).

It's more a musical than a typographical property, so I think it does
not belong in the back end. You could run user code to produce the
letters iso. numbers, eg.

        SCM proc = get_property ("tablatureFormat");
        SCM text = gh_call3 (proc, scm_string, get_property
          ("stringTunings"), scm_pitch)
        note_head->set_grob_property ("text", text);

and then you could plug you own formatting functions  by setting

    tablatureFormat = #my-tablature-format-function .. 

I would be very glad if you would make that change as well. 

-- 

Han-Wen Nienhuys   |   address@hidden   |   http://www.cs.uu.nl/~hanwen 



reply via email to

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