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