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