Hi Socrates, 

in the OOoLilyPond Window, select the template named "Fret Board" as
mentioned by Michael. 
Now you can simply enter
    d
and you get a standard D major chord.

If you want to want to use your own diagrams, you should use the "Direct to
LilyPond" template and enter:

% --------------------------------------------------------
\include "lilypond-book-preamble.ly"

\paper {
  #(define dump-extents #t)
  ragged-right = ##t
  line-width = 17\cm
}

\layout {
  indent = #0
  \context {
    \Score
    \remove "Bar_number_engraver"
  }
}

\version "2.18.2"
\markup \fret-diagram #"s:3;6-x;5-x;4-o;3-2;2-3;1-2;"
% --------------------------------------------------------

A possible template for your needs could look like that:

% --------------------------------------------------------
\include "lilypond-book-preamble.ly"
#(set-global-staff-size %{OOoLilyPondStaffSize%}10%{OOoLilyPondEnd%})

\paper {
  #(define dump-extents #t)
  ragged-right = ##t
  line-width = %{OOoLilyPondLineWidth%}17\cm%{OOoLilyPondEnd%}
}

\layout {
  indent = #0
  \context {
    \Score
    \remove "Bar_number_engraver"
  }
}

%{OOoLilyPondCode%}
\version "2.18.2"
\markup \fret-diagram #"s:3;6-x;5-x;4-o;3-2;2-3;1-2;"
%{OOoLilyPondEnd%}
% --------------------------------------------------------

You can save this as a new file "Fret-Diagram.ly" and place it in your
templates folder. 
To find the template folder, click the "Config" button in the OOoLilyPond
window and see "Template Path:"

Cheers, 
Klaus

Fret-Diagram.ly
<http://lilypond.1069038.n5.nabble.com/file/n179073/Fret-Diagram.ly>  



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Fret-Diagrams-in-Open-Office-Writer-tp179068p179073.html
Sent from the User mailing list archive at Nabble.com.

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to