This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 20435 - Don't inline arrays in send() calls in examples
Summary: Don't inline arrays in send() calls in examples
Status: CLOSED FIXED
Alias: None
Product: AudioWG
Classification: Unclassified
Component: MIDI API (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: TBD
Assignee: Chris Wilson
QA Contact: public-audio
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-18 18:19 UTC by Chris Wilson
Modified: 2013-01-18 15:50 UTC (History)
1 user (show)

See Also:


Attachments

Description Chris Wilson 2012-12-18 18:19:01 UTC
The spec has examples like

output.send( [0x90, 60, 0x7f] );

We should really pull the array declarations out of inline, e.g.

var data = [0x90, 60, 0x7f];
output.send( data );

to highlight that it is an array parameter.
Comment 1 Chris Wilson 2012-12-26 18:18:21 UTC
Changed the first example to non-inlined, but kept the second one as an example of how to make it easier.

https://github.com/WebAudio/web-midi-api/commit/9c34ae09b378cd34d5e43ca49916ff79427e5402
Comment 2 Olivier Thereaux 2013-01-18 15:50:55 UTC
Batch-closing RESOLVED MIDI issues. Reminder: midi issues now tracked at https://github.com/WebAudio/web-midi-api/issues