lilypond-user
[Top][All Lists]
Advanced

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

Re: avoid multiple fret diagrams


From: James Bailey
Subject: Re: avoid multiple fret diagrams
Date: Thu, 21 Jan 2010 20:52:19 +0100

First of all, hello. Welcome. I encourage everyone to read the Learning Manual once completely through before doing anything. It explains how lilypond works, how to get what you want, and where to look for help when you have questions.

To your question, you've included the fret diagram in the Notes variable. Everything in the Notes variable will be included when it is compiled. Essentially, your score is this:

\score {
<<
   \new Staff {
      d ^ \markup \fret-diagram-terse #"x;x;o;2-2;3-3;1-1;" g b
   }

   \new TabStaff {
      d ^ \markup \fret-diagram-terse #"x;x;o;2-2;3-3;1-1;" g b
   }
 >>
}

If you look at it like this, you can see that you've duplicated the fret diagram.

The easiest solution is so put your fret diagrams in a different variable, and include that variable only where you want it. i.e.,

Diagrams = { s4 ^ \markup \fret-diagram-terse #"x;x;o;2-2;3-3;1-1 }

\score { <<\new Staff \Notes \new Staff <<\Diagrams \Notes >> >> }

On 21.01.2010, at 20:27, Pascal Obry wrote:


I'd like to have the fret diagram only printed over the TabStaff and not
the staff. Given the following small code snippet I have the fret
diagram displayed twice. Is there a solution to this? Using macros? I'm
quite new to lilypond and did not found a solution...

Notes = {
   c d ^ \markup \fret-diagram-terse #"x;x;o;2-2;3-3;1-1;"
   g b
}

\score {
<<

   \new Staff {
      \Notes
   }

   \new TabStaff {
      \Notes
   }


}

Thanks,
Pascal.

--

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|    http://www.obry.net  -  http://v2p.fr.eu.org
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver keys.gnupg.net --recv-key F949BD3B



_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user





reply via email to

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