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