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