11-25-2019, 09:41 AM | #1 |
Human being with feelings
Join Date: Oct 2018
Posts: 17
|
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() Last edited by wwcdgm; 11-26-2019 at 12:05 PM. |
11-25-2019, 10:16 AM | #2 |
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
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 |
Thread Tools | |
Display Modes | |
|
|