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