summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorvoidshine <skylark@nightshade>2022-09-17 11:29:41 -0700
committervoidshine <voidshine@outlook.com>2022-10-11 12:40:28 -0700
commitf0f72b313236b3cd8793e6fe7487094d9a04694a (patch)
tree36698b62807156a733a489764a092f94d0edb9e3 /doc
parent4ab3fdcda07bf700b33eb7c85f53826b2464c02f (diff)
Fix MIDI note-on events being converted to note-off events
Update documentation with note about MIDI velocity interpretation
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/InputEventMIDI.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/classes/InputEventMIDI.xml b/doc/classes/InputEventMIDI.xml
index 2af88149b6..04d8cab065 100644
--- a/doc/classes/InputEventMIDI.xml
+++ b/doc/classes/InputEventMIDI.xml
@@ -90,7 +90,7 @@
The pressure of the MIDI signal. This value ranges from 0 to 127. For many devices, this value is always zero.
</member>
<member name="velocity" type="int" setter="set_velocity" getter="get_velocity" default="0">
- The velocity of the MIDI signal. This value ranges from 0 to 127. For a piano, this corresponds to how quickly the key was pressed, and is rarely above about 110 in practice.
+ The velocity of the MIDI signal. This value ranges from 0 to 127. For a piano, this corresponds to how quickly the key was pressed, and is rarely above about 110 in practice. Note that some MIDI devices may send a [constant MIDI_MESSAGE_NOTE_ON] message with zero velocity and expect this to be treated the same as a [constant MIDI_MESSAGE_NOTE_OFF] message, but device implementations vary so Godot reports event data exactly as received.
</member>
</members>
</class>