lilypond-user
[Top][All Lists]
Advanced

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

Re: Fret Diagrams in Open Office Writer


From: Klaus Blum
Subject: Re: Fret Diagrams in Open Office Writer
Date: Sat, 25 Jul 2015 10:43:08 -0700 (MST)

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.



reply via email to

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