03-11-2023, 06:41 PM | #1 |
Human being with feelings
Join Date: Jan 2019
Location: China
Posts: 728
|
The operation selected in the V6.77 event list is too slow.
The operation selected in the V6.77 event list is too slow.
This brings many errors to the script operation. At present, you must wait about 0.5 seconds after selecting the operation to run the script correctly. I wrote a script to test the reading speed. The same operation is normal in V6.75. I have sent 2 emails and I don't know why I haven't received a reply. Code:
editor = reaper.MIDIEditor_GetActive() take = reaper.MIDIEditor_GetTake(editor) integer_old = -1 function loop() integer = reaper.MIDI_EnumSelEvts(take, -1) retval, selected, muted, ppqpos, msg = reaper.MIDI_GetEvt(take, integer) if integer ~= integer_old then msg1 = string.byte(msg, 1) msg2 = string.byte(msg, 2) msg3 = string.byte(msg, 3) reaper.ShowConsoleMsg(integer .. ',' .. msg1 .. ',' .. msg2 .. ',' .. msg3 .. '\n') integer_old = integer end reaper.defer(loop) end reaper.defer(loop) |
03-11-2023, 07:05 PM | #2 |
Human being with feelings
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 4,138
|
Confirmed on Win10_x64
|
03-14-2023, 08:32 AM | #3 |
Human being with feelings
Join Date: Jan 2019
Location: China
Posts: 728
|
????
|
03-15-2023, 02:20 PM | #4 |
Human being with feelings
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 4,138
|
If I run script while in Piano or Notation mode then its just as fast as it was in v6.75, but when in Event List mode (and if I'm testing correctly) I'm seeing a 2-3 second delay before the return value from MIDI_EnumSelEvt() changes.
Win10, REAPER v6.78, x64 (10 yr old 4GHz CPU) Good Luck! |
03-15-2023, 06:30 PM | #5 |
Human being with feelings
Join Date: Jan 2019
Location: China
Posts: 728
|
Thank you for your test. The event list has not been involved in recent updates. I don't know why this strange bug occurs.
|
04-03-2023, 06:26 PM | #6 |
Human being with feelings
Join Date: Jan 2019
Location: China
Posts: 728
|
This bug has already affected normal work. Please identify the cause.
|
04-03-2023, 07:42 PM | #7 |
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 16,126
|
There were changes to avoid updating the underlying MIDI state on every selection change of the list editor, because people navigating the list with the error keys would introduce a ton of undo points.
Perhaps we can make that API get the selection status from the list, if the listview is open. Or something. |
Thread Tools | |
Display Modes | |
|
|