Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Reply
 
Thread Tools Display Modes
Old 08-23-2023, 01:14 AM   #201
sockmonkey72
Human being with feelings
 
sockmonkey72's Avatar
 
Join Date: Sep 2021
Location: Berlin
Posts: 1,988
Default

Quote:
Originally Posted by Petey-B View Post
A Real Head Scratcher
In the MIDI Editor I have a script that moves selected notes by an interval; it works most of the time, but in one situation goes horribly awry.
This is the MIDI editor before running the script. The index of the selected note is 9, and overlaps the previous note.



This is the script:
Code:
-- Move the selected note back by an eigth
local _,_,_,s,e = reaper.MIDI_GetNote(take,9)
reaper.MIDI_SetNote(take,9,nil,nil,s-480,e-480,nil,nil,nil,true)
reaper.MIDI_Sort(take)
This is the result:



Notes:
This works correctly IF:
  • the notes aren't overlapped
  • the note is not selected
  • the notes are not the same pitch
  • the note is moved by the arrow keys rather than the script
If I use MIDI_GetNote to check the lengths after, they don't reflect the longer note. It does however appear correctly in the event list.
I haven't come up with a workaround for this, it always seems to happen when the notes fall on the same starting point.

I wasn't sure if this belonged in Bug Reports or Developer's Forum, but I found this thread and it seemed appropriate...
This is a long-standing bug in the high-level API. You can use my drop-in replacement, MIDIUtils (here), which solves it.
__________________
ReaPack Repository: right-click and copy index URL
sockmonkey72 is online now   Reply With Quote
Old 08-25-2023, 01:01 PM   #202
Petey-B
Human being with feelings
 
Petey-B's Avatar
 
Join Date: Jan 2023
Location: Kent Island, MD USA
Posts: 20
Default This Could Take a While

Quote:
Originally Posted by sockmonkey72 View Post
This is a long-standing bug in the high-level API. You can use my drop-in replacement, MIDIUtils (here), which solves it.
First off, thank you for all that work, I found your MIDI Utils repository and got the Lua code.
Unfortunately my scripts are ultimately linked to a TouchOSC control surface, rather than a native GUI that uses a defer loop.
As a result I have to keep my scripts short and autonomous; faders and encoders call them repeatedly (require is not an option).
You can find some examples of these in the thread TouchOSC Widgets for Reaper.
So my plan is to extricate the code needed to make my TouchOSC Note Mover work properly, and merge it into my own (hopefully learning a few things in the process). I've grown quite fond of Lua, it's first class functions and total disregard for data typing reminds me of my days of working in assembler
__________________
Windows is your punishment for wanting a Macintosh...
Petey-B is offline   Reply With Quote
Old 11-07-2023, 09:27 PM   #203
vanceism7
Human being with feelings
 
Join Date: Nov 2022
Posts: 5
Default Midi CC doesn't work until it hits a vertex

Has anyone else seen this glitch? I've been refraining from upgrading my reaper version because it makes playback very annoying.



If I start my track from an area where a midi cc vertex isn't present (like in the screenshot), the cc value is completely ignored until it hits the next vertex, then it starts following along again. I recently upgraded to v7.02 and now v7.03 but looks like this hasn't been fixed yet still.

I wasn't sure if it had been reported yet or not, I couldn't find anything searching the forums and the net so I figured I'd ask
vanceism7 is offline   Reply With Quote
Old 02-02-2024, 05:06 AM   #204
Denys
Human being with feelings
 
Denys's Avatar
 
Join Date: Jan 2011
Location: Tokyo
Posts: 319
Default

It's not technically a bug but when scrolling between MIDI notes using the left and right keys (assigned to "Select previous/next note" in my configuration), shouldn't the view follow the cursor when it gets out of the window?
__________________
Katabui Original Soundtrack
Denys is offline   Reply With Quote
Old 04-08-2024, 05:52 AM   #205
JacobTrial
Human being with feelings
 
Join Date: May 2022
Posts: 2
Default Weird bug at the end of midi items?

Please check the video, there is some "ghost" midi being added at the end of an event and i cannot see it to delete it... it only happens at a certain zoom-out level. Focus on the midi velocity lane where my mouse cursor is.

https://drive.google.com/open?id=1co...0&usp=drive_fs
JacobTrial 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 11:20 PM.


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