Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Reply
 
Thread Tools Display Modes
Old 03-11-2023, 06:41 PM   #1
dangguidan
Human being with feelings
 
Join Date: Jan 2019
Location: China
Posts: 728
Default 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)
dangguidan is offline   Reply With Quote
Old 03-11-2023, 07:05 PM   #2
Edgemeal
Human being with feelings
 
Edgemeal's Avatar
 
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 4,138
Default

Confirmed on Win10_x64
Edgemeal is offline   Reply With Quote
Old 03-14-2023, 08:32 AM   #3
dangguidan
Human being with feelings
 
Join Date: Jan 2019
Location: China
Posts: 728
Default

????
dangguidan is offline   Reply With Quote
Old 03-15-2023, 02:20 PM   #4
Edgemeal
Human being with feelings
 
Edgemeal's Avatar
 
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 4,138
Default

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!
Edgemeal is offline   Reply With Quote
Old 03-15-2023, 06:30 PM   #5
dangguidan
Human being with feelings
 
Join Date: Jan 2019
Location: China
Posts: 728
Default

Thank you for your test. The event list has not been involved in recent updates. I don't know why this strange bug occurs.
dangguidan is offline   Reply With Quote
Old 04-03-2023, 06:26 PM   #6
dangguidan
Human being with feelings
 
Join Date: Jan 2019
Location: China
Posts: 728
Default

This bug has already affected normal work. Please identify the cause.
dangguidan is offline   Reply With Quote
Old 04-03-2023, 07:42 PM   #7
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 16,126
Default

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.
Justin is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:23 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.