|
|
|
08-02-2015, 07:45 PM
|
#1
|
Human being with feelings
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 3,960
|
Even empty script linked to mouse modifier move edit cursor
I wrote script for adding notes with velocity 127.
PHP Code:
velocity = 127
midieditor = reaper.MIDIEditor_GetActive()
take = reaper.MIDIEditor_GetTake(midieditor)
reaper.MIDIEditor_OnCommand(midieditor, 40001)
windowOut, segmentOut, detailsOut = reaper.BR_GetMouseCursorContext()
identifier, inlineEditorOut, noteRowOut, ccLaneOut, ccLaneValOut, ccLaneIdOut = reaper.BR_GetMouseCursorContext_MIDI()
position_temp = reaper.BR_GetMouseCursorContext_Position()
position = reaper.SnapToGrid(0, position_temp)
retval, notecntOut, ccevtcntOut, textsyxevtcntOut = reaper.MIDI_CountEvts(take)
for i = 1, notecntOut do
retval, selectedOut, mutedOut, startppqposOut, endppqposOut, chanOut, pitchOut, velOut = reaper.MIDI_GetNote(take, i-1)
note_position = reaper.MIDI_GetProjTimeFromPPQPos(take, startppqposOut)
if note_position == position and pitchOut == noteRowOut then
reaper.MIDI_SetNote(take, i-1, selectedOut, mutedOut, startppqposOut, endppqposOut, chanOut, pitchOut, velocity, false)
end
end
reaper.MIDI_Sort(take)
When I put this as an action to Mouse modifiers/MIDI Piano roll/left click, it moves edit cursor.
It also moves cursor even if script is empty.
Vote here.
Last edited by mpl; 08-03-2015 at 05:21 AM.
|
|
|
08-03-2015, 05:15 AM
|
#2
|
Human being with feelings
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
|
I can confirm this.
Here shift + leftclick is mapped to a script selecting notes right of mouse cursor, when I trigger this edit cursor is also moving.
https://i.imgur.com/6dawCCr.gif
(ignore the 'activity indicator' title)
Last two seconds in the gif is left click alone (mapped to insert note), just to show this is working correctly and doesn't move the edit cursor.
I've also confirmed in the tracker.
btw. it's a good idea for future reports to also link to the tracker entry, so people can find more easy and confirm.
It's here:
http://forum.cockos.com/project.php?issueid=5643
Last edited by nofish; 08-03-2015 at 05:20 AM.
|
|
|
08-03-2015, 05:22 AM
|
#3
|
Human being with feelings
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 3,960
|
Thanks, I forgot to share vote link.
|
|
|
03-09-2016, 11:27 AM
|
#4
|
Human being with feelings
Join Date: May 2014
Posts: 160
|
I see this bug too
|
|
|
10-15-2018, 03:38 AM
|
#5
|
Human being with feelings
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
|
bump, because seeing a possibly similar issue in arrange being currently adressed.
https://forum.cockos.com/showthread.php?t=190555
|
|
|
04-24-2019, 11:10 AM
|
#6
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
I think "moving the edit cursor" happens, when releasing the mouse button.
So it seems, that it's out of our control. Would really be great, if this could be avoided.
|
|
|
05-29-2021, 05:34 AM
|
#7
|
Human being with feelings
Join Date: Nov 2019
Posts: 539
|
I just ran into this too. Would be lovely if it could get fixed.
|
|
|
05-29-2021, 08:52 AM
|
#8
|
Human being with feelings
Join Date: Jul 2010
Location: Slovakia
Posts: 2,588
|
+1 bump.
|
|
|
05-30-2021, 01:26 AM
|
#9
|
Human being with feelings
Join Date: Nov 2019
Posts: 539
|
On the other hand, I want the option for the midi editor to move the edit cursor with left-click without deselecting all notes.
With the current behavior, I can simple put an empty script on left-click in piano roll and get that.
So if you fix this, could you also please add the mouse modifier "move edit cursor" (and don't deselect all notes) to Midi piano roll -> left click
|
|
|
08-11-2023, 03:22 PM
|
#10
|
Human being with feelings
Join Date: Jun 2019
Posts: 2,872
|
This bug affects not only the MIDI editor but also the arrange view. Here an example that I run into:
https://forum.cockos.com/showthread.php?t=281527
I hope this can get fixed and edit cursor moves become optional.
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 04:14 AM.
|