25
25
} ,
26
26
] ,
27
27
github : "WebAudio/web-midi-api" ,
28
- wg : "Audio Working Group" ,
29
- wgURI : "https://www.w3.org/2011/audio/" ,
30
- wgPublicList : "public-audio" ,
31
- wgPatentURI : "https://www.w3.org/2004/01/pp-impl/46884/status" ,
28
+ group : "wg/audio" ,
32
29
previousPublishDate : "2013-11-26" ,
33
30
previousMaturity : "WD" ,
34
31
xref : {
@@ -513,13 +510,9 @@ <h2 id="MIDIAccess">
513
510
< li > Let |port:MIDIPort| be the {{MIDIPort}} corresponding to the
514
511
newly-available, or the existing port.
515
512
</ li >
516
- < li > Let |event:MIDIConnectionEvent| be a newly constructed
517
- {{MIDIConnectionEvent}}, with the {{MIDIConnectionEvent/port}}
518
- attribute set to the port.
519
- </ li >
520
513
< li >
521
514
< a > Fire an event</ a > named "statechange" at the {{MIDIAccess}},
522
- using the |event| as the event object .
515
+ using {{MIDIConnectionEvent}} with {{MIDIConnectionEvent/port}} set to |port| .
523
516
</ li >
524
517
</ ol >
525
518
</ dd >
@@ -907,22 +900,16 @@ <h2 id="MIDIPort">
907
900
< ol >
908
901
< li >
909
902
< p >
910
- Let < code > port</ code > be the {{MIDIPort}}.
911
- </ p >
912
- </ li >
913
- < li >
914
- < p >
915
- Let < code > event</ code > be a newly constructed
916
- {{MIDIConnectionEvent}}, with the < code > port</ code > attribute set
917
- to the port.
903
+ Let |port:MIDIPort| be the {{MIDIPort}}.
918
904
</ p >
919
905
</ li >
920
906
< li >
921
907
< p >
922
908
< a > Fire an event</ a > named < a data-lt =
923
909
"MIDIPort.onstatechange "> statechange</ a > at the {{MIDIPort}}, and
924
910
< a data-lt ="MIDIAccess.onstatechange "> statechange</ a > at the
925
- {{MIDIAccess}}, using the < code > event</ code > as the event object.
911
+ {{MIDIAccess}}, using {{MIDIConnectionEvent}} with the {{MIDIConnectionEvent/port}} attribute set
912
+ to |port|
926
913
</ p >
927
914
</ li >
928
915
</ ol >
@@ -962,7 +949,7 @@ <h3 id="MIDIInput">
962
949
< ol >
963
950
< li >
964
951
< p >
965
- Let < code > port</ code > be the {{MIDIInput}}.
952
+ Let | port:MIDIInput| be the {{MIDIInput}}.
966
953
</ p >
967
954
</ li >
968
955
< li >
@@ -974,21 +961,14 @@ <h3 id="MIDIInput">
974
961
</ li >
975
962
< li >
976
963
< p >
977
- Let < code > event</ code > be a newly constructed
978
- < a > MIDIMessageEvent </ a > , with the < code > timestamp </ code >
964
+ < a > Fire an event</ a > named "midimessage" at
965
+ |port|, using {{MIDIMessageEvent}} with the {{Event/timeStamp}}
979
966
attribute set to the time the message was received by the
980
- system, and with the < code > data </ code > attribute set to a
981
- Uint8Array of MIDI data bytes representing a single MIDI
967
+ system, and with the {{MIDIMessageEvent/data}} attribute set to a
968
+ {{ Uint8Array}} of MIDI data bytes representing a single MIDI
982
969
message.
983
970
</ p >
984
971
</ li >
985
- < li >
986
- < p >
987
- < a > Fire an event</ a > named "midimessage" at the
988
- < code > port</ code > , using the < code > event</ code > as the event
989
- object.
990
- </ p >
991
- </ li >
992
972
</ ol >
993
973
< p >
994
974
It is specifically noted that MIDI System Real-Time Messages may
0 commit comments