Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Pre-Release Discussion

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 11-25-2019, 09:41 AM   #1
wwcdgm
Human being with feelings
 
Join Date: Oct 2018
Posts: 17
Default v6.0rc4 "Set mouse modifier..." command is still very slow (FIXED)



The example script uses only the "Set Mouse Modifier..." command. They run very slowly, and they cannot respond in time when switching quickly between these three modes. Probably delayed by 2 seconds.

It can be painful to write notes.

This problem exists in Windows 10, I have tried other Windows 10 systems, they are all very slow.

Code:
--Select.lua
reaper.PreventUIRefresh(1)
HWND = reaper.MIDIEditor_GetActive()
reaper.MIDIEditor_OnCommand(HWND, 39707) -- Set default mouse modifier action for "MIDI piano roll left click" to "Deselect all notes"
reaper.MIDIEditor_OnCommand(HWND, 39487) -- Set default mouse modifier action for "MIDI piano roll left drag" to "Marquee select notes"
reaper.MIDIEditor_OnCommand(HWND, 39354) -- Set default mouse modifier action for "MIDI CC lane left drag" to "Edit selected CC events if any, otherwise draw/edit" (factory default)
reaper.MIDIEditor_OnCommand(HWND, 39402) -- Set default mouse modifier action for "MIDI CC event left click/drag" to "Draw/edit CC events ignoring selection"
reaper.MIDIEditor_OnCommand(HWND, 39673) -- Set default mouse modifier action for "MIDI note left click" to "Select note"
reaper.MIDIEditor_OnCommand(HWND, 39289) -- Set default mouse modifier action for "MIDI note left drag" to "Move note" (factory default)
reaper.PreventUIRefresh(-1)
reaper.UpdateArrange()
Code:
--Draw.lua
reaper.PreventUIRefresh(1)
HWND = reaper.MIDIEditor_GetActive()
reaper.MIDIEditor_OnCommand(HWND, 39708) -- Set default mouse modifier action for "MIDI piano roll left click" to "Insert note"
reaper.MIDIEditor_OnCommand(HWND, 39481) -- Set default mouse modifier action for "MIDI piano roll left drag" to "Insert note, drag to extend or change pitch" (factory default)
reaper.MIDIEditor_OnCommand(HWND, 39354) -- Set default mouse modifier action for "MIDI CC lane left drag" to "Edit selected CC events if any, otherwise draw/edit" (factory default)
reaper.MIDIEditor_OnCommand(HWND, 39673) -- Set default mouse modifier action for "MIDI note left click" to "Select note"
reaper.MIDIEditor_OnCommand(HWND, 39289) -- Set default mouse modifier action for "MIDI note left drag" to "Move note" (factory default)
reaper.PreventUIRefresh(-1)
reaper.UpdateArrange()
Attached Images
File Type: gif 456.gif (59.9 KB, 601 views)

Last edited by wwcdgm; 11-26-2019 at 12:05 PM.
wwcdgm is offline   Reply With Quote
 

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 08:31 AM.


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