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

Reply
 
Thread Tools Display Modes
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, 702 views)

Last edited by wwcdgm; 11-26-2019 at 12:05 PM.
wwcdgm is offline   Reply With Quote
Old 11-25-2019, 10:16 AM   #2
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

I can confirm this on Linux as well (Ubuntu Studio 19.something).
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :(
Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate
Lokasenna 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 04:49 AM.


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