Old 01-20-2019, 11:12 AM   #121
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

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.
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom

Last edited by _Stevie_; 01-20-2019 at 01:00 PM.
_Stevie_ is offline   Reply With Quote
Old 01-24-2019, 11:12 AM   #122
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

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.
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 02-03-2019, 12:51 PM   #123
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

New scripts:
Hide tracks without items (TCP)
Hide tracks without items and ignore folder tracks (TCP)
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 02-04-2019, 05:58 PM   #124
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

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.
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 04-02-2019, 01:17 PM   #125
Supremo
Human being with feelings
 
Join Date: Mar 2019
Posts: 34
Default

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!
Attached Images
File Type: gif Note move by mousewheel bug.gif (52.2 KB, 129 views)
Supremo is offline   Reply With Quote
Old 04-02-2019, 01:29 PM   #126
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

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.
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 04-02-2019, 01:44 PM   #127
Supremo
Human being with feelings
 
Join Date: Mar 2019
Posts: 34
Default

Quote:
Originally Posted by _Stevie_ View Post
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!
Supremo is offline   Reply With Quote
Old 04-04-2019, 05:34 PM   #128
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

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)
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom

Last edited by _Stevie_; 04-04-2019 at 07:12 PM.
_Stevie_ is offline   Reply With Quote
Old 04-09-2019, 06:58 PM   #129
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

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
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 04-13-2019, 11:31 AM   #130
Klangfarben
Human being with feelings
 
Join Date: Jul 2016
Location: Los Angeles, CA
Posts: 1,701
Default

Quote:
Originally Posted by _Stevie_ View Post
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.
Klangfarben is offline   Reply With Quote
Old 04-13-2019, 11:33 AM   #131
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

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.
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 04-13-2019, 11:37 AM   #132
Klangfarben
Human being with feelings
 
Join Date: Jul 2016
Location: Los Angeles, CA
Posts: 1,701
Default

Nice!
Klangfarben is offline   Reply With Quote
Old 04-14-2019, 10:21 AM   #133
lowellben
Human being with feelings
 
lowellben's Avatar
 
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
Default

Quote:
Originally Posted by _Stevie_ View Post
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.
lowellben is offline   Reply With Quote
Old 04-14-2019, 10:27 AM   #134
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

That's how it is supposed to work. What was the expected workflow?

__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 04-14-2019, 11:17 AM   #135
lowellben
Human being with feelings
 
lowellben's Avatar
 
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
Default

Quote:
Originally Posted by _Stevie_ View Post
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.
lowellben is offline   Reply With Quote
Old 04-14-2019, 11:21 AM   #136
lowellben
Human being with feelings
 
lowellben's Avatar
 
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
Default

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.
lowellben is offline   Reply With Quote
Old 04-14-2019, 12:07 PM   #137
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

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)
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 04-14-2019, 04:13 PM   #138
lowellben
Human being with feelings
 
lowellben's Avatar
 
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
Default

Quote:
Originally Posted by _Stevie_ View Post
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.
lowellben is offline   Reply With Quote
Old 04-15-2019, 02:44 PM   #139
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

what a pile of great lua's... thanks so much!
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 04-15-2019, 03:24 PM   #140
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

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.
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 04-16-2019, 05:14 AM   #141
lowellben
Human being with feelings
 
lowellben's Avatar
 
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
Default

Quote:
Originally Posted by _Stevie_ View Post
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.
lowellben is offline   Reply With Quote
Old 04-20-2019, 09:51 AM   #142
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

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.
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 04-22-2019, 04:39 AM   #143
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

2019-04-22

Quantize note end to next grid (bundle)
Quantize note end to previous grid (bundle)
Quantize note end to closest grid (bundle)
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom

Last edited by _Stevie_; 04-22-2019 at 05:36 AM.
_Stevie_ is offline   Reply With Quote
Old 04-22-2019, 05:36 AM   #144
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

@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)
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom

Last edited by _Stevie_; 04-22-2019 at 05:53 AM.
_Stevie_ is offline   Reply With Quote
Old 04-23-2019, 10:21 AM   #145
lowellben
Human being with feelings
 
lowellben's Avatar
 
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
Default

Quote:
Originally Posted by _Stevie_ View Post
@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.
lowellben is offline   Reply With Quote
Old 04-23-2019, 04:34 PM   #146
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

Quote:
Originally Posted by lowellben View Post
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)

__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 04-24-2019, 04:42 AM   #147
lowellben
Human being with feelings
 
lowellben's Avatar
 
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
Default

Quote:
Originally Posted by _Stevie_ View Post



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.
lowellben is offline   Reply With Quote
Old 04-24-2019, 04:46 AM   #148
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

Quote:
Originally Posted by lowellben View Post
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?
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 04-24-2019, 04:56 AM   #149
lowellben
Human being with feelings
 
lowellben's Avatar
 
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
Default

Quote:
Originally Posted by _Stevie_ View Post
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.
lowellben is offline   Reply With Quote
Old 04-24-2019, 05:00 AM   #150
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

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.
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 04-24-2019, 05:03 AM   #151
lowellben
Human being with feelings
 
lowellben's Avatar
 
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
Default

Quote:
Originally Posted by _Stevie_ View Post
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.
lowellben is offline   Reply With Quote
Old 04-24-2019, 05:10 AM   #152
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

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.
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 04-24-2019, 05:20 AM   #153
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

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.
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 04-24-2019, 05:30 AM   #154
lowellben
Human being with feelings
 
lowellben's Avatar
 
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
Default

Quote:
Originally Posted by _Stevie_ View Post
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.
lowellben is offline   Reply With Quote
Old 04-24-2019, 05:31 AM   #155
lowellben
Human being with feelings
 
lowellben's Avatar
 
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
Default

Quote:
Originally Posted by _Stevie_ View Post
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.
lowellben is offline   Reply With Quote
Old 04-24-2019, 05:34 AM   #156
lowellben
Human being with feelings
 
lowellben's Avatar
 
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
Default

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.
lowellben is offline   Reply With Quote
Old 04-24-2019, 05:43 AM   #157
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

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
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 04-24-2019, 05:44 AM   #158
lowellben
Human being with feelings
 
lowellben's Avatar
 
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
Default

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.
lowellben is offline   Reply With Quote
Old 04-24-2019, 05:55 AM   #159
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

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
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom

Last edited by _Stevie_; 04-24-2019 at 06:13 AM.
_Stevie_ is offline   Reply With Quote
Old 04-24-2019, 06:16 AM   #160
lowellben
Human being with feelings
 
lowellben's Avatar
 
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
Default

Quote:
Originally Posted by _Stevie_ View Post
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.
lowellben 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 06:16 AM.


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