1)指针
--------------------------------------------------
--
ripa_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, 39408) -- Set default mouse modifier action for "MIDI CC event left click/drag" to "Edit CC events"
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()
--------------------------------------------------
2)画笔
--------------------------------------------------
--
ripa_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, 39408) -- Set default mouse modifier action for "MIDI CC event left click/drag" to "Edit CC events"
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()
--------------------------------------------------
把上面两份代码存为 .lua 脚本文件,在动作列表导入这两个脚本。可以放到工具栏或者设置快捷键,用于随时切换。
选择和画笔功能不是单纯一个步骤就行了,上面的脚本对鼠标修饰符做了多个设置以应对不同的需要,比如:
钢琴卷帘窗的左键拖拽:
在"
选择"模式下为框选事件,在"
画笔"模式下为写入音符,在"
擦除"模式下则是删除音符。
使用脚本快速切换鼠标修饰符设置,省去了手动设置的麻烦。
楼主也可以参考CUBASE定制版,顶部工具栏加入了一份 Cakewalk SDEB 快捷切换,其中两个就是指针和画笔:
http://www.audiobar.cn/forum.php?mod=redirect&goto=findpost&ptid=533416&pid=5276704
图片演示为 5.99 -
CUBASE定制版,直接按快捷键即可轻松切换鼠标修饰符的设置:
S: 选择
D: 画笔
E: 擦除
B: 预览MIDI事件
本帖最后由 Ripa 于 19-12-6 02:29 编辑
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x