Debian Codegraph @

texmf-dist/doc/latex/circuit-macros/examples/Audio.m4

raw
1 .PS
2 # `Audio.m4'
3 cct_init
4
5 define(`In123',`
6 thinlines_
7 arrow <- from `$1'.In1 up 0.05 left 0.15
8 "{\sl In1}sp_" rjust above
9 arrow <- left 0.15 from `$1'.In2
10 "{\sl In2}sp_" wid 0.2 rjust
11 arrow <- from `$1'.In3 down 0.05 left 0.15
12 "{\sl In3}sp_" rjust below
13 thicklines_ ')
14
15 L:[
16 [
17 S: speaker
18 `"\tt speaker"' at S.s+(0,-0.2) #below
19 In123(S)
20 thinlines_
21 arrow <- from S.In4 left 0.05 up 0.15
22 "{\sl In4}" above rjust
23 arrow <- from S.In5 right 0.05 up 0.15
24 "{\sl In5}" above
25 arrow <- from S.In6 left 0.05 down 0.15
26 "{\sl In6}" below rjust
27 arrow <- from S.In7 right 0.05 down 0.15
28 "{\sl In7}" below
29 spline <- from S.Box.e+(0,0.05) right 0.27 up 0.10 \
30 then right 0.1 up 0.2
31 "\sl Box" above
32 thicklines_
33 ]
34 [
35 H: speaker(,,H)
36 `"\tt speaker(,{,}H)"' at H.s+(0,-0.30) #below
37 ] with .sw at last [].se+(0.25,-0.1)
38 ]
39 [
40 B: bell
41 `"\tt bell"' at B.s+(0,-0.2) #below
42 In123(B)
43 thinlines_
44 arrow <- from B.Box.n+(-0.1,0) up 0.15 left 0.1 ; "\sl Box" above
45 arrow <- from B.Circle.n up 0.15 ; "\sl Circle" above
46 thicklines_
47 ] with .w at last [].e+(0.0,0.5)
48 [
49 Z: buzzer
50 `"\tt buzzer"' at Z.s+(0,-0.2) #below
51 In123(Z)
52 thinlines_
53 arrow <- from Z.Box.n up 0.15 ; "\sl Box" above
54 thicklines_
55 ] with .sw at last [].se+(0.4,0)
56 R:[
57 Z: buzzer(,,C)
58 `"\tt buzzer(,{,}C)"' at Z.s+(0,-0.2) #below
59 In123(Z)
60 thinlines_
61 spline <- from 0.8<Z.Face.s,Z.Face.n> right 2*arrowht up 0.5*arrowht \
62 then up 0.15 right 0.05
63 "\sl Face" above
64 thicklines_
65 ] with .sw at last [].se+(0.4,0)
66 [
67 M: microphone
68 `"\tt microphone"' at M.s+(0,-0.2) #below
69 In123(M)
70 thinlines_
71 arrow <- from M.Circle.n up 0.15 ; "\sl Circle" above
72 thicklines_
73 ] with .sw at last [].se+(0.4,0)
74 [
75 M: microphone(A)
76 `"\tt microphone(A)"' at M.s+(0,-0.2) #below
77 thinlines_
78 arrow <- from M.Head.e+(0,0.05) right 0.2; "\sl Head" ljust
79 spline 0.5 <- from M.Head.b down 0.05 right 0.1 then right 0.1
80 "\sl Head.b" ljust
81 arrow <- from M.Stand.s right 0.2; "\sl Stand.s" ljust
82 thicklines_
83 ] with .n at last [].s+(0,-0.05)
84 [[
85 E: earphone
86 `"\tt earphone"' at E.s+(0,-0.2) #below
87 In123(E)
88 thinlines_
89 arrow <- from E.Box.n up 0.15 left 0.15 ; "\sl Box" above
90 thicklines_
91 ]
92 [
93 E: earphone(,,C)
94 `"\tt earphone(,{,}C)"' at E.s+(0,-0.2) #below
95 thinlines_
96 arrow <- from E.L up 0.15 left 0.15; "\sl L" rjust
97 arrow <- from E.R up 0.15 right 0.15; "\sl R" ljust
98 "\sl N" at E.N above
99 "\sl C" at E.C
100 thicklines_
101 ] with .sw at last [].se+(0.6,0)
102 ] with .n at (0.6 between L and R, R.s)+(0.5,0.1-ifdpic(0.2,0.25))
103
104 .PE