[Bug 20254] Add code examples

https://www.w3.org/Bugs/Public/show_bug.cgi?id=20254

Florian Bomers <w3c_bugz@bome.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |w3c_bugz@bome.com

--- Comment #5 from Florian Bomers <w3c_bugz@bome.com> ---
some remarks on the code examples:

9.1
> function success( midiAccess )

should be named

> function onMIDISuccess( midiAccess )


9.4
> output.send( [0x90, 60, 0x00], window.performance.now() + 1000.0 ); 
> // note off, middle C, zero velocity, timestamp = now + 1000ms.

This is actually a Note On message with 0 velocity, which is equivalent to a
Note Off message with 64 velocity (if I recall correctly). It's probably easier
to understand for MIDI newbies to use the actual Note Off message:

> output.send( [0x80, 60, 0x00], window.performance.now() + 1000.0 ); 
> // note off, middle C, zero velocity, timestamp = now + 1000ms.


9.5
same as 9.1

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Saturday, 8 December 2012 11:06:05 UTC