lilypond-devel
[Top][All Lists]
Advanced

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

Using \with {...} {...} instead of << xxx.set ...=... {...} >> in the do


From: Reinhold Kainhofer
Subject: Using \with {...} {...} instead of << xxx.set ...=... {...} >> in the documentation?
Date: Mon, 29 Oct 2007 16:49:34 +0200
User-agent: KMail/1.9.7

Hi, 
Looking at the documentation for non-guitar tab staves 
(http://reinhold.kainhofer.com/~lilypond/Documentation/user/lilypond/Non_002dguitar-tablatures.html
 ), 
I realized that the example might be simplified. In particular, in the 
following snippet, both staves look exactly the same:

\version "2.11.34"

\new TabStaff \with { stringTunings = #'(-5 -10 -15 -20)} 
  { a,4 c' a e' e c' a e' }

\new TabStaff <<
  \set TabStaff.stringTunings = #'(-5 -10 -15 -20)
  { a,4 c' a e' e c' a e' }
>>


I think the first one is much more natural, since it creates a TabStaff with a 
given tuning. For the second one, one needs to know abit more about the 
internals (i.e. you need to know that you are inside a TabStaff, and you need 
to create parallel music)...  

Is there any reason for the current (second) version, and is there any 
official preference for any of the two forms?

Cheers,
Reinhold
-- 
------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: address@hidden, http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/




reply via email to

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