Skip to content

Commit

Permalink
SUKU highwater logic moved
Browse files Browse the repository at this point in the history
  • Loading branch information
SukuWc committed Nov 4, 2024
1 parent ffabcf4 commit bf59966
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion grid_common/grid_ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,8 @@ void grid_port_process_ui_UNSAFE(struct grid_ui_model* ui) {
// (table)
if (eve->type == GRID_PARAMETER_EVENT_MIDIRX) {

grid_lua_dostring(&grid_lua_state, "local FOO = table.remove(midi_fifo, 1) midi.ch = FOO[1] "
grid_lua_dostring(&grid_lua_state, "if #midi_fifo > midi_fifo_highwater then midi_fifo_highwater = #midi_fifo end"
"local FOO = table.remove(midi_fifo, 1) midi.ch = FOO[1] "
"midi.cmd = FOO[2] midi.p1 = FOO[3] midi.p2 = FOO[4]");
}

Expand Down

0 comments on commit bf59966

Please sign in to comment.