]> git.lyx.org Git - lyx.git/blob - lib/examples/lilypond.lyx
Update docs to 2.3.0alpha1 format
[lyx.git] / lib / examples / lilypond.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 541
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/examples/
7 \textclass article
8 \use_default_options true
9 \begin_modules
10 lilypond
11 \end_modules
12 \maintain_unincluded_children false
13 \language english
14 \language_package default
15 \inputencoding auto
16 \fontencoding global
17 \font_roman "lmodern" "default"
18 \font_sans "lmss" "default"
19 \font_typewriter "lmtt" "default"
20 \font_math "auto" "auto"
21 \font_default_family default
22 \use_non_tex_fonts false
23 \font_sc false
24 \font_osf false
25 \font_sf_scale 100 100
26 \font_tt_scale 100 100
27 \use_microtype false
28 \use_dash_ligatures false
29 \graphics default
30 \default_output_format default
31 \output_sync 0
32 \bibtex_command default
33 \index_command default
34 \paperfontsize default
35 \spacing single
36 \use_hyperref true
37 \pdf_title "LilyPond-book and LyX"
38 \pdf_author "The LyX Team"
39 \pdf_bookmarks true
40 \pdf_bookmarksnumbered true
41 \pdf_bookmarksopen true
42 \pdf_bookmarksopenlevel 1
43 \pdf_breaklinks false
44 \pdf_pdfborder false
45 \pdf_colorlinks true
46 \pdf_backref false
47 \pdf_pdfusetitle false
48 \pdf_quoted_options "linkcolor=blue,urlcolor=blue,pdfstartview=XYZ"
49 \papersize default
50 \use_geometry true
51 \use_package amsmath 1
52 \use_package amssymb 1
53 \use_package cancel 0
54 \use_package esint 1
55 \use_package mathdots 1
56 \use_package mathtools 0
57 \use_package mhchem 1
58 \use_package stackrel 0
59 \use_package stmaryrd 0
60 \use_package undertilde 0
61 \cite_engine basic
62 \cite_engine_type default
63 \biblio_style plain
64 \use_bibtopic false
65 \use_indices false
66 \paperorientation portrait
67 \suppress_date true
68 \justification true
69 \use_refstyle 0
70 \index Index
71 \shortcut idx
72 \color #008000
73 \end_index
74 \leftmargin 2cm
75 \topmargin 2cm
76 \rightmargin 2cm
77 \bottommargin 2cm
78 \secnumdepth 3
79 \tocdepth 3
80 \paragraph_separation indent
81 \paragraph_indentation default
82 \is_math_indent 0
83 \quotes_style english
84 \papercolumns 1
85 \papersides 1
86 \paperpagestyle default
87 \tracking_changes false
88 \output_changes false
89 \html_math_output 0
90 \html_css_as_file 0
91 \html_be_strict true
92 \end_header
93
94 \begin_body
95
96 \begin_layout Title
97 LilyPond-book and \SpecialChar LyX
98
99 \end_layout
100
101 \begin_layout Author
102 The \SpecialChar LyX
103  Team
104 \end_layout
105
106 \begin_layout Date
107 Version 2.1.x
108 \end_layout
109
110 \begin_layout Abstract
111 This document explains and demonstrates the inclusion of musical snippets
112  in a \SpecialChar LyX
113  document, using the LilyPond syntax for music notation and the LilyPond-b
114 ook utility for processing.
115 \end_layout
116
117 \begin_layout Section
118 Introduction
119 \end_layout
120
121 \begin_layout Standard
122 LilyPond is an open-source project that renders possible the creation of
123  beautiful computer-generated musical scores.
124  The project consists of a text-based music notation language, and a program
125  to process this notation into musical scores.
126 \end_layout
127
128 \begin_layout Standard
129 While LilyPond itself supports the display of title, author information,
130  footnotes, endnotes, etc., its primary focus is on music typesetting.
131  For text typesetting, other programs are generally better suited.
132  LilyPond-book is a utility provided by the LilyPond project that helps
133  incorporate musical scores using the LilyPond notation into \SpecialChar LaTeX
134  documents,
135  among other formats.
136 \end_layout
137
138 \begin_layout Standard
139 This document describes the use of the LilyPond music notation within \SpecialChar LyX
140  documents
141  that use a \SpecialChar LaTeX
142 -based layout, thus combining the beauty and quality of the
143  typesetting achieved by both \SpecialChar LaTeX
144  and LilyPond.
145  While a basic understanding of the LilyPond syntax for music notation is
146  in order, knowledge of \SpecialChar LaTeX
147  is not necessary when using \SpecialChar LyX
148 .
149 \end_layout
150
151 \begin_layout Standard
152 Section 
153 \begin_inset CommandInset ref
154 LatexCommand ref
155 reference "sec:Using-LilyPond-code"
156
157 \end_inset
158
159  explains the requirements, usage instructions, and shortcomings of LilyPond
160  music notation within \SpecialChar LyX
161 .
162  Section 
163 \begin_inset CommandInset ref
164 LatexCommand ref
165 reference "sec:LilyPond-examples"
166
167 \end_inset
168
169  demonstrates the beauty and quality of the typesetting with a few examples.
170 \end_layout
171
172 \begin_layout Section
173 Using LilyPond code within \SpecialChar LyX
174
175 \begin_inset CommandInset label
176 LatexCommand label
177 name "sec:Using-LilyPond-code"
178
179 \end_inset
180
181
182 \end_layout
183
184 \begin_layout Standard
185 Support for LilyPond music notation (LilyPond code) within \SpecialChar LyX
186  is enabled by
187  adding the LilyPond module to your document.
188  This is done from the menu 
189 \family sans
190 Document\SpecialChar menuseparator
191 Settings
192 \family default
193 , then selecting LilyPond in the list of modules.
194  You can use any \SpecialChar LaTeX
195 -based \SpecialChar LyX
196  layout and use the regular preview and export mechanism
197 ; \SpecialChar LyX
198  will take care of processing the mixed \SpecialChar LaTeX
199 /LilyPond code through LilyPond-book
200  for you.
201  LilyPond-book can also handle DocBook and HTML documents, but the integration
202  of these document types with LilyPond-book and \SpecialChar LyX
203  is missing at the moment.
204 \end_layout
205
206 \begin_layout Subsection
207 Requirements
208 \end_layout
209
210 \begin_layout Standard
211 LilyPond-book version 2.13 or newer.
212 \begin_inset Foot
213 status collapsed
214
215 \begin_layout Plain Layout
216 LilyPond-book supports \SpecialChar LaTeX
217  output since version 2.1.
218  However, some features used by \SpecialChar LyX
219  are available only in recent versions:
220  PDF\SpecialChar LaTeX
221  support (version 2.9), the 
222 \family typewriter
223 --lily-output-dir
224 \family default
225  flag (version 2.11) and especially the 
226 \family typewriter
227 --safe
228 \family default
229  flag (version 2.13).
230 \end_layout
231
232 \end_inset
233
234
235 \end_layout
236
237 \begin_layout Subsection
238 Integration
239 \end_layout
240
241 \begin_layout Standard
242 The module provides a LilyPond inset which you insert from the menu 
243 \family sans
244 Insert\SpecialChar menuseparator
245 Custom
246 \begin_inset space ~
247 \end_inset
248
249 Insets
250 \family default
251 .
252  This inset is for typing the LilyPond code which will be typeset into your
253  musical notes.
254  First, let us try a simple scale:
255 \end_layout
256
257 \begin_layout Standard
258 \begin_inset Flex LilyPond
259 status open
260
261 \begin_layout Plain Layout
262
263 \begin_inset Argument 1
264 status open
265
266 \begin_layout Plain Layout
267 staffsize=28
268 \end_layout
269
270 \end_inset
271
272
273 \end_layout
274
275 \begin_layout Plain Layout
276
277
278 \backslash
279 relative c'' {
280 \end_layout
281
282 \begin_layout Plain Layout
283
284   g a b c
285 \end_layout
286
287 \begin_layout Plain Layout
288
289 }
290 \end_layout
291
292 \end_inset
293
294
295 \end_layout
296
297 \begin_layout Standard
298 \noindent
299 The previous \SpecialChar LyX
300  inset produces the following \SpecialChar LaTeX
301 -lookalike code:
302 \end_layout
303
304 \begin_layout LyX-Code
305
306 \backslash
307 begin{lilypond}[staffsize=28]
308 \end_layout
309
310 \begin_layout LyX-Code
311
312 \end_layout
313
314 \begin_layout LyX-Code
315
316 \backslash
317 relative c'' {
318 \end_layout
319
320 \begin_layout LyX-Code
321   g a b c
322 \end_layout
323
324 \begin_layout LyX-Code
325 }
326 \end_layout
327
328 \begin_layout LyX-Code
329
330 \backslash
331 end{lilypond}
332 \end_layout
333
334 \begin_layout Standard
335 What appear first inside square brackets are options to pass to LilyPond-book.
336  This is inserted in \SpecialChar LyX
337  from the 
338 \family sans
339 Insert
340 \family default
341  menu, in the same way that the LilyPond inset itself is inserted.
342  Here, we set the dimension of the staff to 28
343 \begin_inset space \thinspace{}
344 \end_inset
345
346 pt.
347  Other options can be added by separating them by a comma, for example:
348  
349 \family typewriter
350 [staffsize=28,verbatim]
351 \family default
352 .
353  A list of music fragment options is available in the LilyPond documentation.
354  This whole block can be omitted when the default settings are desired.
355 \end_layout
356
357 \begin_layout Standard
358 What follows after the options block is the textual representation in LilyPond
359  syntax of a musical fragment.
360  This code is not, in fact, processed by \SpecialChar LaTeX
361 , but is preprocessed by LilyPond-book,
362  which creates the graphics files and includes them in the \SpecialChar LaTeX
363  document by
364  replacing the above with a 
365 \family typewriter
366
367 \backslash
368 includegraphics{\SpecialChar ldots
369 }
370 \family default
371  command.
372 \end_layout
373
374 \begin_layout Standard
375 Thus, the conversion process is as follow: 
376 \family sans
377 \SpecialChar LyX
378 \SpecialChar menuseparator
379 LilyPond-book\SpecialChar menuseparator
380 \SpecialChar LaTeX
381
382 \family default
383 .
384  \SpecialChar LyX
385  creates a .lytex file, LilyPond-book creates a .tex files and the accompanying
386  image files, and \SpecialChar LaTeX
387  creates the final document.
388  Every step of the tool chain obeys your spacing, so whether you put the
389  musical extract inline, or in its own paragraph, centered, left-aligned,
390  etc., what you see in the \SpecialChar LyX
391  window should be respected in the final format.
392  An example of inline use may be to display a chord name, such as
393 \begin_inset Flex LilyPond
394 status open
395
396 \begin_layout Plain Layout
397
398 \begin_inset Argument 1
399 status open
400
401 \begin_layout Plain Layout
402 staffsize=12
403 \end_layout
404
405 \end_inset
406
407  
408 \backslash
409 markup { 
410 \backslash
411 concat {B 
412 \backslash
413 super 
414 \backslash
415 flat } }
416 \end_layout
417
418 \end_inset
419
420 , or perhaps a very short snippet.
421 \end_layout
422
423 \begin_layout Subsection
424 Previews
425 \end_layout
426
427 \begin_layout Standard
428 It is possible to have a direct feedback of what the music notation looks
429  like from within \SpecialChar LyX
430 .
431  To do this, wrap a LilyPond inset inside a Preview inset, which you find
432  from the menu 
433 \family sans
434 Insert\SpecialChar menuseparator
435 Preview
436 \family default
437 .
438  This only affects the display within \SpecialChar LyX
439 , not the output:
440 \end_layout
441
442 \begin_layout Standard
443 \begin_inset Preview
444
445 \begin_layout Standard
446 \begin_inset Flex LilyPond
447 status collapsed
448
449 \begin_layout Plain Layout
450
451
452 \backslash
453 relative c'' {
454 \end_layout
455
456 \begin_layout Plain Layout
457
458   ais a g ges
459 \end_layout
460
461 \begin_layout Plain Layout
462
463 }
464 \end_layout
465
466 \end_inset
467
468
469 \end_layout
470
471 \end_inset
472
473
474 \end_layout
475
476 \begin_layout Standard
477 Unfortunately, you might find that the preview isn't exactly instantaneous.
478  You need to move the cursor out of the Preview inset to start compilation,
479  and processing time can take a few seconds.
480  Nevertheless, the direct feedback is often worthwhile during editing, and
481  renders the navigation through the document much easier.
482 \end_layout
483
484 \begin_layout Subsection
485 Gotchas
486 \end_layout
487
488 \begin_layout Standard
489 A few gotchas that have been experienced with the integration of LilyPond-book
490  and \SpecialChar LyX
491  are reported here.
492 \end_layout
493
494 \begin_layout Subsubsection
495 Child documents
496 \end_layout
497
498 \begin_layout Standard
499 A \SpecialChar LyX
500  document using the LilyPond module cannot have child documents using
501  the 
502 \begin_inset Quotes eld
503 \end_inset
504
505 Input
506 \begin_inset Quotes erd
507 \end_inset
508
509  method.
510  If you select 
511 \begin_inset Quotes eld
512 \end_inset
513
514 Input
515 \begin_inset Quotes erd
516 \end_inset
517
518  as the 
519 \begin_inset Quotes eld
520 \end_inset
521
522 Include Type
523 \begin_inset Quotes erd
524 \end_inset
525
526  under 
527 \family sans
528 Insert\SpecialChar menuseparator
529 File\SpecialChar menuseparator
530 Child
531 \begin_inset space ~
532 \end_inset
533
534 Document
535 \family default
536 , you will get an error when producing output.
537  This is due to the way LilyPond-book automatically processes these input
538  files recursively.
539  Since there is currently no command-line option to turn off this behavior
540  of LilyPond-book, it is suggested to use the 
541 \begin_inset Quotes eld
542 \end_inset
543
544 Include
545 \begin_inset Quotes erd
546 \end_inset
547
548  method instead.
549 \end_layout
550
551 \begin_layout Standard
552 Note that it is possible to insert child documents which make use of the
553  LilyPond module, using either the 
554 \begin_inset Quotes eld
555 \end_inset
556
557 Input
558 \begin_inset Quotes erd
559 \end_inset
560
561  or 
562 \begin_inset Quotes eld
563 \end_inset
564
565 Include
566 \begin_inset Quotes erd
567 \end_inset
568
569  method, in a master document which does not make use of the LilyPond module.
570  For this to work you might have to add the line
571 \end_layout
572
573 \begin_layout LyX-Code
574
575 \backslash
576 usepackage{graphicx}
577 \end_layout
578
579 \begin_layout Standard
580 to your master document's preamble under 
581 \family sans
582 Document\SpecialChar menuseparator
583 Settings
584 \family default
585 .
586 \end_layout
587
588 \begin_layout Subsubsection
589 Surrounding braces
590 \end_layout
591
592 \begin_layout Standard
593 LilyPond-book searches for a 
594 \family typewriter
595
596 \backslash
597 score
598 \family default
599  or 
600 \family typewriter
601
602 \backslash
603 relative
604 \family default
605  command when it decides if the code is only a fragment.
606  It is possible to include no LilyPond command at all, but in that case
607  {surrounding braces} are required.
608  Thus, in the following code,
609 \end_layout
610
611 \begin_layout LyX-Code
612
613 \backslash
614 begin{lilypond}
615 \end_layout
616
617 \begin_layout LyX-Code
618   ais' f'' g' e'' % no 
619 \backslash
620 score given
621 \end_layout
622
623 \begin_layout LyX-Code
624
625 \backslash
626 end{lilypond}
627 \end_layout
628
629 \begin_layout Standard
630 LilyPond-book gets confused:
631 \end_layout
632
633 \begin_layout LyX-Code
634 error: syntax error, unexpected NOTENAME_PITCH
635 \end_layout
636
637 \begin_layout LyX-Code
638 ais' f'' g' e'' % no 
639 \backslash
640 score given
641 \end_layout
642
643 \begin_layout Standard
644 With surrounding braces, all is well:
645 \end_layout
646
647 \begin_layout Standard
648 \begin_inset Preview
649
650 \begin_layout Standard
651 \begin_inset Flex LilyPond
652 status collapsed
653
654 \begin_layout Plain Layout
655
656 {ais' f'' g' e''} % no 
657 \backslash
658 score given
659 \end_layout
660
661 \end_inset
662
663
664 \end_layout
665
666 \end_inset
667
668
669 \end_layout
670
671 \begin_layout Standard
672 Writing the notes directly within braces without using any LilyPond command
673  is convenient when writing short snippets.
674  Advanced users will probably want to enter their musical content using
675  LilyPond variables and commands, which is of course supported.
676 \end_layout
677
678 \begin_layout Subsubsection
679 Fret diagrams
680 \end_layout
681
682 \begin_layout Standard
683 Another gotcha is with subsequent LilyPond snippets with 
684 \family typewriter
685
686 \backslash
687 fret-diagram
688 \family default
689  markup commands:
690 \end_layout
691
692 \begin_layout LyX-Code
693
694 \backslash
695 begin{lilypond}
696 \end_layout
697
698 \begin_layout LyX-Code
699   
700 \backslash
701 markup{ 
702 \backslash
703 fret-diagram-terse #"x;3;2;o;1;o;" }
704 \end_layout
705
706 \begin_layout LyX-Code
707
708 \backslash
709 end{lilypond}
710 \end_layout
711
712 \begin_layout LyX-Code
713
714 \end_layout
715
716 \begin_layout LyX-Code
717
718 \backslash
719 begin{lilypond}
720 \end_layout
721
722 \begin_layout LyX-Code
723   
724 \backslash
725 markup{ 
726 \backslash
727 fret-diagram-terse #"x;x;o;2;3;2;" }
728 \end_layout
729
730 \begin_layout LyX-Code
731
732 \backslash
733 end{lilypond}
734 \end_layout
735
736 \begin_layout Standard
737 For some reason LilyPond-book version 2.13 barks on this when run in safe
738  mode (which you always should use, unless you know what you are doing).
739  This has been corrected as of version 2.15 (was LilyPond issue #1900).
740 \end_layout
741
742 \begin_layout Subsubsection
743 The 
744 \family typewriter
745
746 \backslash
747 lilypondfile
748 \family default
749  command
750 \end_layout
751
752 \begin_layout Standard
753 LilyPond-book supports including LilyPond code that resides in external
754  files with the 
755 \family typewriter
756
757 \backslash
758 lilypondfile
759 \family default
760  command.
761  With this command, the LilyPond code is processed as if it was typed inside
762  the document and the output score follows the typesetting determined by
763  \SpecialChar LaTeX
764  with respect to line width, page breaks, and so on.
765  This is in contrast to the long-standing \SpecialChar LyX
766  feature to include LilyPond scores
767  as external material, which calls LilyPond on the external file to produce
768  a rigid figure, and includes this figure in the document, leaving the typesetti
769 ng decisions to LilyPond.
770  Unfortunately, support for the 
771 \family typewriter
772
773 \backslash
774 lilypondfile
775 \family default
776  command in \SpecialChar LyX
777  is not implemented yet, but it is possible to use it inside
778  a \SpecialChar TeX
779 -Code block, provided that one writes the complete, absolute path to
780  the desired file.
781 \end_layout
782
783 \begin_layout Section
784 LilyPond examples
785 \begin_inset CommandInset label
786 LatexCommand label
787 name "sec:LilyPond-examples"
788
789 \end_inset
790
791
792 \end_layout
793
794 \begin_layout Standard
795 Example 
796 \begin_inset CommandInset ref
797 LatexCommand ref
798 reference "subsec:Editorial-headword"
799
800 \end_inset
801
802  shows a complex score using many LilyPond constructs; some scheme code
803  has been removed from the original source of this snippet, to be able to
804  run in safe mode.
805  Example 
806 \begin_inset CommandInset ref
807 LatexCommand ref
808 reference "subsec:Tablatures-template"
809
810 \end_inset
811
812  shows another LilyPond output which should be interesting to guitarists.
813 \end_layout
814
815 \begin_layout Subsection
816 Editorial headword
817 \begin_inset CommandInset label
818 LatexCommand label
819 name "subsec:Editorial-headword"
820
821 \end_inset
822
823
824 \end_layout
825
826 \begin_layout Standard
827 NR 1.7 Editorial annotations Beethoven, Op.
828  31, No.
829  3 Piano sonata 18, Movt II, Scherzo Measures 9–14.
830 \end_layout
831
832 \begin_layout Standard
833 \noindent
834 \align center
835 \begin_inset Preview
836
837 \begin_layout Standard
838 \begin_inset Flex LilyPond
839 status collapsed
840
841 \begin_layout Plain Layout
842
843
844 \backslash
845 new PianoStaff <<
846 \end_layout
847
848 \begin_layout Plain Layout
849
850   
851 \end_layout
852
853 \begin_layout Plain Layout
854
855   % RH Staff
856 \end_layout
857
858 \begin_layout Plain Layout
859
860   
861 \backslash
862 new Staff {
863 \end_layout
864
865 \begin_layout Plain Layout
866
867     
868 \backslash
869 clef treble
870 \end_layout
871
872 \begin_layout Plain Layout
873
874     
875 \backslash
876 key aes 
877 \backslash
878 major
879 \end_layout
880
881 \begin_layout Plain Layout
882
883     
884 \backslash
885 time 2/4
886 \end_layout
887
888 \begin_layout Plain Layout
889
890     %
891 \backslash
892 set Staff.fingeringOrientations = #'(up)
893 \end_layout
894
895 \begin_layout Plain Layout
896
897     %
898 \backslash
899 set Score.currentBarNumber = #9
900 \end_layout
901
902 \begin_layout Plain Layout
903
904     
905 \backslash
906 partial 8
907 \end_layout
908
909 \begin_layout Plain Layout
910
911     <aes''-4 c''>8
912 \backslash
913 staccato
914 \end_layout
915
916 \begin_layout Plain Layout
917
918     |
919 \end_layout
920
921 \begin_layout Plain Layout
922
923     %
924 \backslash
925 set doubleSlurs = ##t
926 \end_layout
927
928 \begin_layout Plain Layout
929
930     <bes''-5 des''-2>4(
931 \end_layout
932
933 \begin_layout Plain Layout
934
935     <aes''-4 c''>8
936 \backslash
937 staccato)
938 \end_layout
939
940 \begin_layout Plain Layout
941
942     
943 \backslash
944 noBeam
945 \end_layout
946
947 \begin_layout Plain Layout
948
949     c''8-5
950 \backslash
951 staccato
952 \backslash
953 pp
954 \end_layout
955
956 \begin_layout Plain Layout
957
958     |
959 \end_layout
960
961 \begin_layout Plain Layout
962
963     
964 \backslash
965 unset doubleSlurs
966 \end_layout
967
968 \begin_layout Plain Layout
969
970     bes'8..(
971 \end_layout
972
973 \begin_layout Plain Layout
974
975     aes'32
976 \end_layout
977
978 \begin_layout Plain Layout
979
980     g'8)
981 \backslash
982 staccato
983 \end_layout
984
985 \begin_layout Plain Layout
986
987     f'8
988 \backslash
989 staccato
990 \end_layout
991
992 \begin_layout Plain Layout
993
994     |
995 \end_layout
996
997 \begin_layout Plain Layout
998
999     e'4-2
1000 \end_layout
1001
1002 \begin_layout Plain Layout
1003
1004     r8
1005 \end_layout
1006
1007 \begin_layout Plain Layout
1008
1009     %
1010 \backslash
1011 once 
1012 \backslash
1013 override Script #'script-priority = #-100
1014 \end_layout
1015
1016 \begin_layout Plain Layout
1017
1018     
1019 \backslash
1020 afterGrace
1021 \end_layout
1022
1023 \begin_layout Plain Layout
1024
1025     f'8(
1026 \backslash
1027 trill^
1028 \backslash
1029 markup { 
1030 \backslash
1031 finger "3-2" }
1032 \end_layout
1033
1034 \begin_layout Plain Layout
1035
1036     { e'16[ f'16] }
1037 \end_layout
1038
1039 \begin_layout Plain Layout
1040
1041     |
1042 \end_layout
1043
1044 \begin_layout Plain Layout
1045
1046     g'8..-3
1047 \end_layout
1048
1049 \begin_layout Plain Layout
1050
1051     f'32
1052 \end_layout
1053
1054 \begin_layout Plain Layout
1055
1056     e'8-1)
1057 \backslash
1058 staccato
1059 \end_layout
1060
1061 \begin_layout Plain Layout
1062
1063     d'8-2
1064 \backslash
1065 staccato
1066 \end_layout
1067
1068 \begin_layout Plain Layout
1069
1070     |
1071 \end_layout
1072
1073 \begin_layout Plain Layout
1074
1075     c'4
1076 \end_layout
1077
1078 \begin_layout Plain Layout
1079
1080     r4
1081 \end_layout
1082
1083 \begin_layout Plain Layout
1084
1085   }
1086 \end_layout
1087
1088 \begin_layout Plain Layout
1089
1090   
1091 \end_layout
1092
1093 \begin_layout Plain Layout
1094
1095   % LH Staff
1096 \end_layout
1097
1098 \begin_layout Plain Layout
1099
1100   
1101 \backslash
1102 new Staff {
1103 \end_layout
1104
1105 \begin_layout Plain Layout
1106
1107     
1108 \backslash
1109 key aes 
1110 \backslash
1111 major
1112 \end_layout
1113
1114 \begin_layout Plain Layout
1115
1116     
1117 \backslash
1118 clef treble
1119 \end_layout
1120
1121 \begin_layout Plain Layout
1122
1123     %
1124 \backslash
1125 override Fingering #'direction = #down
1126 \end_layout
1127
1128 \begin_layout Plain Layout
1129
1130     %
1131 \backslash
1132 set Staff.fingeringOrientations = #'(down)
1133 \end_layout
1134
1135 \begin_layout Plain Layout
1136
1137     
1138 \backslash
1139 partial 8
1140 \end_layout
1141
1142 \begin_layout Plain Layout
1143
1144     <aes' aes>8
1145 \backslash
1146 staccato
1147 \end_layout
1148
1149 \begin_layout Plain Layout
1150
1151     %
1152 \backslash
1153 set doubleSlurs = ##t
1154 \end_layout
1155
1156 \begin_layout Plain Layout
1157
1158     <g'-2 ees'-3>4(
1159 \end_layout
1160
1161 \begin_layout Plain Layout
1162
1163     <aes' aes>8)
1164 \backslash
1165 staccato
1166 \end_layout
1167
1168 \begin_layout Plain Layout
1169
1170     
1171 \backslash
1172 noBeam
1173 \end_layout
1174
1175 \begin_layout Plain Layout
1176
1177     
1178 \backslash
1179 clef bass
1180 \end_layout
1181
1182 \begin_layout Plain Layout
1183
1184     c'8-1
1185 \backslash
1186 staccato
1187 \end_layout
1188
1189 \begin_layout Plain Layout
1190
1191     |
1192 \end_layout
1193
1194 \begin_layout Plain Layout
1195
1196     %
1197 \backslash
1198 set doubleSlurs = ##f
1199 \end_layout
1200
1201 \begin_layout Plain Layout
1202
1203     bes8..(
1204 \end_layout
1205
1206 \begin_layout Plain Layout
1207
1208     aes32
1209 \end_layout
1210
1211 \begin_layout Plain Layout
1212
1213     g8-1)
1214 \backslash
1215 staccato
1216 \end_layout
1217
1218 \begin_layout Plain Layout
1219
1220     f8
1221 \backslash
1222 staccato
1223 \end_layout
1224
1225 \begin_layout Plain Layout
1226
1227     |
1228 \end_layout
1229
1230 \begin_layout Plain Layout
1231
1232     e4
1233 \end_layout
1234
1235 \begin_layout Plain Layout
1236
1237     r8
1238 \end_layout
1239
1240 \begin_layout Plain Layout
1241
1242     
1243 \backslash
1244 afterGrace
1245 \end_layout
1246
1247 \begin_layout Plain Layout
1248
1249     f8(
1250 \backslash
1251 trill_
1252 \backslash
1253 markup { 
1254 \backslash
1255 finger "2-1" }
1256 \end_layout
1257
1258 \begin_layout Plain Layout
1259
1260     { e16[ f16] }
1261 \end_layout
1262
1263 \begin_layout Plain Layout
1264
1265     |
1266 \end_layout
1267
1268 \begin_layout Plain Layout
1269
1270     g8..-1
1271 \end_layout
1272
1273 \begin_layout Plain Layout
1274
1275     f32
1276 \end_layout
1277
1278 \begin_layout Plain Layout
1279
1280     e8)
1281 \backslash
1282 staccato
1283 \end_layout
1284
1285 \begin_layout Plain Layout
1286
1287     d8
1288 \backslash
1289 staccato
1290 \end_layout
1291
1292 \begin_layout Plain Layout
1293
1294     |
1295 \end_layout
1296
1297 \begin_layout Plain Layout
1298
1299     c4
1300 \end_layout
1301
1302 \begin_layout Plain Layout
1303
1304     r4
1305 \end_layout
1306
1307 \begin_layout Plain Layout
1308
1309   }
1310 \end_layout
1311
1312 \begin_layout Plain Layout
1313
1314 >>
1315 \end_layout
1316
1317 \begin_layout Plain Layout
1318
1319 \end_layout
1320
1321 \end_inset
1322
1323
1324 \end_layout
1325
1326 \end_inset
1327
1328
1329 \end_layout
1330
1331 \begin_layout Standard
1332 \noindent
1333 [from 
1334 \begin_inset Flex URL
1335 status collapsed
1336
1337 \begin_layout Plain Layout
1338
1339 http://lsr.di.unimi.it/LSR/Item?id=627
1340 \end_layout
1341
1342 \end_inset
1343
1344 ; scheme code removed, centering applied through the paragraph settings]
1345 \end_layout
1346
1347 \begin_layout Subsection
1348 Tablatures template
1349 \begin_inset CommandInset label
1350 LatexCommand label
1351 name "subsec:Tablatures-template"
1352
1353 \end_inset
1354
1355
1356 \end_layout
1357
1358 \begin_layout Standard
1359 \begin_inset Preview
1360
1361 \begin_layout Standard
1362 \begin_inset Flex LilyPond
1363 status collapsed
1364
1365 \begin_layout Plain Layout
1366
1367 upper=  
1368 \backslash
1369 relative c' {
1370 \end_layout
1371
1372 \begin_layout Plain Layout
1373
1374   c4.
1375   g4  g  c
1376 \end_layout
1377
1378 \begin_layout Plain Layout
1379
1380 }
1381 \end_layout
1382
1383 \begin_layout Plain Layout
1384
1385 lower=  
1386 \backslash
1387 relative c {
1388 \end_layout
1389
1390 \begin_layout Plain Layout
1391
1392   c4  e  g,  e'
1393 \end_layout
1394
1395 \begin_layout Plain Layout
1396
1397 }
1398 \end_layout
1399
1400 \begin_layout Plain Layout
1401
1402
1403 \backslash
1404 score {
1405 \end_layout
1406
1407 \begin_layout Plain Layout
1408
1409   
1410 \backslash
1411 new StaffGroup <<
1412 \end_layout
1413
1414 \begin_layout Plain Layout
1415
1416     
1417 \backslash
1418 new Staff = "guitar" <<
1419 \end_layout
1420
1421 \begin_layout Plain Layout
1422
1423       
1424 \backslash
1425 context Voice = "upper guitar" { 
1426 \backslash
1427 clef "G_8" 
1428 \backslash
1429 voiceOne  
1430 \backslash
1431 upper }
1432 \end_layout
1433
1434 \begin_layout Plain Layout
1435
1436       
1437 \backslash
1438 context Voice = "lower guitar" { 
1439 \backslash
1440 clef "G_8" 
1441 \backslash
1442 voiceTwo  
1443 \backslash
1444 lower }
1445 \end_layout
1446
1447 \begin_layout Plain Layout
1448
1449     >>
1450 \end_layout
1451
1452 \begin_layout Plain Layout
1453
1454     
1455 \backslash
1456 new TabStaff = "tab" <<
1457 \end_layout
1458
1459 \begin_layout Plain Layout
1460
1461       
1462 \backslash
1463 context TabVoice = "upper tab" { 
1464 \backslash
1465 clef "tab" 
1466 \backslash
1467 voiceOne 
1468 \backslash
1469 upper }
1470 \end_layout
1471
1472 \begin_layout Plain Layout
1473
1474       
1475 \backslash
1476 context TabVoice = "lower tab" { 
1477 \backslash
1478 clef "tab" 
1479 \backslash
1480 voiceTwo 
1481 \backslash
1482 lower }
1483 \end_layout
1484
1485 \begin_layout Plain Layout
1486
1487     >>
1488 \end_layout
1489
1490 \begin_layout Plain Layout
1491
1492   >>
1493 \end_layout
1494
1495 \begin_layout Plain Layout
1496
1497 }
1498 \end_layout
1499
1500 \end_inset
1501
1502
1503 \end_layout
1504
1505 \end_inset
1506
1507
1508 \end_layout
1509
1510 \begin_layout Standard
1511 \noindent
1512 [from 
1513 \begin_inset Flex URL
1514 status collapsed
1515
1516 \begin_layout Plain Layout
1517
1518 http://lsr.di.unimi.it/LSR/Item?id=634
1519 \end_layout
1520
1521 \end_inset
1522
1523 ]
1524 \end_layout
1525
1526 \end_body
1527 \end_document