aboutsummaryrefslogtreecommitdiff
path: root/ja_JP.eucJP/man/man4/man4.i386/spkr.4
blob: 0e702a1c9d10569ba27227c6936b378fd03fd8d2 (plain) (blame)
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
.\"
.\"	%Id: spkr.4,v 1.10 1998/03/12 07:30:38 charnier Exp %
.\" $FreeBSD$
.\"
.Dd November 7, 1993
.Dt SPKR 4 i386
.Os FreeBSD
.Sh ̾
.Nm speaker ,
.Nm spkr
.Nd 󥽡륹ԡΥǥХɥ饤
.Sh 
.Cd pseudo-device speaker
.Fd #include <machine/speaker.h>
.Sh 
ԡǥХɥ饤Фϡ
.Tn FreeBSD
äƤ
.Tn IBM-PC 
ߴ PC ǡ
ץꥱ󤬥󥽡륹ԡǤ褦ˤޤ
.Pp
ʤȤǤ⡢ΥǥХ򥪡ץǤΤ
 1 ĤΥץǤ
ΤᡢΥǥХΥåȲˤϡ
.Xr open 2

.Xr close 2
Ѥޤ
¾ΥץǥХꤷƤ˥ץ󤷤褦Ȥȡ
.Er EBUSY
顼򼨤 -1 ֤ޤ
ǥХؤν񤭹ߤϡ ASCII ʸñ˥ǥɽ
ʸ (`play string') ȤƲᤵޤ
.Xr ioctl 2
ꥯȤˤǤդμȿȯ⥵ݡȤƤޤ
.Pp
ȯ뤳Ȥǥץåꤹ뤳ȤϤޤ
ºݤˤϡɥ饤Ф PC ϡɥȯƤ֤
ۤȤɤλ֤򥹥꡼פԤäƤޤ
¾Υץϥɥ饤ФäƤ֤˥ӡפĤ餹ȤǤޤ
.Pp
ץꥱϡԡΥե뵭һҤФ
.Xr ioctl 2
ƤӽФ򤹤뤳Ȥˤꡢԡɥ饤ФľǽǤ
.Xr ioctl 2
󥿥եˤĤƤ
.Pa /usr/include/machine/speaker.h
ˤޤ
θƤӽФ˻Ȥ
.Li tone_t
¤Τˤϡ
ȿ (إ) Ȼ³ (1/100 ñ̤) ꤹ
2 ĤΥեɤޤ
ȿ 0 ϡȲᤵޤ
.Pp
ߤΤ褦
.Xr ioctl 2
ƤӽФ 2 Ĥޤ
.Dv SPKRTONE
ϡ 3 ñ tone ¤ΤؤΥݥ 1 Ĥꡢ
դޤ
.Dv SPKRTUNE
ϡñ tone ¤ƬؤΥݥ 1 Ĥꡢ
֤˱դޤ
³ 0 ΥФǽäƤ뤳ȤɬפǤ
.Pp
ʸθˡ
.Tn IBM 
Advanced BASIC 2.0  PLAY ʸν路Ƥޤ
PLAY ʸ
.Li MB , 
.Li MF ,
.Li X
ǤϻʬĶǤΩʤޤ
`ɽ' ǽȥ顼Ͽɲä줿ΤǤ
.Pp
 7  84 Ѳǽ 1-84 ֹ椬ĤƤޤ
.\" ʸǤ 1-83 ȤʤäƤ롣 send-pr Ѥߡ
줾Υ֤ C  B ޤ³Ƥ 0-6 ֹ椬ĤƤޤ
 A440 ˹碌ĴΧƤơ 3 Ͽ C Ϥޤޤ
ǥեȤǤϱյǽȾäβȯΤǸ 1/16 äϵ٤ߤޤ
.Pp
ʸϺ鱦ؤȡեޥɥ롼פϢ³ȤƲᤵޤ
ʸʸ϶̤ޤ󡣱եޥɥ롼פϼ̤Ǥ:
.Bl -tag -width CDEFGABxx
.It Li CDEFGAB
A  G ޤǤʸб벻򸽺ߤΥ֤Ĥ餷ޤ
ʸˤϥץǡ # + - Τ줫ҤȤĤ
.Dq Em "׻"
³뤳ȤǤޤΤǽ 2 ĤϲȾ⤯
ǸΤΤϲȾ㤯ޤ
ޤʸθˤϲĹɽ () Ĥ뤳ȤǤޤ
Ĺϼ L ޥɤξƱͤ˲ᤵޤ
.It Ns Li O Sy n
⤷
.Sy n
ʤ顢ʸΥ֤ꤷޤ
.Sy n

.Li L
ޤ
.Li N
Τ줫ꤹ뤳Ȥˤꡢ
ɽͭޤ̵ˤ뤳ȤǤޤ
(ǥեȤǤ̵Ǥ)
ɽͭˤʤäƤϡ1 Ȥβ᤹ȡ
֤ǤβκǾˤʤ褦ɬפ˱ƥ֤Ѳޤ
äơ ``olbc''  ``olb>c'' Τ褦ˡ
``olcb''  ``olc<b'' Τ褦˱դޤ
ɽϡ>  <  O[0123456] ³1 ˤĤƤ̵Ǥ
(ɽǽ
.Tn IBM
BASIC ǤϥݡȤƤޤ)
.It Li >
ߤΥ֤ 1 ľ夲ޤ
.It Li <
ߤΥ֤ 1 IJޤ
.It Ns Li N Sy n

.Sy n
դޤ
.Sy n
 1  84 ߤβĹεȤ 0 Ǥ
³뤳ȤǤޤ
.It Ns Li L Sy n
βĹꤷޤǥեȤ
.Li L4
ǡʬǤ
ͤ 1  64 ޤǤǧޤ
.Li L1
ˡ
.Li L2
ʬˡ
.Li L4
ϻʬˡʤɤꤵޤ
.It Ns Li P Sy n
.Sy n

.Ns Li L Sy n
Ʊͤ˲ᤷǤĤ뤳ȤǤޤ
.Li ~
Ƚ񤯤ȤǤޤ
.It Ns Li T Sy n
1 ʬλʬοꤷޤǥեȤ 120 Ǥ
褯ƥݤβ̾:

.Bd -literal -offset indent
        	ƥ    	ʬ
ȤƤ٤	Larghissimo	
        	Largo    	40-60
         	Larghetto    	60-66
        	Grave       	
        	Lento       	
        	Adagio       	66-76
٤    	Adagietto    	
        	Andante   	76-108
椯餤   	Andantino	
        	Moderato	108-120
®    	Allegretto	
        	Allegro   	120-168
        	Vivace    	
        	Veloce    	
        	Presto    	168-208
ȤƤ®	Prestissimo	
.Ed
.It Li M[LNS]
Ĵꤷޤ
.Li MN
.Ns No ( Li N
 (normal) 򼨤ޤ) ǥեȤǡκǸ 1/8 ٤ߤޤ
쥬 (٤ߤʤ) ˤˤ
.Li ML
򡢥å (1/4 ٤) ˤˤ
.Li MS
Ǥޤ
.El
.Pp
 (Ĥޤ
.Li CDEFGAB
ޤ
.Li N
ޥʸ롼) ˤ (.) ³뤳ȤǤޤ
.\" dot Ȥ . Ǥ뤬ܸǤʤȤ狼ʤ
줾 1 ĤˤĤβĹ 1.5 ܤˤޤ
äơ椬 1 ĤĤϤĤƤʤΤ 3/2 βĹˡ
2 ĤĤ 9/4 βĹˡ
3 ĤĤ 27/8 βĹˤʤޤ
.Pp
ˤϥ顼 (_) ³뤳ȤǤޤ
ˤäƲθʤ뾮ʵ٤ߤơ
򼡤β˥顼ǤĤʤޤ(顼ǽ
.Tn IBM
BASIC ǤϥݡȤƤޤ)
.Pp
ʸζñФΤǡ
ʬΤ˻ȤȤǤޤ
.Sh Х
ơ֥δݤ䡢ȯϡɥ䥿ޥϡɥ
ܤ (ɤ٤θƤʤ) Τᡢ
Τ䥿ߥ󥰤ϿŪ˸̩ǤϤޤ
ĴϤޤ
.Pp
2 İʾưɸŪʲڵȿǤƤޤ
ɸŪˤϡ줾ȾʬĹĹΤǤꡢ
ˤäƽ줿ȾʬǤϤޤ
Ĥޤꡢ椬 1 ĤĤϤĤƤʤΤ 3/2 βĹˡ
2 ĤĤ 7/4 βĹˡ
3 ĤĤ 15/8 βĹˤʤޤ
Ǥ⡢3/2 ܤˤ
.Tn IBM
BASIC ޥ˥奢˵Ƥ뤿ᡢ
ߴΤˤΤޤޤˤƤޤ
.Pp
Ĺ (ƥʪ I/O ֥åĹ) ʸǤϡ
֥åޤ뤿ˡ
νְͤäƲᤵ뤳Ȥޤ
.Sh Ϣե
.Bl -tag -width /dev/speakerxx
.It Pa /dev/speaker
ԡǥХե
.El
.Sh Ϣ
.Xr spkrtest 8
.Sh 
.An Eric S. Raymond Aq esr@snark.thyrsus.com
1990 ǯ 6 
.Sh ܿ
.An Andrew A. Chernov Aq ache@astral.msk.su
.Sh 
.Nm
ǥХ
.Fx 1.0
˽о줷ޤ