PlayTab/Output/PostScript/Preamble.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 92.3% 12 / 13 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
preamble
1.0
CRAP 1.0
« PlayTab/Output/Dump.pm ↑ Summary PlayTab/Version.pm »
1 #! perl
2  
3 # Author : Johan Vromans
4 # Created On : Tue Apr 19 16:25:30 2011
5 # Last Modified By: Johan Vromans
6 # Last Modified On: Sat Apr 19 21:49:47 2014
7 # Update Count : 49
8 # Status : Unknown, Use with caution!
9  
10 package App::Music::PlayTab::Output::PostScript::Preamble;
11  
12 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 3 our $VERSION = "1.003";
16  
17 2 ▶sub preamble {
Subroutine preamble: called CC=1 SCAR=0.0
Pod undocumented
18 2 <<'EOD';
19 %!PS-Adobe-2.0
20 %%Pages: (atend)
21 %%DocumentFonts: Helvetica
22 %%EndComments
23 %%BeginProcSet: Symbols 0
24 /tabdict 50 dict def
25 tabdict begin
26 /m { moveto } bind def
27 /glyphwidth { % name *glyphwidth* wx wy
28 gsave nulldevice 0 0 moveto glyphshow currentpoint grestore
29 } bind def
30 /rshow {
31 dup stringwidth pop 2 div neg 0 rmoveto show
32 } bind def
33 /dim {
34 currentpoint
35 /MSyms findfont 7 scalefont setfont
36 1 8 rmoveto /Dim glyphshow moveto } def
37 /hdim {
38 currentpoint
39 /MSyms findfont 7 scalefont setfont
40 1 8 rmoveto /HDim glyphshow moveto } def
41 /minus {
42 currentpoint
43 /Symbol findfont 12 scalefont setfont
44 1 8 rmoveto (-) show moveto } def
45 /plus {
46 currentpoint
47 /Symbol findfont 12 scalefont setfont
48 1 8 rmoveto (+) show moveto } def
49 /delta {
50 /MSyms findfont 6 scalefont setfont
51 1 -3 rmoveto /Major glyphshow -1 3 rmoveto } def
52 /sharp {
53 /MSyms findfont sfsz scalefont setfont
54 sfsz 5 gt { 2 } { 1 } ifelse 2 rmoveto
55 /Sharp glyphshow
56 sfsz 5 gt { 2 } { 1 } ifelse neg -2 rmoveto } def
57 /flat {
58 /MSyms findfont sfsz scalefont setfont
59 sfsz 5 gt { 2 } { 1 } ifelse 2 rmoveto
60 /Flat glyphshow
61 %sfsz 5 gt { 2 } { 1 } ifelse neg -2 rmoveto
62 1 -2 rmoveto } def
63 /natural {
64 /MSyms findfont 20 scalefont setfont
65 2 0 rmoveto /Natural glyphshow -1 0 rmoveto } def
66 /addn {
67 /Helvetica findfont 12 scalefont setfont
68 0 -3 rmoveto show 0 3 rmoveto } def
69 /adds {
70 /MSyms findfont 5 scalefont setfont
71 1 -1 rmoveto /Sharp glyphshow 1 1 rmoveto
72 /Helvetica findfont 12 scalefont setfont
73 0 -3 rmoveto show 0 3 rmoveto } def
74 /addf {
75 /MSyms findfont 5 scalefont setfont
76 1 -1 rmoveto /Flat glyphshow 1 1 rmoveto
77 /Helvetica findfont 12 scalefont setfont
78 0 -3 rmoveto show 0 3 rmoveto } def
79 /root {
80 /Helvetica findfont 16 scalefont setfont
81 show
82 /sfsz 6 def
83 } def
84 /hroot {
85 /Helvetica findfont 12 scalefont setfont
86 show
87 /sfsz 4 def
88 } def
89 /slash {
90 /Helvetica findfont 16 scalefont setfont
91 2 -4 rmoveto (/) show } def
92 /bslash {
93 /Helvetica findfont 16 scalefont setfont
94 0 4 rmoveto (\\) show 0 3 rmoveto } def
95 /susp {
96 /Helvetica findfont 12 scalefont setfont
97 0 -3 rmoveto (sus) show show 0 3 rmoveto } def
98 /bar {
99 1 setlinewidth
100 currentpoint 0 -3 rmoveto 0 16 rlineto stroke moveto } def
101 /barn {
102 gsave /Helvetica findfont 8 scalefont setfont
103 % 0 14 rmoveto dup stringwidth pop 2 div neg 0 rmoveto
104 -2 8 rmoveto dup stringwidth pop neg 0 rmoveto
105 show grestore
106 bar
107 } def
108 /same1 {
109 /MSyms findfont 4 scalefont setfont
110 /Same2 dup glyphwidth pop 2 div neg 0 rmoveto glyphshow } def
111 /rest {
112 /Helvetica findfont 16 scalefont setfont
113 /endash glyphshow } def
114 /TF {
115 /Helvetica findfont 16 scalefont setfont } def
116 /SF {
117 /Helvetica findfont 12 scalefont setfont } def
118 end
119 %%EndProcSet
120 %%BeginProcSet: Grid 0 0
121 % Routines for the drawing of chords.
122 /griddict 10 dict def
123 griddict begin
124 /gridscale $std_gridscale def
125 /gridwidth gridscale 5 mul def
126 /gridheight gridscale 4 mul def
127 /half-incr gridscale 2 div def
128 /dot-size gridscale 0.35 mul def
129 /displ-font /Times-Roman findfont gridscale 1.25 mul scalefont def
130  
131 /grid { % -- grid --
132 gsave currentpoint
133 6
134 { 0 gridheight rlineto gridscale gridscale gridwidth sub rmoveto }
135 repeat
136 moveto
137 5
138 { gridwidth 0 rlineto 0 gridwidth sub gridscale rmoveto }
139 repeat
140 stroke grestore
141 } def
142  
143 /dot { % string fret dot --
144 gsave
145 exch 6 exch sub gridscale mul % str fret -> fret y
146 exch dup 5 exch abs sub gridscale mul half-incr sub % fret y -> y fret x
147 exch 3 1 roll rmoveto
148  
149 % It is tempting to use the more enhanced format (that places o
150 % and x above the grid) but there is a chord caption.
151 % fret {...} --
152 -1 ne
153 { currentpoint dot-size 0 360 arc fill }
154 { gsave
155 gridwidth 20 div
156 dup neg dup rmoveto
157 dup dup rlineto
158 dup dup rlineto
159 dup neg dup rmoveto
160 dup dup neg exch rmoveto
161 dup dup neg rlineto
162 dup neg rlineto
163 gridwidth 50 div setlinewidth stroke
164 grestore
165 } ifelse
166 grestore
167 } def
168 end
169 tabdict begin
170 /dots { % e a d g b e offset dots --
171 griddict begin
172 gsave
173 1 setlinewidth
174 0 setgray
175  
176 grid
177  
178 % Chord offset, if greater than 1.
179 % offset {...} --
180 dup () ne
181 { gsave
182 half-incr neg gridheight gridscale sub rmoveto
183 displ-font setfont
184 dup stringwidth pop neg half-incr rmoveto show grestore
185 }
186 { pop }
187 ifelse
188  
189 1 1 6
190 { % fret string {...} --
191 exch dup
192 0 ne
193 { dot }
194 { pop pop }
195 ifelse
196 }
197 for
198 end
199 } def
200 end
201 %%EndProcSet
202 %%EndProlog
203 %%BeginFont: MSyms
204 %!PS-AdobeFont-1.0: MSyms 000.100
205 %%Title: MSyms
206 %Version: 000.100
207 %%CreationDate: Fri Dec 7 13:24:47 2012
208 %%Creator: Johan Vromans
209 %Copyright: Free as a bird
210 % 2012-12-7: Created.
211 % Generated by FontForge 20120731 (http://fontforge.sf.net/)
212 %%EndComments
213  
214 10 dict begin
215 /FontType 1 def
216 /FontMatrix [0.001 0 0 0.001 0 0 ]readonly def
217 /FontName /MSyms def
218 /FontBBox {0 -1561 2494 2089 }readonly def
219 /PaintType 0 def
220 /FontInfo 9 dict dup begin
221 /version (000.100) readonly def
222 /Notice (Free as a bird) readonly def
223 /FullName (Musical Symbols For Playtab) readonly def
224 /FamilyName (MusicalSymbolsForPlaytab) readonly def
225 /Weight (Medium) readonly def
226 /ItalicAngle 0 def
227 /isFixedPitch false def
228 /UnderlinePosition -100 def
229 /UnderlineThickness 50 def
230 end readonly def
231 /Encoding 256 array
232 0 1 255 { 1 index exch /.notdef put} for
233 dup 33/Sharp put
234 dup 34/Flat put
235 dup 35/Natural put
236 dup 36/Same2 put
237 dup 37/Dim put
238 dup 38/HDim put
239 dup 39/Major put
240 readonly def
241 currentdict end
242 currentfile eexec
243 743F8413F3636CA85A9FFEFB50B4BB27302A5CC0AB6E2F959BF20D320C373C2128D0A0CE
244 7072B1F672A0AA38C3C0ECEB04B44CB174A1C31612D71FFA20C90954256378372F795B0B
245 F2941F437F059F41AE0598C00515FEF187333557F32CE32A9EE7D4BAB65DA5343F92707E
246 2CFCF3E8CE446E5ADAC39FC37ECE64B68B356CE0D710F45B1E7F2CD768ABCA1436083668
247 761A1009464162D054C1F6BF2C46A319B3C66452876316C13A926456D3662958FD56740D
248 5856736E6104F813ED319156777934EEB1C5445AE6BF6EE59E5B19708B4287DB4B9BAF98
249 8291ABC06FDE77FCC3171998C232F68CABD46E44407B24B00A678AF97E78848BB7C0BD2C
250 BDD5674061220B1FB375A940FA7BD5451B21580BEE1C29092A5F3E43CEF0603FA05829CE
251 2F5D860ADBCC576BA2720B9F9BE9C3684F5B674B29FAA4624B83864A788C4967AA263B87
252 00B168B5D4F0FBE28B3B0FA3F6B3D1C98545943F2E161E2D6855B0513E4F39684A36F5B1
253 A3B37E16C80995442FD52F864941F1C520133C3E04686829208B4127D475F9693EDBF069
254 91D4D4D4E1536AD1D73366E5E0A27AC8FF0742910CF30163437ACDB3DA3212D2688E683B
255 4002F88A32AF4E7723E3AE6C0D598913243BDB47DF8D3E79B691A806E221690EA206A4A6
256 A2077B8324432D79C8A7A99119473022D8EBEF09843606EE962171D21099668EACB6FDD5
257 5417981D20FCA178A14A43A709829127E431CABB7054ECC2356E1049490410774E57BEB8
258 5D51A3F2A63BA5AC60295A9BF38F9B2BE9893B357F9BDEFA2B880BF35937AD32A36775F6
259 038449BE4054B95BAC6B86F2C6DC1989FD377E8B151B4BE9A6A6BB05F195518DE7AA8A4F
260 38A20A038110D69A7E556634AE7D7FBD5F5C4041C6A4E44698392270F8845F6212EE1483
261 30248FEEB732D4E5EC3BD7D4B04A268285800A2919960B1F99310F9A1768287150CF53BC
262 0FB7B2EA374BCEFA999189342679A54925C3B19F5BB38BFEE12429949AAD2512D9215C80
263 D67EE802E07B50DBC6547F3C37D89EC7C19D22089200AAFBB1AB624C499BC6B9226CA58E
264 7308B25E5D308000E58A59D0F608E8471A5D031A8BF36A6CFDD288D36E3625449DFB4284
265 CEDB8F2C33B0CA73FD4A36F7C67DBFD71DD91F2936D2667CEF9169EA6C55C24FA9CD62FC
266 8E4EA504DB3633AB6C5EE88D024853DE4BCA69476135E155639BBFD7FED2AB1F20127F1F
267 6FC846EAD110F1A4711C841FA92C6AA5023E3E074B3AE9CCEF3B9F23894430B8EBAC6186
268 4D77E8EC3F534EB235EDCB1344CF8CCE5AD7731B98D93CD1EA855D104048A0C97A1E33A9
269 4BD7E64467AA8EAABDEF8BA591190F6A39BD55EB6CA775A959079D6613745BE78A447ABD
270 AEC56668EF30677263CAFD8E8CAA3D8B26497A2F9706251C86B43319338AFF331CD45CDF
271 9EB93A67D7DCA12B75E6C5D42FEDD57F77E52B8DEC38548E4A39B2D2CD01593E84E08FE5
272 E10230D878F9934AD9F92A2B7CE07D9829DDC812D414D363A0C20928D31CDF2591C20BC6
273 BEA49757ACABCDC53BFE5DD96BFCB81AE0B94C441D96DD5462F033FE590E83CC7BC4578D
274 A6F812BB6B4026C0787E7A813E7E2277375B6348A4766F0B9C9D20BC67BA3BAD503B7DE6
275 9B42DC98270939CD00D4B64DAEB8C7413A29378C6671EECF38166BB06511F133955CD5FF
276 CAC8329A0C71059DD125724BB02F559BBB1E926D7E0B2A1D366D3277A388FC4A0A34CD17
277 5F37C3E6EFAF06098414C54E6845AEC38B7A1AF751DFD40C4C4CD3382241D8F6DFEA2175
278 5A2DC47632E5A8E5D74AD8D342A53568476837F7C4D70895521597E5C657EC9E4C9BA630
279 641FDC1AAC54A785EB47AD964CEA75091E5B89F4E70BD08EF0DDE90920312D62A9547DF5
280 7DE6675CF8C16CF8FAA263C6BC82CCF93734E91E6A547B3A65FC484777FE40F9B39B9809
281 BCB9588FF05C6C4F036F1AD7C6A8FBF77F7DE58E7676459017875607A01E2367305C6B00
282 926DEB916C5DA19BF3FA1C929B0360558BF9CBA7379003F2E1CDCA91D1A9EF8FAD5BD82F
283 1110034420DAEF5B922D93539F4BEF5A6E63A0A234FA035EAF8A3366DC1BAD6DD0BF0926
284 57AD441203AF67AF1C20CE3BFC1E878649B0417FEB9B51F52EB4FFE750BF2E628DEFD514
285 965F3F18FDA90F0F580675C532DA89FFA3DE5799F022FFB666918EE229477252577FD88D
286 0D92380743C421C29C1C395638D4C2BE78482F9059956A5800997E8BF9CA03528B67486B
287 6154CB4B84F793C9EF2CC8A0E5F1BDF20E2211A392656A59423CF4EA76711459A8160048
288 66AE99DF65E95D09653ADC9C1EF579E917131A2CB692792436F085AD54BB804F87F69464
289 815F2C10D404799C2FB491EC3CDFB42A7476DE3B02E7C9FBF92B11570161FA74C1A085DE
290 005880F696B140B35056FA3B77154901361EA904BD564A5371FB1A67ACCA00002B1BDDF9
291 B73D48B6F00DC7E8CA1553023A6CFED1E29CE12E7A443443620022BF9244489D2B0D676E
292 5C5EE900787ED320CC42A9C84909E1B83AE3626AFBE51B76B0313B1F22FF857B8E4D77BA
293 9DF69A709FB220CD31CEB47691E97B6FBBE93850CDC906404293B8374ACB65FF8EABC101
294 74A213E20008AE8A7600F949D767605F71EF3D98C44BA4B9CEA274AFBC151B1A3386E1A9
295 6F7B2F19F33474A40E23D27F02A1DFEBA951546CA6E13E5AD9EAC6478732128F871D3BDC
296 6EE40B10C0368616883F58D5CDDFDC12B54647C7E3E16EFCD575438857550E06B34138BE
297 AB7852D4DABB73B3A0B3EEFD3C341E56C4F2C9DF498A6B09C199611C7E62D466DBE73943
298 FF4095C412F6479C1F627FCEB0E6359F920A3CC691BCF4EB6E158C83B3F114FE3154F427
299 1B2A4FC323B02B288D76F522C8BBF90241F53AD25F492DC44607524C3F015D30C7D0665B
300 17129F182901790EC8DBF2E3876F54DB3D00AB964D9A734383548BBFDF843875AB24CE10
301 4A418AA081CBB0FEDE8D6D145D41EB26E1EE210A82FEE2069B185DA629EB7C352DAA0F49
302 4C4C005F4B8E5EA0ABD2457B3FF41E2DB77013B62D30A4754F9372A39AFA8233BC104146
303 5E9431F964843C7C14CF7F664CF6
304 0000000000000000000000000000000000000000000000000000000000000000
305 0000000000000000000000000000000000000000000000000000000000000000
306 0000000000000000000000000000000000000000000000000000000000000000
307 0000000000000000000000000000000000000000000000000000000000000000
308 0000000000000000000000000000000000000000000000000000000000000000
309 0000000000000000000000000000000000000000000000000000000000000000
310 0000000000000000000000000000000000000000000000000000000000000000
311 0000000000000000000000000000000000000000000000000000000000000000
312 cleartomark
313 %%EndFont
314 %%BeginSetup
315 %%PaperSize: A4
316 %%EndSetup
317 EOD
318 }
319  
320 3 1;
321  
322 __END__
« PlayTab/Output/Dump.pm ↑ Summary PlayTab/Version.pm »