MIDIRX registration added to midi_send interface#343
Merged
Conversation
Contributor
Contributor
Member
Author
|
event rx? |
- Move grxm() calls and decode result tables from grid_lua_start_vm into init.lua - Add rx_type and rx_feat global tables as named constants for grxm() calls - Add grid_hwcfg_module_has_lcd() and ghaslcd() Lua API - Gate EVENTVIEW handling on ghaslcd() in init.lua - Add rx mode gating to grid_decode_eventview_to_ui - Zero-initialize rx_mode array with memset in grid_sys_init Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.


Testing MIDIRX functionality
Testing RTM (sync) messages.
Expected messages:
Typical RTM values sent by MIDI devices:
0xFA=Start, 0xFB=Continue, 0xFC=Stop, 0xF8=Clock, 0xFE=Active Sensing, 0xFF=Reset.
Deprecated interfaces
Non functional legacy midirx_enabled and midirx_sync interface are now removed
Midi RX gating
Received midi channel voice, sysex and RTM messages can be gated separately to allow the user to only enable what is actually used.
By default midi channel voice messages are allowed to be transported and handled by midirx_cb, all other types are disabled by default.
grxm(rx_type, mode_bm) --minified version available currently in editor
rx_mode(rx_type, mode_bm) --human version available in next exitor release
rx_type is an integer with valid values of 0: MIDIVOICE, 1: MIDISYSEX, 2: MIDIRTM
mode is a bitmap with the following valid combinations:
Decimal 0: Binary 0b00: don't forward from USB and don't handle in Lua CB
Decimal 1: Binary 0b01: don't forward from USB, but handle in Lua CB
Decimal 2: Binary 0b10: forward from USB but don't handle in Lua CB
Decimal 3: Binary 0b11: do forward from USB and handle in Lua CB