aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/midiaccess/index.html
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/api/midiaccess/index.html
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/zh-cn/web/api/midiaccess/index.html')
-rw-r--r--files/zh-cn/web/api/midiaccess/index.html56
1 files changed, 56 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/midiaccess/index.html b/files/zh-cn/web/api/midiaccess/index.html
new file mode 100644
index 0000000000..695470ce94
--- /dev/null
+++ b/files/zh-cn/web/api/midiaccess/index.html
@@ -0,0 +1,56 @@
+---
+title: MIDIAccess
+slug: Web/API/MIDIAccess
+tags:
+ - API
+ - Web MIDI API
+ - 引用
+ - 接口
+translation_of: Web/API/MIDIAccess
+---
+<p>{{SeeCompatTable}}{{APIRef("Web MIDI API")}} </p>
+
+<p><a href="/en-US/docs/Web/API/Web_MIDI_API">Web MIDI API</a> 的 <strong><code>MIDIAccess</code></strong> 接口提供查询 MIDI 输入和输出设备的列表以及获取这些设备的使用权限。</p>
+
+<h2 id="属性">属性</h2>
+
+<dl>
+ <dt>{{domxref("MIDIAccess.inputs")}} {{readonlyinline}}</dt>
+ <dd>返回 {{domxref("MIDIInputMap")}} 的实例,以提供对任何可用的 MIDI 输入端口的访问权限。</dd>
+ <dt>{{domxref("MIDIAccess.outputs")}} {{readonlyinline}}</dt>
+ <dd>返回 {{domxref("MIDIOutputMap")}} 的实例,以提供任何可用的 MIDI 输出端口的访问权限。</dd>
+ <dt>{{domxref("MIDIAccess.sysexEnabled")}} {{readonlyinline}}</dt>
+ <dd>一个布尔型的属性,指明系统是否对现有的 MIDIAccess 实例支持。</dd>
+</dl>
+
+<h3 id="事件处理程序">事件处理程序</h3>
+
+<dl>
+ <dt>{{domxref("MIDIAccess.onstatechange")}}</dt>
+ <dd>当添加新的 MIDI 端口或者一个存在的端口状态发生改变时被调用。</dd>
+</dl>
+
+<h2 id="例子">例子</h2>
+
+
+
+<h2 id="标准">标准</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">Specification</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comment</th>
+ </tr>
+ <tr>
+ <td>{{SpecName('WebMIDI API','#midiaccess-interface')}}</td>
+ <td>{{Spec2('WebMIDI API')}}</td>
+ <td>Initial definition.</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
+
+<div>{{Compat("api.MIDIAccess")}}</div>