|
|
|
01-20-2019, 11:12 AM
|
#121
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
|
There's something else wrong with the quantize script.
When the item/take starts not on the beat or measure, the
notes are quantized to the wrong grid. I have to find out first,
how to fix that.
Nevertheless, because I needed these for my work, some new scripts:
Open MIDI editor and zoom to 5 measures (zoom center is edit cursor) (updated name)
Open MIDI editor and zoom to content
Zoom MIDI editor to content
Go to end marker
Go to start marker
Zoom to start and end marker
Details will follow shortly on the main page.
Last edited by _Stevie_; 01-20-2019 at 01:00 PM.
|
|
|
01-24-2019, 11:12 AM
|
#122
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
|
New script:
Toggle resources window and focus search box
Nothing fancy really, it just opens the resource window and puts the focus on the search box.
On my quest for the perfect track template "database", I finally settled with the resources window, because you can also load track templates to existing tracks (without creating a new one). So, the search box focus makes it a bit faster to immediately search for a track template.
Info: the script is a toggle, however, when the search box is focused, the assigned shortcut might not work, until you leave the search box. Another way to close the window anytime is pressing ESC.
|
|
|
02-03-2019, 12:51 PM
|
#123
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
|
New scripts:
Hide tracks without items (TCP)
Hide tracks without items and ignore folder tracks (TCP)
|
|
|
02-04-2019, 05:58 PM
|
#124
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
|
Quantize scripts updated:
Now I finally fixed the quantize scripts. I included some different mechanisms.
While using them myself I found it unfortunate that only selected notes were quantized from the arrangement. Usually, when you don't see what is selected, you want to quantize the whole take. So now this is fixed, means:
MIDI editor and inline editor:
- if nothing is selected, everything will be quantized
- if there are selected notes, only selected notes will be quantized
Arrangement:
- here always ALL notes will be quantized, regardless of the note selection
However, this change led to some new code for the inline editor. If you want to quantize in the inline editor, you MUST hover the mouse of the editor. That's the only way for scripts to know, which take you want to quantize, since you can have as many inline editors, as you want.
And another change: I had to get rid of the swing scripts, something is not working. Apparently reaper.BR_GetClosestGridDivision() does not work in conjunction with swing. I'll have to investigate, but for the time being, the scripts have been removed.
The scripts have already been uploaded to my repo, however, they aren't listed, yet (have this issue more often than, I'd like to). So a bit patience, until they appear in ReaPack.
|
|
|
04-02-2019, 01:17 PM
|
#125
|
Human being with feelings
Join Date: Mar 2019
Posts: 34
|
Hi Stevie,
I'm a newbie in Reaper having been converted from FL Studio and so far I'm amazed with endless capabilities of this wonderful D.A.W. Recently I started working mostly on orchestral / hybrid staff, and that's the reason I find your midi editing scripts tremendously helpful as they address almost all my needs.
One small but quite annoying issue I have been encountering though, which is related to your "Change note position by grid - mousewheel" script. Please see it below in the attached gif. Whenever a midi note collides with another note when being moved by mousewheel, it drastically increases the length of that note while getting shortened itself.
Any chance you could fix that?
Thanks a lot!
|
|
|
04-02-2019, 01:29 PM
|
#126
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
|
Hey Supremo,
glad you like the scripts! I'm just working on a bunch of others, which hopefully will be finished in some days.
Ah, pity. I see what you mean. Reaper does not support overlapping notes (in scripts). The only thing I could add is a popup message, that will warn you before notes are in danger to overlap.
|
|
|
04-02-2019, 01:44 PM
|
#127
|
Human being with feelings
Join Date: Mar 2019
Posts: 34
|
Quote:
Originally Posted by _Stevie_
Hey Supremo,
glad you like the scripts! I'm just working on a bunch of others, which hopefully will be finished in some days.
Ah, pity. I see what you mean. Reaper does not support overlapping notes (in scripts). The only thing I could add is a popup message, that will warn you before notes are in danger to overlap.
|
OK, I got it. Would that be anyhow possible for a note that's going to overlap just to jump to the nearest available space on the same pitch? I know it may be difficult to program it that way, just wondering.
Thanks anyway!
|
|
|
04-04-2019, 05:34 PM
|
#128
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
|
I'll look into it. It could indeed be very complicated. Can't promise anything, though, since I'm very busy with scripts I wanted to get out for a while now.
Speaking of it:
2019-04-05
new scripts:
Delete notes after mouse cursor (in take under mouse or in MIDI editor)
Delete notes before mouse cursor (in take under mouse or in MIDI editor)
Mute notes after mouse (in take under mouse or in MIDI editor)
Mute notes before mouse (in take under mouse or in MIDI editor)
Select notes after mouse cursor (in take under mouse or in MIDI editor)
Select notes before mouse cursor (in take under mouse or in MIDI editor)
-> new name (previously "Select/Delete notes after/before edit cursor") and updated to MIDI_SetAllEvts
Select notes after edit cursor (in selected item(s) or MIDI editor)
Select notes before edit cursor (in selected item(s) or MIDI editor)
Delete notes before edit cursor (in selected item(s) or MIDI editor)
Delete notes after edit cursor (in selected item(s) or MIDI editor)
Last edited by _Stevie_; 04-04-2019 at 07:12 PM.
|
|
|
04-09-2019, 06:58 PM
|
#129
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
|
2019-04-10:
Trim head of item(s) and delete item(s) before mouse cursor
Trim tail of item(s) and delete item(s) after mouse cursor
|
|
|
04-13-2019, 11:31 AM
|
#130
|
Human being with feelings
Join Date: Jul 2016
Location: Los Angeles, CA
Posts: 1,701
|
Quote:
Originally Posted by _Stevie_
2019-04-10:
Trim head of item(s) and delete item(s) before mouse cursor
Trim tail of item(s) and delete item(s) after mouse cursor
|
So good man. I can't even explain how long I've wanted this.
|
|
|
04-13-2019, 11:33 AM
|
#131
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
|
Haha thanks man, me too! Was on my todo list for a long time.
I'm about to write a trim head and tail for notes as well.
That's another thing I need very often.
|
|
|
04-13-2019, 11:37 AM
|
#132
|
Human being with feelings
Join Date: Jul 2016
Location: Los Angeles, CA
Posts: 1,701
|
Nice!
|
|
|
04-14-2019, 10:21 AM
|
#133
|
Human being with feelings
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
|
Quote:
Originally Posted by _Stevie_
I'll look into it. It could indeed be very complicated. Can't promise anything, though, since I'm very busy with scripts I wanted to get out for a while now.
Speaking of it:
2019-04-05
new scripts:
Delete notes after mouse cursor (in take under mouse or in MIDI editor)
Delete notes before mouse cursor (in take under mouse or in MIDI editor)
Mute notes after mouse (in take under mouse or in MIDI editor)
Mute notes before mouse (in take under mouse or in MIDI editor)
Select notes after mouse cursor (in take under mouse or in MIDI editor)
Select notes before mouse cursor (in take under mouse or in MIDI editor)
-> new name (previously "Select/Delete notes after/before edit cursor") and updated to MIDI_SetAllEvts
Select notes after edit cursor (in selected item(s) or MIDI editor)
Select notes before edit cursor (in selected item(s) or MIDI editor)
Delete notes before edit cursor (in selected item(s) or MIDI editor)
Delete notes after edit cursor (in selected item(s) or MIDI editor)
|
Select notes before edit cursor (in selected item(s) or MIDI editor) doesn't seem to work the way I thought it would?
__________________
47.8% of statistics are made up.
|
|
|
04-14-2019, 10:27 AM
|
#134
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
|
That's how it is supposed to work. What was the expected workflow?
|
|
|
04-14-2019, 11:17 AM
|
#135
|
Human being with feelings
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
|
Quote:
Originally Posted by _Stevie_
That's how it is supposed to work. What was the expected workflow?
|
I understand the script to select only MIDI notes, rather than notes and CCs that's fine, even though I'd prefer both But what I meant was, it was not even selecting previous notes alone. I can make a video if you'd like. One moment. No problem
__________________
47.8% of statistics are made up.
|
|
|
04-14-2019, 11:21 AM
|
#136
|
Human being with feelings
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
|
I saw that you have 2 scripts doing each, wasnt' sure if that could be combined in one script notes+CC. Sorry. Not much of a programmer
sr_Select all CCs before edit cursor
sr_Select all notes before edit cursor
sr_Select all notes and all CCs before edit cursor?
or rather better
sr_Select all MIDI events notes and all CCs in one go before edit cursor?
__________________
47.8% of statistics are made up.
|
|
|
04-14-2019, 12:07 PM
|
#137
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
|
You mean, you would like to exclude the notes, that cross the mouse cursor, right? Make a GIF, if you don't mind. Just to be sure.
Yes, I got 2 different scripts already doing the job :P
I'll check if I can easily combine those.
In the meanwhile, there's new stuff:
2019-04-14:
Trim head of note(s) at mouse cursor (in take under mouse or in MIDI editor)
Trim tail of note(s) at mouse cursor (in take under mouse or in MIDI editor)
|
|
|
04-14-2019, 04:13 PM
|
#138
|
Human being with feelings
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
|
Quote:
Originally Posted by _Stevie_
You mean, you would like to exclude the notes, that cross the mouse cursor, right? Make a GIF, if you don't mind. Just to be sure.
Yes, I got 2 different scripts already doing the job :P
I'll check if I can easily combine those.
In the meanwhile, there's new stuff:
2019-04-14:
Trim head of note(s) at mouse cursor (in take under mouse or in MIDI editor)
Trim tail of note(s) at mouse cursor (in take under mouse or in MIDI editor)
|
Nope, I think you had it right. Include the notes over the mouse cursor and all notes to the left. And all corresponding CCs for those notes. Yuppers I'll show you a GIF of what I mean not working.
Excited thanks so much for spending time on this
__________________
47.8% of statistics are made up.
|
|
|
04-15-2019, 02:44 PM
|
#139
|
Human being with feelings
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
|
what a pile of great lua's... thanks so much!
|
|
|
04-15-2019, 03:24 PM
|
#140
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
|
You're welcome guys!
I did some restructuring on some scripts and found some bugs.
Still fixing them, it's one of these edge cases you would rarely think of...
So bare with me lowellben! Catching up, soon.
|
|
|
04-16-2019, 05:14 AM
|
#141
|
Human being with feelings
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
|
Quote:
Originally Posted by _Stevie_
You're welcome guys!
I did some restructuring on some scripts and found some bugs.
Still fixing them, it's one of these edge cases you would rarely think of...
So bare with me lowellben! Catching up, soon.
|
You got it Can't wait so excited.
__________________
47.8% of statistics are made up.
|
|
|
04-20-2019, 09:51 AM
|
#142
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
|
The bundles have all been updated to version 1.60. I moved them in their own respective folder. Makes it easier to keep track of all the scripts.
Only issue: previous versions won't be recognized, means, you have to delete older versions (marked as obsolete) and get the new ones. No update possible, sorry
Next are some user requested scripts.
|
|
|
04-22-2019, 04:39 AM
|
#143
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
|
2019-04-22
Quantize note end to next grid (bundle)
Quantize note end to previous grid (bundle)
Quantize note end to closest grid (bundle)
Last edited by _Stevie_; 04-22-2019 at 05:36 AM.
|
|
|
04-22-2019, 05:36 AM
|
#144
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
|
@lowellben
Select notes and all CCs after edit cursor (in selected item(s) or MIDI editor)
Select notes and all CCs before edit cursor (in selected item(s) or MIDI editor)
Last edited by _Stevie_; 04-22-2019 at 05:53 AM.
|
|
|
04-23-2019, 10:21 AM
|
#145
|
Human being with feelings
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
|
Quote:
Originally Posted by _Stevie_
@lowellben
Select notes and all CCs after edit cursor (in selected item(s) or MIDI editor)
Select notes and all CCs before edit cursor (in selected item(s) or MIDI editor)
|
Firing it up now!! You = da man )
__________________
47.8% of statistics are made up.
|
|
|
04-23-2019, 04:34 PM
|
#146
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
|
Quote:
Originally Posted by lowellben
Firing it up now!! You = da man )
|
2019-04-24
Renamed scripts:
Nudge note end right to next grid (previously: Quantize note end to next grid)
Nudge note end left to previous grid (previously: Quantize note end to previous grid)
New scripts:
Nudge note start right to next grid (bundle)
Nudge note start left to previous grid (bundle)
Quantize note start to closest grid (bundle)
Change note length by ticks (bundle)
|
|
|
04-24-2019, 04:42 AM
|
#147
|
Human being with feelings
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
|
Quote:
Originally Posted by _Stevie_
2019-04-24
Renamed scripts:
Nudge note end right to next grid (previously: Quantize note end to next grid)
Nudge note end left to previous grid (previously: Quantize note end to previous grid)
New scripts:
Nudge note start right to next grid (bundle)
Nudge note start left to previous grid (bundle)
Quantize note start to closest grid (bundle)
Change note length by ticks (bundle)
|
A lot of those note nudges don't just work on selected notes, you know that right? I select some notes and run say Script: sr_Nudge note end left to previous grid - grid.lua
and all notes are adjusted in the whole item. Yikes.
Is there no way to use these MIDI nudge scripts on selected notes or is it all or nothing? Confused
__________________
47.8% of statistics are made up.
|
|
|
04-24-2019, 04:46 AM
|
#148
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
|
Quote:
Originally Posted by lowellben
A lot of those note nudges don't just work on selected notes, you know that right? I select some notes and run say Script: sr_Nudge note end left to previous grid - grid.lua
and all notes are adjusted in the whole item. Yikes.
Is there no way to use these MIDI nudge scripts on selected notes or is it all or nothing? Confused
|
They are intended to work with selected notes as well, yes.
Are you executing the scripts in the MIDI editor?
|
|
|
04-24-2019, 04:56 AM
|
#149
|
Human being with feelings
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
|
Quote:
Originally Posted by _Stevie_
They are intended to work with selected notes as well, yes.
Are you executing the scripts in the MIDI editor?
|
Yup. here's a quick video. Most scripts behave like this, I won't bore you with 12 videos :P
https://stash.reaper.fm/36172/bugithink.mp4
__________________
47.8% of statistics are made up.
|
|
|
04-24-2019, 05:00 AM
|
#150
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
|
Will check the scripts again for bugs.
There's a general rule for my scripts (some scripts are an exception):
In order to work in all 3 areas (MIDI editor, inline editor or arrange view), I use the mouse as indicator where the user wants to execute these scripts. When hovering an item in the arrange view, selected events are generally ignored, because you can't see a selection from the arrange. This could lead to unwanted results, because events are not unselected, when you exit the MIDI editor.
However, when the mouse hovers the MIDI editor or the inline editor, the scripts are fully selection aware.
|
|
|
04-24-2019, 05:03 AM
|
#151
|
Human being with feelings
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
|
Quote:
Originally Posted by _Stevie_
Will check the scripts again for bugs.
There's a general rule for my scripts (some scripts are an exception):
In order to work in all 3 areas (MIDI editor, inline editor or arrange view), I use the mouse as indicator where the user wants to execute these scripts. When hovering an item in the arrange view, selected events are generally ignored, because you can't see a selection from the arrange. This could lead to unwanted results, because events are not unselected, when you exit the MIDI editor.
However, when the mouse hovers the MIDI editor or the inline editor, the scripts are fully selection aware.
|
Oh, the mouse? But the script said edit cursor so does that mean try mouse if script is not working correctly regardless of it's name? I mean it's cool if that's the workaround I just felt stupid because the edit cursor just wasn't working. BTW all my work is in the midi editor, yup. Hope the video I made helps. Thanks for making this sick scripts.
__________________
47.8% of statistics are made up.
|
|
|
04-24-2019, 05:10 AM
|
#152
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
|
Ahh, I see the problem!
You are executing the script from the action list.
The mouse does not hover the MIDI editor and expects you to be in the arrange window. Assign the script to a shortcut and execute it in the MIDI editor again.
To see how the script reacts in the arrange view/inline editor, assign the shortcuts there as well. Then you will see, why I chose this method. The mouse cursor is only the indicator, where the user is currently acting.
|
|
|
04-24-2019, 05:20 AM
|
#153
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
|
I could change all scripts to: if MIDI editor is open, ignore all other areas (arrange view or inline editor). But I'm not sure if that will trigger other unwanted results.
The mouse hovering seemed to me the most reliable indicator.
|
|
|
04-24-2019, 05:30 AM
|
#154
|
Human being with feelings
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
|
Quote:
Originally Posted by _Stevie_
Ahh, I see the problem!
You are executing the script from the action list.
The mouse does not hover the MIDI editor and expects you to be in the arrange window. Assign the script to a shortcut and execute it in the MIDI editor again.
To see how the script reacts in the arrange view/inline editor, assign the shortcuts there as well. Then you will see, why I chose this method. The mouse cursor is only the indicator, where the user is currently acting.
|
Ahhhh yes I am doing that for testing. I will make a shortcut sure, but it seems like the scripts don't use the edit cursor then as the trigger point right? Sorry i'm slow. I'm totally cool with the mouse being the trigger point but when I saw the script name I figured, cool, I'll do the edit cursor.
__________________
47.8% of statistics are made up.
|
|
|
04-24-2019, 05:31 AM
|
#155
|
Human being with feelings
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
|
Quote:
Originally Posted by _Stevie_
I could change all scripts to: if MIDI editor is open, ignore all other areas (arrange view or inline editor). But I'm not sure if that will trigger other unwanted results.
The mouse hovering seemed to me the most reliable indicator.
|
No need to make extra work for yourself, just think the script name was a huge confusion point.
Edit point vs mouse cursor are worlds apart, and I've used a few scripts in the past with mouse cursor in the title, so that was a tip off for me. I do as I'm told :P
Thanks for doing these scripts! I'll try a fallback mouse cursor position for all your scripts, regardless of the edit cursor name if you think that'll work. Not a big deal for me!
__________________
47.8% of statistics are made up.
|
|
|
04-24-2019, 05:34 AM
|
#156
|
Human being with feelings
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
|
But wait, how can you select a few notes AND position the mouse cursor in "one" spot to trigger the script I put in my video?
You said it works on selected notes right? So, how would I do that? Let's say I want to select a few notes and run a nudge. Where should the mouse cursor be to trigger the action ONLY on selected notes? I'm confused.
Sure, I get that some scripts rely on mouse cursor now (like the before and after scripts) but the nudge ones you said work on selected notes only OR the item depending on what the user has selected.
How do I do a mouse hover when I want selected notes to be processed?
__________________
47.8% of statistics are made up.
|
|
|
04-24-2019, 05:43 AM
|
#157
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
|
I'll quickly make a video.
The following logic is behind the scripts that work with the edit cursor:
Is the MIDI editor hovered?
Yes -> then respect note selection
No MIDI editor is hovered?
Yes -> then user is in the arrange view (or media explorer, etc...).
Get all selected items and apply script
Additionally ignore event selection, because they can't be seen in the item view
|
|
|
04-24-2019, 05:44 AM
|
#158
|
Human being with feelings
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
|
FWIW I just made a keyboard shortcut for this
Script: sr_Select notes and all CCs after edit cursor (in selected item(s) or MIDI editor).lua
And selected the midi editor. clicked in the item somewhere.
hit my shortcut.
all notes and cc are selected in item. Just FWIW Sorry.
this script
Script: sr_Select all CCs after edit cursor.lua
set shortcut.
placed edit cursor in item somewhere.
All CCs in whole item selected.
etc.
__________________
47.8% of statistics are made up.
|
|
|
04-24-2019, 05:55 AM
|
#159
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
|
Which script are you referring to? The nudge one?
That's how the "Select notes and all CCs before edit cursor (in selected item(s) or MIDI editor)" is intended to work:
https://i.imgur.com/9LGvSyu.gif
EDIT: checked "sr_Select all CCs after edit cursor.lua" as well. Are you using it this way?
https://i.imgur.com/9LGvSyu.gif
Last edited by _Stevie_; 04-24-2019 at 06:13 AM.
|
|
|
04-24-2019, 06:16 AM
|
#160
|
Human being with feelings
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
|
Quote:
Originally Posted by _Stevie_
Which script are you referring to? The nudge one?
That's how the "Select notes and all CCs before edit cursor (in selected item(s) or MIDI editor)" is intended to work:
https://i.imgur.com/9LGvSyu.gif
|
But my other video shows that doesnt work. I did the mouse cursor after select and it selected all notes. I know I at least did that part right lol. Really Look this literally proves what I'm saying.
https://stash.reaper.fm/36173/notcrazylol.mp4
__________________
47.8% of statistics are made up.
|
|
|
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 09:23 PM.
|