summaryrefslogtreecommitdiff
path: root/lib/musiclib.lps
blob: a8a9e75526c14538b48b2ed0cde83ede12dda82d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
%! PostScript set of library objects for XCircuit
%  Version: 3.6
%  Library name is: musiclib
%  Author: R. Timothy Edwards <tim@khachaturian.tim.linglan.net>
%

% Depend musiclib::qn musiclib::hd
% Depend musiclib::qnd musiclib::qn
% Depend musiclib::qstem1 musiclib::qn musiclib::lnt
% Depend musiclib::qstem2 musiclib::qn musiclib::lnt
% Depend musiclib::qstem3 musiclib::qn musiclib::lnt
% Depend musiclib::qstem4 musiclib::qn musiclib::lnt
% Depend musiclib::hn musiclib::hhd
% Depend musiclib::hnd musiclib::hn
% Depend musiclib::hnd2 musiclib::lnt musiclib::hn
% Depend musiclib::hnd3 musiclib::lnt musiclib::hn
% Depend musiclib::hnt musiclib::lnt musiclib::hn
% Depend musiclib::hnt2 musiclib::hn musiclib::lnt
% Depend musiclib::wnt musiclib::lnt musiclib::wn
% Depend musiclib::en musiclib::qn musiclib::flg
% Depend musiclib::en2 musiclib::qn musiclib::flg
% Depend musiclib::ent musiclib::en2 musiclib::lnt
% Depend musiclib::ent2 musiclib::en musiclib::lnt
% Depend musiclib::ent3 musiclib::en musiclib::lnt
% Depend musiclib::ent4 musiclib::en2 musiclib::lnt
% Depend musiclib::sn musiclib::qn musiclib::flg
% Depend musiclib::sn2 musiclib::qn
% Depend musiclib::sr musiclib::er
% Depend musiclib::keyBf musiclib::flt
% Depend musiclib::keyEf musiclib::flt
% Depend musiclib::keyDf musiclib::flt
% Depend musiclib::cuttime musiclib::common
% Depend musiclib::pedalstop musiclib::ppin
% Depend musiclib::rept musiclib::ddot
% Depend musiclib::gliss musiclib::blip
% Depend musiclib::staff musiclib::lines musiclib::br1 musiclib::bar musiclib::tclef musiclib::bclef
% Depend musiclib::doublet musiclib::qn
% Depend musiclib::triplet musiclib::qn musiclib::hd

% XCircuitLib library objects
/musiclib::lnt {
begingate
1 1.750 -4 0 60 0 2 polygon
endgate
} def

/musiclib::hd {
begingate
6 9 beginpath
-2 25 -38 9 -30 -9 curveto
-22 -25 14 -9 6 9 curveto
241 1.000 endpath
endgate
} def

/musiclib::qn {
begingate
1.000 0 -7 16 musiclib::hd
1 1.000 0 18 0 128 2 polygon
endgate
} def

/musiclib::qnd {
begingate
1.000 180 -40 32 musiclib::qn
endgate
} def

/musiclib::qstem1 {
begingate
1.000 180 -40 32 musiclib::qn
1.000 0 -48 16 musiclib::lnt
endgate
} def

/musiclib::qstem2 {
begingate
1.000 180 -40 32 musiclib::qn
1.000 0 -52 0 musiclib::lnt
endgate
} def

/musiclib::qstem3 {
begingate
1.000 0 0 0 musiclib::qn
1.000 0 -48 16 musiclib::lnt
endgate
} def

/musiclib::qstem4 {
begingate
1.000 0 0 0 musiclib::qn
1.000 0 -45 32 musiclib::lnt
endgate
} def

/musiclib::hhd {
begingate
6 28 beginpath
16 12 -20 -12 -30 4 curveto
-24 -6 12 20 6 28 curveto
-4 44 -40 20 -30 4 curveto
-36 12 0 
38 6 28 curveto
241 1.000 endpath
endgate
} def

/musiclib::hn {
begingate
1 1.000 0 23 0 128 2 polygon
1.000 0 -8 0 musiclib::hhd
endgate
} def

/musiclib::hnd {
begingate
1.000 180 -40 32 musiclib::hn
endgate
} def

/musiclib::hnd2 {
begingate
1.000 0 -48 0 musiclib::lnt
1.000 180 -40 32 musiclib::hn
endgate
} def

/musiclib::hnd3 {
begingate
1.000 0 -48 16 musiclib::lnt
1.000 180 -40 32 musiclib::hn
endgate
} def

/musiclib::hnt {
begingate
1.000 0 -48 16 musiclib::lnt
1.000 0 0 0 musiclib::hn
endgate
} def

/musiclib::hnt2 {
begingate
1.000 0 0 0 musiclib::hn
1.000 0 -44 32 musiclib::lnt
endgate
} def

/musiclib::wn {
begingate
-28 32 beginpath
-48 32 -28 0 -12 0 curveto
-52 0 -52 32 -28 32 curveto
12 32 12 0 -12 0 curveto
8 0 -12 
32 -28 32 curveto
241 1.000 endpath
endgate
} def

/musiclib::wnt {
begingate
1.000 0 -49 16 musiclib::lnt
1.000 0 0 0 musiclib::wn
endgate
} def

/musiclib::flg {
begingate
0 76 beginpath
0 32 68 8 28 -52 curveto
64 0 0 32 0 32 curveto
240 1.000 endpath
endgate
} def

/musiclib::en {
begingate
1.000 0 0 0 musiclib::qn
1.000 0 0 78 musiclib::flg
endgate
} def

/musiclib::en2 {
begingate
1.000 180 -40 32 musiclib::qn
-1.000 180 -40 -54 musiclib::flg
endgate
} def

/musiclib::ent {
begingate
1.000 0 0 0 musiclib::en2
1.000 0 -48 16 musiclib::lnt
endgate
} def

/musiclib::ent2 {
begingate
1.000 0 0 0 musiclib::en
1.000 0 -44 16 musiclib::lnt
endgate
} def

/musiclib::ent3 {
begingate
1.000 0 0 0 musiclib::en
1.000 0 -44 32 musiclib::lnt
endgate
} def

/musiclib::ent4 {
begingate
1.000 0 0 0 musiclib::en2
1.000 0 -52 0 musiclib::lnt
endgate
} def

/musiclib::sn {
begingate
1.000 0 0 0 musiclib::qn
0 188 beginpath
0 144 56 120 36 72 curveto
52 104 0 144 0 144 curveto
240 1.000 endpath
1.000 0 0 72 musiclib::flg
endgate
} def

/musiclib::sn2 {
begingate
1.000 180 -40 32 musiclib::qn
-40 -136 beginpath
-40 -92 16 -68 -4 -20 curveto
12 -52 -40 -92 -40 -92 curveto
240 1.000 endpath
-40 -96 beginpath
-40 -52 12 -36 -4 4 curveto
8 -24 -40 -52 -40 -52 curveto
240 1.000 endpath
endgate
} def

/musiclib::flt {
begingate
1 1.000 -8 71 -8 -1 2 polygon
-8 -2 beginpath
32 22 12 46 -8 30 curveto
2 40 20 22 -8 -2 curveto
241 1.000 endpath
endgate
} def

/musiclib::shp {
begingate
240 1.000 -16 24 16 32 16 40 -16 32 4 polygon
240 1.000 -16 -8 16 0 16 8 -16 0 4 polygon
1 1.000 -8 56 -8 -28 2 polygon
1 1.000 8 -24 8 60 2 polygon
endgate
} def

/musiclib::nat {
begingate
240 1.000 -14 -8 8 0 8 8 -14 0 4 polygon
240 1.000 -14 24 8 32 8 40 -14 32 4 polygon
1 1.000 -14 62 -14 -8 2 polygon
1 1.000 8 -32 8 40 2 polygon
endgate
} def

/musiclib::hr {
begingate
240 1.000 -24 0 -24 16 20 16 20 0 4 polygon
endgate
} def

/musiclib::qr {
begingate
1 1.000 3 41 -1 49 2 polygon
1 1.000 14 -34 -14 6 2 polygon
8 -26 beginpath
-2 -12 -30 -22 -6 -50 curveto
-20 -36 -4 -24 14 -34 curveto
241 1.000 endpath
-14 6 beginpath
-10 30 6 34 -2 50 curveto
10 26 1 polyc
-2 14 -6 -6 0 -14 curveto
241 1.000 endpath
endgate
} def

/musiclib::er {
begingate
1 1.300 -3 39 -20 -8 2 polygon
241 1.000 -24 36 6 0.000 360.000 xcarc
1 1.000 -18 44 16 237.000 337.000 xcarc
endgate
} def

/musiclib::sr {
begingate
241 1.000 -34 12 6 0.000 360.000 xcarc
1 1.000 -28 20 16 237.000 337.000 xcarc
1.000 0 -3 -6 musiclib::er
endgate
} def

/musiclib::fermata {
begingate
241 1.000 0 -12 4 0.000 360.000 xcarc
-32 -12 beginpath
-24 28 24 28 32 -12 curveto
28 16 -28 16 -32 -12 curveto
241 1.000 endpath
endgate
} def

/musiclib::br1 {
begingate
0 96 beginpath
-76 52 60 -100 -32 -160 curveto
44 -116 -92 36 0 96 curveto
241 1.000 endpath
endgate
} def

/musiclib::tclef {
begingate
1 1.000 -2 -26 16 180.000 360.000 xcarc
241 1.000 -8 -26 10 0.000 360.000 xcarc
1 1.000 14 -26 -4 112 2 polygon
-4 12 beginpath
-20 20 -16 50 12 50 curveto
42 50 36 0 4 0 curveto
48 0 52 64 12 64 curveto
-20 64 -28 
20 -4 12 curveto
241 1.000 endpath
4 0 beginpath
-24 0 -32 16 -32 32 curveto
-32 80 30 84 30 140 curveto
30 170 -10 140 -4 112 curveto
-10 
156 12 164 22 168 curveto
28 158 30 152 30 140 curveto
30 108 -44 92 -44 40 curveto
-44 8 -16 0 4 0 curveto
241 
1.000 endpath
endgate
} def

/musiclib::bclef {
begingate
1 1.000 0 5 27 90.000 192.000 xcarc
241 1.000 48 16 3 0.000 360.000 xcarc
241 1.000 48 -15 3 0.000 360.000 xcarc
241 1.000 -17 3 10 0.000 360.000 xcarc
36 -4 beginpath
36 -44 8 -60 -28 -68 curveto
40 -52 32 32 0 32 curveto
28 32 36 12 36 -4 curveto
241 
1.000 endpath
endgate
} def

/musiclib::keyBf {
begingate
1.000 0 -18 -17 musiclib::flt
1.000 0 14 31 musiclib::flt
endgate
} def

/musiclib::keyEf {
begingate
1.000 0 -18 -17 musiclib::flt
1.000 0 14 31 musiclib::flt
1.000 0 46 -33 musiclib::flt
endgate
} def

/musiclib::keyDf {
begingate
1.000 0 -96 -48 musiclib::flt
1.000 0 -64 0 musiclib::flt
1.000 0 -32 -64 musiclib::flt
1.000 0 0 -16 musiclib::flt
1.000 0 32 -80 musiclib::flt
endgate
} def

/musiclib::dot {
begingate
248 1.000 0 0 6 0.000 360.000 xcarc
endgate
} def

/musiclib::ddot {
begingate
241 1.000 0 16 5 0.000 360.000 xcarc
241 1.000 0 -16 5 0.000 360.000 xcarc
endgate
} def

/musiclib::common {
begingate
241 1.000 14 18 8 -180.000 180.000 xcarc
1 1.000 18 30 20 26 22 20 8 32 spline
1 1.000 18 -26 22 -20 24 -14 14 -28 spline
-24 0 beginpath
-24 16 -16 36 8 32 curveto
-20 38 -18 -48 14 -28 curveto
4 -36 -24 -32 -24 0 curveto
241 
1.000 endpath
endgate
} def

/musiclib::cuttime {
begingate
1.000 0 0 0 musiclib::common
1 1.000 2 46 2 -46 2 polygon
endgate
} def

/musiclib::two {
begingate
241 1.000 -10 18 8 0.000 360.000 xcarc
1 1.000 -14 30 -16 26 -18 20 -4 32 spline
1 1.000 -18 -20 -18 -16 2 -6 -24 -32 spline
26 -12 beginpath
26 -50 -14 -20 -24 -32 curveto
-8 0 26 -34 26 -12 curveto
241 1.000 endpath
-4 32 beginpath
16 34 22 4 2 -6 curveto
24 2 26 8 26 18 curveto
26 24 20 36 -4 32 curveto
241 1.000 endpath
endgate
} def

/musiclib::three {
begingate
241 1.000 -14 -18 8 0.000 360.000 xcarc
1 1.000 -18 -30 -20 -26 -22 -20 -8 -32 spline
241 1.000 -14 18 8 0.000 360.000 xcarc
1 1.000 -18 30 -20 26 -22 20 -8 32 spline
-6 0 beginpath
16 0 22 6 22 18 curveto
22 24 16 36 -8 32 curveto
12 34 18 0 -6 0 curveto
16 0 22 -6 22 
-18 curveto
22 -24 16 -34 -8 -32 curveto
12 -34 18 0 -6 0 curveto
241 1.000 endpath
endgate
} def

/musiclib::four {
begingate
1 1.000 -24 -10 24 -10 2 polygon
12 -24 beginpath
11 -28 15 -31 20 -32 curveto
-10 -32 1 polyc
-5 -31 -2 -28 -2 -24 curveto
12 
-24 12 18 -2 2 3 polyc
241 1.000 endpath
-24 -10 beginpath
-16 0 -6 20 -6 28 curveto
-22 -10 14 32 2 polyc
241 1.000 endpath
endgate
} def

/musiclib::six {
begingate
241 1.000 12 20 8 0.000 360.000 xcarc
1 1.000 16 30 18 26 20 20 6 32 spline
1 1.000 -6 4 -12 -4 -10 -14 0 4 spline
0 4 beginpath
14 5 12 -34 0 -32 curveto
-26 -32 -24 -4 -24 0 curveto
-24 8 -20 36 6 32 curveto
-14 34 
-16 -32 0 -32 curveto
20 -32 22 -20 22 -12 curveto
22 2 8 6 0 4 curveto
241 1.000 endpath
endgate
} def

/musiclib::eight {
begingate
1 1.000 -6 -34 8 -34 14 -30 -12 -30 spline
-10 30 beginpath
-22 24 -30 4 0 -6 curveto
20 -14 22 -24 14 -30 curveto
26 -24 34 0 4 10 curveto
-14 16 
-18 24 -10 30 curveto
241 1.000 endpath
-12 -30 beginpath
-18 -26 -22 -14 -14 0 curveto
-24 -6 -28 -22 -12 -30 curveto
241 1.000 endpath
14 30 beginpath
22 22 20 10 16 4 curveto
22 8 30 22 14 30 curveto
241 1.000 endpath
1 1.000 -4 34 8 34 14 30 -10 30 spline
endgate
} def

/musiclib::nine {
begingate
241 1.000 -16 -18 8 0.000 360.000 xcarc
1 1.000 -20 -30 -22 -26 -24 -20 -10 -32 spline
1 1.000 4 -4 8 0 9 10 -4 -4 spline
-4 -4 beginpath
-18 -5 -16 34 -4 32 curveto
15 32 16 -39 -10 -32 curveto
26 -34 24 -6 24 0 curveto
24 4 
26 32 -4 32 curveto
-24 32 -26 20 -26 12 curveto
-26 -2 -13 -4 -4 -4 curveto
241 1.000 endpath
endgate
} def

/musiclib::pedal {
begingate
1 1.000 -22 34 -32 32 -36 30 -12 30 spline
4 -28 beginpath
-8 -18 -30 -34 -32 -32 curveto
-34 -30 -18 -24 -4 -32 curveto
4 -28 1 polyc
241 
1.000 endpath
-20 -28 beginpath
-6 0 -32 12 -26 32 curveto
-40 4 -14 -8 -20 -28 curveto
241 1.000 endpath
-18 18 beginpath
-6 2 4 22 -12 30 curveto
18 18 -8 -12 -18 18 curveto
241 1.000 endpath
-36 30 beginpath
-60 18 -52 -10 -34 6 curveto
-50 -4 -48 24 -36 30 curveto
241 1.000 endpath
1 1.000 22 -18 20 0 12 0 4 -28 spline
44 -30 beginpath
30 -36 24 -4 32 0 curveto
20 -6 20 -40 44 -30 curveto
62 -20 42 22 12 16 curveto
36 24 
52 -24 44 -30 curveto
241 1.000 endpath
12 0 beginpath
-2 0 0 -44 26 -28 curveto
8 -40 4 0 12 0 curveto
241 1.000 endpath
241 1.000 58 -30 2 0.000 360.000 xcarc
endgate
} def

/musiclib::ppin {
% hidden
begingate
3 -12 beginpath
3 -9 1 polyc
-1 -8 0 1 2 2 curveto
5 4 6 7 5 10 curveto
3 13 0 14 -2 13 curveto
-5 11 -6 
8 -5 5 curveto
-4 4 -3 3 -2 2 curveto
0 1 1 -8 -3 -9 curveto
-3 -12 1 polyc
-1 -10 1 -10 2 -12 curveto
241 
1.000 endpath
endgate
} def

/musiclib::blip {
% hidden
begingate
0 -16 beginpath
-24 8 12 4 0 16 curveto
24 -8 -12 -4 0 -16 curveto
241 1.000 endpath
endgate
} def

/musiclib::pedalstop {
begingate
-1.000 45 11 11 musiclib::ppin
1.000 0 0 15 musiclib::ppin
1.000 90 15 0 musiclib::ppin
-1.000 225 -11 -11 musiclib::ppin
-1.000 315 -11 11 musiclib::ppin
-1.000 270 -15 0 musiclib::ppin
-1.000 180 0 -15 musiclib::ppin
-1.000 135 11 -11 musiclib::ppin
endgate
} def

/musiclib::rept {
begingate
240 1.000 -32 -256 -32 256 -16 256 -16 -256 4 polygon
1 1.000 0 256 0 -256 2 polygon
1.000 0 16 192 musiclib::ddot
1.000 0 16 -192 musiclib::ddot
endgate
} def

/musiclib::gliss {
begingate
1.000 0 0 80 musiclib::blip
1.000 0 0 16 musiclib::blip
1.000 0 0 48 musiclib::blip
1.000 0 0 -16 musiclib::blip
1.000 0 0 -80 musiclib::blip
1.000 0 0 -48 musiclib::blip
endgate
} def

/musiclib::bar {
begingate
1 1.500 0 256 0 -256 2 polygon
endgate
} def

/musiclib::lines {
begingate
1 1.000 0 -32 3552 -32 2 polygon
1 1.000 0 64 3552 64 2 polygon
1 1.000 0 0 3552 0 2 polygon
1 1.000 0 32 3552 32 2 polygon
1 1.000 0 -64 3552 -64 2 polygon
endgate
} def

/musiclib::staff {
begingate
1.000 0 64 -192 musiclib::lines
1.000 0 64 192 musiclib::lines
-1.000 180 48 -160 musiclib::br1
1.000 0 48 160 musiclib::br1
1.000 0 64 0 musiclib::bar
1.000 0 3616 0 musiclib::bar
1.000 0 144 128 musiclib::tclef
1.000 0 128 -160 musiclib::bclef
endgate
} def

/musiclib::doublet {
<</p_xps 64 /p_yps -64 /p_yps2 80 (expr @p_yps + 144) pop /p_yps3 64 
(expr @p_yps + 128) pop >> begingate
1.000 0 -32 -96 musiclib::qn
1.000 0 p_xps p_yps musiclib::qn
496 1.000 -32 32 -32 48 p_xps p_yps2 p_xps p_yps3 4 polygon
endgate
} def

/musiclib::triplet {
<</p_yps3 96 (expr @p_yps + 128) pop
 /p_yps2 112 (expr @p_yps + 144) pop
 /p_yps -32 /p_xps 160 /p_yps4 -48
 /p_xps2 64 (expr -32 + (@p_xps + 32) / 2) pop
 /p_xps3 72 (expr @p_xps2 + 7) pop
 /p_yps5 64 (expr 8 + (32 + @p_yps3) / 2) pop >> begingate
1.000 0 -32 -96 musiclib::qn
1.000 0 p_xps p_yps musiclib::qn
1.000 0 p_xps2 p_yps4 musiclib::hd
1 1.000 p_xps3 p_yps4 p_xps3 p_yps5 2 polygon
496 1.000 -32 32 -32 48 p_xps p_yps2 p_xps p_yps3 4 polygon
endgate
} def

/musiclib::tie {
<</p_xps -96 /p_yps -32 /p_xps2 96 /p_yps2 32 /p_xps3 0 /p_xps4 64
/p_yps5 -24 /p_yps4 -18 (expr @p_yps5 + 6) pop
/p_yps6 -56 /p_yps3 -50 (expr @p_yps6 + 6) pop >> begingate
p_xps p_yps beginpath
p_xps3 p_yps3 p_xps4 p_yps4 p_xps2 p_yps2 curveto
p_xps4 p_yps5 p_xps3 p_yps6 p_xps p_yps curveto
497 1.000 endpath
endgate
} def

% EndLib