Go Back   Cockos Incorporated Forums > Projects > Deprecated REAPER issue tracker > Open Bug

Even empty script linked to mouse modifier move edit cursor Issue Tools
issueid=5643 08-02-2015 07:46 PM
mpl mpl is offline
Human being with feelings
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(midieditor40001)
windowOutsegmentOutdetailsOut reaper.BR_GetMouseCursorContext()
identifierinlineEditorOutnoteRowOutccLaneOutccLaneValOutccLaneIdOut reaper.BR_GetMouseCursorContext_MIDI()
position_temp reaper.BR_GetMouseCursorContext_Position()
position reaper.SnapToGrid(0position_temp)
retvalnotecntOutccevtcntOuttextsyxevtcntOut reaper.MIDI_CountEvts(take)

for 
1notecntOut do
  
retvalselectedOutmutedOutstartppqposOutendppqposOutchanOutpitchOutvelOut reaper.MIDI_GetNote(takei-1)
  
note_position reaper.MIDI_GetProjTimeFromPPQPos(takestartppqposOut)
  if 
note_position == position and pitchOut == noteRowOut then
    reaper
.MIDI_SetNote(takei-1selectedOutmutedOutstartppqposOutendppqposOutchanOutpitchOutvelocityfalse)     
  
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.

Discussion.
Issue Details
Issue Type Open Bug
Project Deprecated REAPER issue tracker
Category Editing behavior
Status Unconfirmed
Priority 1 - Highest
Affected Version 4.78
Fixed Version (none)
Users able to reproduce bug 3
Users unable to reproduce bug 0
Assigned Users (none)
Tags (none)

Reply

Issue Tools
Subscribe to this issue

All times are GMT -7. The time now is 07:44 PM.


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