|
|
|
08-23-2023, 01:14 AM
|
#201
|
Human being with feelings
Join Date: Sep 2021
Location: Berlin
Posts: 2,089
|
Quote:
Originally Posted by Petey-B
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.
|
|
|
08-25-2023, 01:01 PM
|
#202
|
Human being with feelings
Join Date: Jan 2023
Location: Kent Island, MD USA
Posts: 20
|
This Could Take a While
Quote:
Originally Posted by sockmonkey72
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...
|
|
|
11-07-2023, 09:27 PM
|
#203
|
Human being with feelings
Join Date: Nov 2022
Posts: 5
|
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
|
|
|
02-02-2024, 05:06 AM
|
#204
|
Human being with feelings
Join Date: Jan 2011
Location: Tokyo
Posts: 338
|
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?
|
|
|
04-08-2024, 05:52 AM
|
#205
|
Human being with feelings
Join Date: May 2022
Posts: 2
|
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
|
|
|
07-12-2024, 03:30 AM
|
#206
|
Human being with feelings
Join Date: Jul 2022
Posts: 214
|
My bug report didn't get any response. If anybody could be so kind and test it, it would be much appreciated.
MIDI Editor bug: Using the event properties dialog on notes destroys selected cc events and turns them into notes
With "CC selection follows note selection" set to ON,
-select some notes with cc events "below" them
-open Event Properties.
-select "Notes" from dropdown
-edit velocity field
>selected CCs are converted to notes with velocity values that equal the former CC values modified with the edit value. The note number of the notes getting created by the bug is the CC number of the CC events getting deleted by the bug. E.g cc 4 events become E-1 notes.
If anybody could either confirm this or tell me what I got wrong, that would be awesome.
.gif of the bug, more material in the original thread:
|
|
|
07-12-2024, 03:38 AM
|
#207
|
Human being with feelings
Join Date: Sep 2021
Location: Berlin
Posts: 2,089
|
Quote:
Originally Posted by Holzwurm
My bug report didn't get any response. If anybody could be so kind and test it, it would be much appreciated.
MIDI Editor bug: Using the event properties dialog on notes destroys selected cc events and turns them into notes
With "CC selection follows note selection" set to ON,
-select some notes with cc events "below" them
-open Event Properties.
-select "Notes" from dropdown
-edit velocity field
>selected CCs are converted to notes with velocity values that equal the former CC values modified with the edit value. The note number of the notes getting created by the bug is the CC number of the CC events getting deleted by the bug. E.g cc 4 events become E-1 notes.
If anybody could either confirm this or tell me what I got wrong, that would be awesome.
.gif of the bug, more material in the original thread:
|
I didn't test this, but based on your description, it's expected behavior. Event Properties applies to all selected events, and you are changing the event type of all selected events to Notes. Note-on events have 2 bytes of data { notenum, velocity }. CC events also have 2 bytes of data { ccnum, value }, so it's just doing the best translation of the events it can.
|
|
|
07-12-2024, 03:48 AM
|
#208
|
Human being with feelings
Join Date: Jul 2022
Posts: 214
|
Thank you so much, I misunderstood and assumed the event type field was a filter instead of the new event type. Now it all makes sense, vielen Dank!
|
|
|
07-23-2024, 11:30 AM
|
#209
|
Human being with feelings
Join Date: Feb 2019
Location: Austin, TX
Posts: 422
|
Requesting that this issue be added under Mouse modifiers and editing actions.
where MIDI note >> left click >> Cmd >> Toggle note selection
stops working if
MIDI note >> left drag >> Cmd >> Edit note velocity
|
|
|
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 11:40 AM.
|