Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 3a7b4dfc766af1222d90c7f03a0844e6 > files > 6848

lilypond-doc-2.11.57-1mdv2009.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- header_tag -->
<html lang="en">
<head>
<title>Automatic fret diagrams - GNU LilyPond Notation Reference</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content="GNU LilyPond Notation Reference">
<meta name="generator" content="makeinfo 4.11">
<link title="Top" rel="start" href="index.fr.html#Top">
<link rel="up" href="Common-notation-for-fretted-strings.fr.html#Common-notation-for-fretted-strings" title="Common notation for fretted strings">
<link rel="prev" href="Predefined-fret-diagrams.fr.html#Predefined-fret-diagrams" title="Predefined fret diagrams">
<link rel="next" href="Right_002dhand-fingerings.fr.html#Right_002dhand-fingerings" title="Right-hand fingerings">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<!--
Copyright (C) 1999--2007 by the authors

     Permission is granted to copy, distribute and/or modify this
     document under the terms of the GNU Free Documentation License,
     Version 1.1 or any later version published by the Free Software
     Foundation; with no Invariant Sections.  A copy of the license is
     included in the section entitled ``GNU Free Documentation
     License''.
   -->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
  pre.display { font-family:inherit }
  pre.format  { font-family:inherit }
  pre.smalldisplay { font-family:inherit; font-size:smaller }
  pre.smallformat  { font-family:inherit; font-size:smaller }
  pre.smallexample { font-size:smaller }
  pre.smalllisp    { font-size:smaller }
  span.sc    { font-variant:small-caps }
  span.roman { font-family:serif; font-weight:normal; } 
  span.sansserif { font-family:sans-serif; font-weight:normal; } 
hr { border:0; height:1; color: #000000; background-color: #000000; }
/* hr {
  border:  none;
  height: 1px;
  color: #666666;
  background-color: #666666;
}
body {
  border-left: 1px solid #666666;
  border-right: 1px solid #666666;
  color: #332d28;
  margin-right: auto;
  margin-left: auto;
  width: 60em;
  list-style-type: square;
  font-family: Arial,Helvetica,sans-serif;
  padding-right: 1em;
  padding-left: 1em;
}
a {
  border-bottom: 1px dashed #344242;
  text-decoration: none;
  color: #344242;
}
a:link {
  text-decoration: none;
}
a:visited {
  border-bottom: 1px dashed #666666;
  color: #666666;
}
a:active {
  border-bottom: 1px solid #00cccc;
  color: #00cccc;
}
a:hover {
  border-bottom: 1px solid #1d7b85;
  color: #1d7b85;
}
blockquote {
  border: 1px solid #cccccc;
  padding: 3px;
  width: 40em;
}
.node {
  border-left: 1px solid #666666;
  margin: -0.5em 0px 1em;
  padding: 2px 1px 0px;
  font-style: italic;
}
.node a {
  border:  none;
  text-decoration: underline;
  font-style: normal;
  font-weight: bold;
}
.verbatim {
  font-family: "Courier New",Courier,monospace;
}
.unnumberedsubsubsec {
  font-size: large;
  color: #1d7b85;
}
.subsubheading {
  font-size: large;
  color: #3b220d;
}
.contents {
  border: 1px dashed #339999;
  margin: 3px 2em;
  list-style-type: square;
  padding-right: 1em;
  width: 40em;
  background-color: #fcfff9;
}
.contents a {
  border-bottom: 1px dashed #423d34;
  text-decoration: none;
  color: #423d34;
}
.contents a:visited {
  border-bottom: 1px dashed #666666;
  color: #666666;
}
.contents a:active {
  border-bottom: 1px solid #f0d86d;
  color: #f0d86d;
}
.contents a:hover {
  border-bottom: 1px solid #3b220d;
  color: #3b220d;
}
.menu {
  border-left: 1px dashed #339999;
  margin: 3px 2em 1em;
  list-style-type: square;
  padding-left: 1.4em;
  width: 40em;
}
.unnumbered {
}
h2 {
  font-size: x-large;
  color: #1d7b85;
}
*/
--></style>
</head>
<BODY BGCOLOR=WHITE TEXT=BLACK>

<div class="node">
<p>
<a name="Automatic-fret-diagrams"></a>
Next:&nbsp;<a rel="next" accesskey="n" href="Right_002dhand-fingerings.fr.html#Right_002dhand-fingerings">Right-hand fingerings</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="Predefined-fret-diagrams.fr.html#Predefined-fret-diagrams">Predefined fret diagrams</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Common-notation-for-fretted-strings.fr.html#Common-notation-for-fretted-strings">Common notation for fretted strings</a>
<hr>
</div>

<h5 class="unnumberedsubsubsec">Automatic fret diagrams</h5>

<p><a name="index-fret-diagrams-2099"></a><a name="index-chord-diagrams-2100"></a>
Fret diagrams can be automatically created from entered notes using the
<code>FretBoards</code> context.  If no predefined diagram is available for
the entered notes in the active <code>stringTunings</code>, this context
calculates strings and frets that can be used to play the notes.

   <blockquote>
<pre class="verbatim">     
     &lt;&lt;
       \context ChordNames {
          \chordmode { 
            f1 g  
          }
       }
       \context FretBoards {
         &lt; f, c f a c' f'>1
         &lt; g,\6 b, d g b g'>
       }
       \context Staff {
         \clef "treble_8"
         &lt; f, c f a c' f'>1
         &lt; g, b, d g b' g'>
       }  
     >>
</pre>
     <p>
 <a href="../90/lily-7a9a00ba.ly">
  <img align="middle"
    border="0" src="../90/lily-7a9a00ba.png" alt="[image of music]">
 </a>
</p>

   </blockquote>

   <p>As no predefined diagrams are loaded by default, automatic calculation
of fret diagrams is the default behavior.  Once default diagrams are
loaded, automatic calculation can be enabled and disabled with predefined
commands:

   <blockquote>
<pre class="verbatim">     
     
     \storePredefinedDiagram &lt;c e g c' e'>
                             #guitar-tuning
                             #"x;3-1-(;5-2;5-3;5-4;3-1-1);"
     &lt;&lt;
       \context ChordNames {
          \chordmode { 
            c1 c c 
          }
       }
       \context FretBoards {
         &lt;c e g c' e'>1
         \predefinedFretboardsOff
         &lt;c e g c' e'>
         \predefinedFretboardsOn
         &lt;c e g c' e'>
       }
       \context Staff {
         \clef "treble_8"
         &lt;c e g c' e'>1
         &lt;c e g c' e'>
         &lt;c e g c' e'>
       }  
     >>
</pre>
     <p>
 <a href="../90/lily-228d00b7.ly">
  <img align="middle"
    border="0" src="../90/lily-228d00b7.png" alt="[image of music]">
 </a>
</p>

   </blockquote>

   <p>Sometimes the fretboard calculator will be unable to find
an accceptable diagram.  This can often be remedied by
manually assigning a note to a string.  In many cases, only one
note need be manually placed on a string; the rest of
the notes will then be placed appropriately by the <code>FretBoards</code>
context.

   <blockquote>
<pre class="verbatim">     
     &lt;&lt;
       \context ChordNames {
          \chordmode { 
            c1 c 
          }
       }
       \context FretBoards {
         &lt; c g c' e' g'> 1
         &lt; c g\4 c' e' g'> 1
       }
       \context Staff {
         \clef "treble_8"
         &lt; c g c' e' g'> 1
         &lt; c g c' e' g'> 1
       }  
     >>
</pre>
     <p>
 <a href="../f9/lily-f8c3ab9c.ly">
  <img align="middle"
    border="0" src="../f9/lily-f8c3ab9c.png" alt="[image of music]">
 </a>
</p>

   </blockquote>

   <p>Fingerings can be added to FretBoard fret diagrams.

   <blockquote>
<pre class="verbatim">     
     &lt;&lt;
       \context ChordNames {
          \chordmode { 
            c1 d:m          
          }
       }
       \context FretBoards {
         &lt; c-3 e-2 g c'-1 e' > 1
         &lt; d a-2 d'-3 f'-1>
       }
       \context Staff {
         \clef "treble_8"
         &lt; c e g c' e' > 1
         &lt; d a d' f'>
       }  
     >>
</pre>
     <p>
 <a href="../64/lily-cfbe2c18.ly">
  <img align="middle"
    border="0" src="../64/lily-cfbe2c18.png" alt="[image of music]">
 </a>
</p>

   </blockquote>

   <p>The minimum fret to be used in calculating strings and frets for
the FretBoard context can be set with the <code>minimumFret</code>
property.

   <blockquote>
<pre class="verbatim">     
     &lt;&lt;
       \context ChordNames {
          \chordmode {
            d1:m d:m
          }
       }
       \context FretBoards {
         &lt; d a d' f'>
         \set FretBoards.minimumFret = #5
         &lt; d a d' f'>
       }
       \context Staff {
         \clef "treble_8"
         &lt; d a d' f'>
         &lt; d a d' f'>
       }
     >>
</pre>
     <p>
 <a href="../01/lily-8e2f5b54.ly">
  <img align="middle"
    border="0" src="../01/lily-8e2f5b54.png" alt="[image of music]">
 </a>
</p>

   </blockquote>

   <p>The strings and frets for the <code>FretBoards</code> context depend
on the <code>stringTunings</code> property, which has the same meaning
as in the TabStaff context.  See <a href="Custom-tablatures.fr.html#Custom-tablatures">Custom tablatures</a> for
information on the <code>stringTunings</code> property.

   <p>The graphical layout of a fret diagram can be customized according to
user preference through the properties of the <code>fret-diagram-interface</code>. 
Details are found at <a name="index-fret_002ddiagram_002dinterface-2101"></a><a href="../lilypond-internals/fret_002ddiagram_002dinterface.fr.html#fret_002ddiagram_002dinterface">fret-diagram-interface</a>.  For a
<code>FretBoards</code> fret diagram, the interface properties belong to
<code>FretBoards.FretBoard</code>.

<p class="noindent">

<h5 class="subsubheading">Predefined commands</h5>

<p><code>\predefinedFretboardsOff</code>,
<code>\predefinedFretboardsOn</code>.

<p class="noindent">

<h5 class="subsubheading">See also</h5>

   <p class="indent">

   <p>Notation Reference:
<a href="Custom-tablatures.fr.html#Custom-tablatures">Custom tablatures</a>.

   <p>Snippets:
<a href="../../../input/lsr/lilypond-snippets/Fretted-strings.html#Fretted-strings">Fretted strings</a>.

   <p>Internals Reference:
<a name="index-fret_002ddiagram_002dinterface-2102"></a><a href="../lilypond-internals/fret_002ddiagram_002dinterface.fr.html#fret_002ddiagram_002dinterface">fret-diagram-interface</a>.

   <!-- footer_tag --><br><hr>
<div class="node">
<p>
Next:&nbsp;<a rel="next" accesskey="n" href="Right_002dhand-fingerings.fr.html#Right_002dhand-fingerings">Right-hand fingerings</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="Predefined-fret-diagrams.fr.html#Predefined-fret-diagrams">Predefined fret diagrams</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Common-notation-for-fretted-strings.fr.html#Common-notation-for-fretted-strings">Common notation for fretted strings</a>
</div>

<div style="background-color: #e8ffe8; padding: 2; border: #c0ffc0 1px solid;">
<p>
<font size="-1">
Cette page documente LilyPond-2.11.57 (branche de développement).
<br>
<address>
Rapportez toute anomalie en français à <a href="mailto:lilypond-user-fr@gnu.org">lilypond-user-fr@gnu.org</a> ou en anglais à <a href="http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs">http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs</a> </address>
<br>
Vos <a href="http://lilypond.org/web/devel/participating/documentation-adding">suggestions à propos de la documentation</a> sont les bienvenues.
</font>
</p>
</div>

</BODY></html>