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