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