-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve all documentation about MIDI support #86693
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2522,61 +2522,66 @@ | |
The maximum number of game controller axes: OpenVR supports up to 5 Joysticks making a total of 10 axes. | ||
</constant> | ||
<constant name="MIDI_MESSAGE_NONE" value="0" enum="MIDIMessage"> | ||
Enum value which doesn't correspond to any MIDI message. This is used to initialize [enum MIDIMessage] properties with a generic state. | ||
Does not correspond to any MIDI message. This is the default value of [member InputEventMIDI.message]. | ||
</constant> | ||
<constant name="MIDI_MESSAGE_NOTE_OFF" value="8" enum="MIDIMessage"> | ||
MIDI note OFF message. Not all MIDI devices send this event; some send [constant MIDI_MESSAGE_NOTE_ON] with zero velocity instead. See the documentation of [InputEventMIDI] for information of how to use MIDI inputs. | ||
MIDI message sent when a note is released. | ||
[b]Note:[/b] Not all MIDI devices send this message; some may send [constant MIDI_MESSAGE_NOTE_ON] with [member InputEventMIDI.velocity] set to [code]0[/code]. | ||
</constant> | ||
<constant name="MIDI_MESSAGE_NOTE_ON" value="9" enum="MIDIMessage"> | ||
MIDI note ON message. Some MIDI devices send this event with velocity zero instead of [constant MIDI_MESSAGE_NOTE_OFF], but implementations vary. See the documentation of [InputEventMIDI] for information of how to use MIDI inputs. | ||
MIDI message sent when a note is pressed. | ||
</constant> | ||
<constant name="MIDI_MESSAGE_AFTERTOUCH" value="10" enum="MIDIMessage"> | ||
MIDI aftertouch message. This message is most often sent by pressing down on the key after it "bottoms out". | ||
MIDI message sent to indicate a change in pressure while a note is being pressed down, also called aftertouch. | ||
</constant> | ||
<constant name="MIDI_MESSAGE_CONTROL_CHANGE" value="11" enum="MIDIMessage"> | ||
MIDI control change message. This message is sent when a controller value changes. Controllers include devices such as pedals and levers. | ||
MIDI message sent when a controller value changes. In a MIDI device, a controller is any input that doesn't play notes. These may include sliders for volume, balance, and panning, as well as switches and pedals. See the [url=https://en.wikipedia.org/wiki/General_MIDI#Controller_events]General MIDI specification[/url] for a small list. | ||
</constant> | ||
<constant name="MIDI_MESSAGE_PROGRAM_CHANGE" value="12" enum="MIDIMessage"> | ||
MIDI program change message. This message sent when the program patch number changes. | ||
MIDI message sent when the MIDI device changes its current instrument (also called [i]program[/i] or [i]preset[/i]). | ||
</constant> | ||
<constant name="MIDI_MESSAGE_CHANNEL_PRESSURE" value="13" enum="MIDIMessage"> | ||
MIDI channel pressure message. This message is most often sent by pressing down on the key after it "bottoms out". This message is different from polyphonic after-touch as it indicates the highest pressure across all keys. | ||
MIDI message sent to indicate a change in pressure for the whole channel. Some MIDI devices may send this instead of [constant MIDI_MESSAGE_AFTERTOUCH]. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unsure between this and |
||
</constant> | ||
<constant name="MIDI_MESSAGE_PITCH_BEND" value="14" enum="MIDIMessage"> | ||
MIDI pitch bend message. This message is sent to indicate a change in the pitch bender (wheel or lever, typically). | ||
MIDI message sent when the value of the pitch bender changes, usually a wheel on the MIDI device. | ||
</constant> | ||
<constant name="MIDI_MESSAGE_SYSTEM_EXCLUSIVE" value="240" enum="MIDIMessage"> | ||
MIDI system exclusive message. This has behavior exclusive to the device you're receiving input from. Getting this data is not implemented in Godot. | ||
MIDI system exclusive (SysEx) message. This type of message is not standardized and it's highly dependent on the MIDI device sending it. | ||
[b]Note:[/b] Getting this message's data from [InputEventMIDI] is not implemented. | ||
</constant> | ||
<constant name="MIDI_MESSAGE_QUARTER_FRAME" value="241" enum="MIDIMessage"> | ||
MIDI quarter frame message. Contains timing information that is used to synchronize MIDI devices. Getting this data is not implemented in Godot. | ||
MIDI message sent every quarter frame to keep connected MIDI devices synchronized. Related to [constant MIDI_MESSAGE_TIMING_CLOCK]. | ||
[b]Note:[/b] Getting this message's data from [InputEventMIDI] is not implemented. | ||
</constant> | ||
<constant name="MIDI_MESSAGE_SONG_POSITION_POINTER" value="242" enum="MIDIMessage"> | ||
MIDI song position pointer message. Gives the number of 16th notes since the start of the song. Getting this data is not implemented in Godot. | ||
MIDI message sent to jump onto a new position in the current sequence or song. | ||
[b]Note:[/b] Getting this message's data from [InputEventMIDI] is not implemented. | ||
</constant> | ||
<constant name="MIDI_MESSAGE_SONG_SELECT" value="243" enum="MIDIMessage"> | ||
MIDI song select message. Specifies which sequence or song is to be played. Getting this data is not implemented in Godot. | ||
MIDI message sent to select a sequence or song to play. | ||
[b]Note:[/b] Getting this message's data from [InputEventMIDI] is not implemented. | ||
</constant> | ||
<constant name="MIDI_MESSAGE_TUNE_REQUEST" value="246" enum="MIDIMessage"> | ||
MIDI tune request message. Upon receiving a tune request, all analog synthesizers should tune their oscillators. | ||
MIDI message sent to request a tuning calibration. Used on analog synthesizers. Most modern MIDI devices do not need this message. | ||
</constant> | ||
<constant name="MIDI_MESSAGE_TIMING_CLOCK" value="248" enum="MIDIMessage"> | ||
MIDI timing clock message. Sent 24 times per quarter note when synchronization is required. | ||
MIDI message sent 24 times after [constant MIDI_MESSAGE_QUARTER_FRAME], to keep connected MIDI devices synchronized. | ||
</constant> | ||
<constant name="MIDI_MESSAGE_START" value="250" enum="MIDIMessage"> | ||
MIDI start message. Start the current sequence playing. This message will be followed with Timing Clocks. | ||
MIDI message sent to start the current sequence or song from the beginning. | ||
</constant> | ||
<constant name="MIDI_MESSAGE_CONTINUE" value="251" enum="MIDIMessage"> | ||
MIDI continue message. Continue at the point the sequence was stopped. | ||
MIDI message sent to resume from the point the current sequence or song was paused. | ||
</constant> | ||
<constant name="MIDI_MESSAGE_STOP" value="252" enum="MIDIMessage"> | ||
MIDI stop message. Stop the current sequence. | ||
MIDI message sent to pause the current sequence or song. | ||
</constant> | ||
<constant name="MIDI_MESSAGE_ACTIVE_SENSING" value="254" enum="MIDIMessage"> | ||
MIDI active sensing message. This message is intended to be sent repeatedly to tell the receiver that a connection is alive. | ||
MIDI message sent repeatedly while the MIDI device is idle, to tell the receiver that the connection is alive. Most MIDI devices do not send this message. | ||
</constant> | ||
<constant name="MIDI_MESSAGE_SYSTEM_RESET" value="255" enum="MIDIMessage"> | ||
MIDI system reset message. Reset all receivers in the system to power-up status. It should not be sent on power-up itself. | ||
MIDI message sent to reset a MIDI device to its default state, as if it was just turned on. It should not be sent when the MIDI device is being turned on. | ||
</constant> | ||
<constant name="OK" value="0" enum="Error"> | ||
Methods that return [enum Error] return [constant OK] when no error occurred. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unsure between this and
"MIDI message sent when a note's pressure changes while it is being pressed down" or similar