@@ -510,13 +510,9 @@ <h2 id="MIDIAccess">
510
510
< li > Let |port:MIDIPort| be the {{MIDIPort}} corresponding to the
511
511
newly-available, or the existing port.
512
512
</ li >
513
- < li > Let |event:MIDIConnectionEvent| be a newly constructed
514
- {{MIDIConnectionEvent}}, with the {{MIDIConnectionEvent/port}}
515
- attribute set to the port.
516
- </ li >
517
513
< li >
518
514
< a > Fire an event</ a > named "statechange" at the {{MIDIAccess}},
519
- using the |event| as the event object .
515
+ using {{MIDIConnectionEvent}} with {{MIDIConnectionEvent/port}} set to |port| .
520
516
</ li >
521
517
</ ol >
522
518
</ dd >
@@ -904,22 +900,16 @@ <h2 id="MIDIPort">
904
900
< ol >
905
901
< li >
906
902
< p >
907
- Let < code > port</ code > be the {{MIDIPort}}.
908
- </ p >
909
- </ li >
910
- < li >
911
- < p >
912
- Let < code > event</ code > be a newly constructed
913
- {{MIDIConnectionEvent}}, with the < code > port</ code > attribute set
914
- to the port.
903
+ Let |port:MIDIPort| be the {{MIDIPort}}.
915
904
</ p >
916
905
</ li >
917
906
< li >
918
907
< p >
919
908
< a > Fire an event</ a > named < a data-lt =
920
909
"MIDIPort.onstatechange "> statechange</ a > at the {{MIDIPort}}, and
921
910
< a data-lt ="MIDIAccess.onstatechange "> statechange</ a > at the
922
- {{MIDIAccess}}, using the < code > event</ code > as the event object.
911
+ {{MIDIAccess}}, using {{MIDIConnectionEvent}} with the {{MIDIConnectionEvent/port}} attribute set
912
+ to |port|
923
913
</ p >
924
914
</ li >
925
915
</ ol >
@@ -959,7 +949,7 @@ <h3 id="MIDIInput">
959
949
< ol >
960
950
< li >
961
951
< p >
962
- Let < code > port</ code > be the {{MIDIInput}}.
952
+ Let | port:MIDIInput| be the {{MIDIInput}}.
963
953
</ p >
964
954
</ li >
965
955
< li >
@@ -971,21 +961,14 @@ <h3 id="MIDIInput">
971
961
</ li >
972
962
< li >
973
963
< p >
974
- Let < code > event</ code > be a newly constructed
975
- < 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}}
976
966
attribute set to the time the message was received by the
977
- system, and with the < code > data </ code > attribute set to a
978
- 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
979
969
message.
980
970
</ p >
981
971
</ li >
982
- < li >
983
- < p >
984
- < a > Fire an event</ a > named "midimessage" at the
985
- < code > port</ code > , using the < code > event</ code > as the event
986
- object.
987
- </ p >
988
- </ li >
989
972
</ ol >
990
973
< p >
991
974
It is specifically noted that MIDI System Real-Time Messages may
0 commit comments