Old 09-24-2023, 10:56 AM   #1
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,485
Default Mespotine: Razor Mania - Razor Editing Scripts

I started to write Razor Edit-scripts and want to share them with you.

If you have requests for Razor-Edit-scripts that you couldn't find anywhere else yet, describe them and I'll try to add them.

Installable via my ReaPack: https://raw.githubusercontent.com/me...ne_Scripts.xml

Needs Ultraschall-API, JS-extension and SWS to work(if you haven't installed them yet, the scripts will help you with that).

Please donate, if any of them is useful for you: https://mespotine.de/Mespotine/mespotine-unterstuetzen/
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper
Bugreports&Docs notes please do here:https://github.com/Ultraschall/ultra...-reaper/issues - Donate, if you wish

Last edited by Meo-Ada Mespotine; 09-24-2023 at 11:07 AM.
Meo-Ada Mespotine is offline   Reply With Quote
Old 09-24-2023, 10:59 AM   #2
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,485
Default

The first eleven scripts cover some basics.

They allow you to influence Razor-Edits under the mouse like:

adding a razor area from a time-selection


Adding Razor Edits around an Item under Mouse


nudging by a second, 10 seconds, a minute, left or right.


deleting


filling up gaps between razor-areas


removing all razors from a track/envelope under the mouse
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper
Bugreports&Docs notes please do here:https://github.com/Ultraschall/ultra...-reaper/issues - Donate, if you wish

Last edited by Meo-Ada Mespotine; 09-24-2023 at 11:22 AM.
Meo-Ada Mespotine is offline   Reply With Quote
Old 09-24-2023, 11:47 AM   #3
Vagelis
Human being with feelings
 
Vagelis's Avatar
 
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 3,652
Default

Some useful scripts, thx for sharing.

I was thinking that a tool to drag and delete items/points is been missing in the arrange view, perhaps this could be done with a script?
The idea is to trigger the script and delete the RE selection after releasing the mouse, though not sure if it's possible and thought I should ask
Vagelis is offline   Reply With Quote
Old 09-24-2023, 12:00 PM   #4
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,485
Default

Maybe, but it's difficult, since mouse modifiers for drag don't support running scripts in Reaper.

But it would be possible to have two scripts: one that starts "listening for the dragging" and one that commits it.
But it needs more thinking about how to do it properly.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper
Bugreports&Docs notes please do here:https://github.com/Ultraschall/ultra...-reaper/issues - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 09-24-2023, 12:12 PM   #5
Vagelis
Human being with feelings
 
Vagelis's Avatar
 
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 3,652
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
Maybe, but it's difficult, since mouse modifiers for drag don't support running scripts in Reaper.
Sounds like a nice FR.

Quote:
Originally Posted by Meo-Ada Mespotine View Post
But it would be possible to have two scripts: one that starts "listening for the dragging" and one that commits it.
But it needs more thinking about how to do it properly.
No idea how this works but thanks for considering
Vagelis is offline   Reply With Quote
Old 09-24-2023, 12:14 PM   #6
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,485
Default

Quote:
Originally Posted by Vagelis View Post
Sounds like a nice FR.
I think, I already requested that, but I'm not sure...


Quote:
No idea how this works but thanks for considering
You would start the first script, then move the mouse to make the selection, then start the second script which would delete the stuff and remove the RE.
So no left or right-click-dragging, more like mouse moving after having told Reaper to "listen" to the mouse movements to create RE.

Right now, I will more concentrate on the low hanging fruits, though. There are probably many that could improve workflows.
Like moving all REs at once to a point of interest like the edit-cursor, etc.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper
Bugreports&Docs notes please do here:https://github.com/Ultraschall/ultra...-reaper/issues - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 09-25-2023, 03:06 AM   #7
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,485
Default

New scripts for snapping the edges of a Razor-Edit to the edges of an item.

You can do either razor start to item start or razor end to item end underneath the mouse:


or snap the edges of a razor item to the edges of the item underneath the mouse:
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper
Bugreports&Docs notes please do here:https://github.com/Ultraschall/ultra...-reaper/issues - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 09-25-2023, 03:27 AM   #8
smandrap
Human being with feelings
 
smandrap's Avatar
 
Join Date: Feb 2021
Location: Right here
Posts: 953
Default

Hmmmm very interesting, thanks for sharing.
How about extend right edge of razor edit to next transient?
smandrap is offline   Reply With Quote
Old 09-25-2023, 03:29 AM   #9
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,485
Default

Quote:
Originally Posted by smandrap View Post
Hmmmm very interesting, thanks for sharing.
How about extend right edge of razor edit to next transient?
Can you show me in a gif, how you would do it by hand?
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper
Bugreports&Docs notes please do here:https://github.com/Ultraschall/ultra...-reaper/issues - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 09-25-2023, 04:08 AM   #10
smandrap
Human being with feelings
 
smandrap's Avatar
 
Join Date: Feb 2021
Location: Right here
Posts: 953
Default

Can't show it because i don't know how to do it Sorry.

What i'd like to see is basically the action "Time selection: Extend time selection to next transient in items", but with razor edits. Some sort of Pro Tools Shift + Tab.

If i have some time later i might try a mockup. Thanks a lot
smandrap is offline   Reply With Quote
Old 09-25-2023, 08:30 AM   #11
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,485
Default

I think I have an idea for this, since there's an action for going to the next transient in the item. That I can exploit for a Razor Edit script.

Will try later.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper
Bugreports&Docs notes please do here:https://github.com/Ultraschall/ultra...-reaper/issues - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 09-25-2023, 10:13 AM   #12
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,485
Default

New Scripts for enhancing the razor-areas under mouse to the next/previous transient of item under mouse.

__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper
Bugreports&Docs notes please do here:https://github.com/Ultraschall/ultra...-reaper/issues - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 09-25-2023, 11:54 AM   #13
smandrap
Human being with feelings
 
smandrap's Avatar
 
Join Date: Feb 2021
Location: Right here
Posts: 953
Default

This is HUGE. Thanks, i'll test asap
smandrap is offline   Reply With Quote
Old 09-25-2023, 01:34 PM   #14
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,485
Default

New scripts for snapping the edge of a razor-edit under mouse to the edit-cursor.

You can snap the left AND the right edge.

__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper
Bugreports&Docs notes please do here:https://github.com/Ultraschall/ultra...-reaper/issues - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 09-26-2023, 12:22 PM   #15
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,485
Default

New actions for moving all razor-edit-areas by 1 second/10 seconds/1 minute to the left or to the right.

__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper
Bugreports&Docs notes please do here:https://github.com/Ultraschall/ultra...-reaper/issues - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 09-26-2023, 12:41 PM   #16
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,485
Default

New actions for snapping the RazorEdit-area under the mouse to the editcursor, moving all other razor-areas accordingly.
There are actions for snapping the left or right edge of the razor-edit.

__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper
Bugreports&Docs notes please do here:https://github.com/Ultraschall/ultra...-reaper/issues - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 09-27-2023, 11:37 AM   #17
ferropop
Human being with feelings
 
ferropop's Avatar
 
Join Date: Jan 2016
Location: Los Angeles, CA
Posts: 2,986
Default

Some ideas :

1. Expand/Compress size/contents of Razor Edit by 2 / 0.5 (actions).

2. Render Selected REs together to a new item (we chatted in a different thread)

3. Envelope Editing focus :

...1. actions to "set envelope within Razor Edit to MAX/MIN/CENTERED". Some exist but they break MUTE envelopes because they introduce a linear point in what is supposed to be a Square lane.
...2. actions to "increase/decrease envelope values inside Razor Edit"
...3. actions to "tilt L/R edge Up/Down a bit / 2x / 0.5x"

...all this kind of stuff. Razors can be AMAZING for editing automation, but are still sorely falling short of their true potential.
__________________
FERRO
Songs I've Written/Produced : https://sptfy.com/7SIW
Instagram : http://www.instagram.com/ferropop
ferropop is offline   Reply With Quote
Old 09-27-2023, 11:44 AM   #18
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,485
Default

Quote:
Originally Posted by ferropop View Post
Some ideas :

1. Expand/Compress size/contents of Razor Edit by 2 / 0.5 (actions).

2. Render Selected REs together to a new item (we chatted in a different thread)

3. Envelope Editing focus :

...1. actions to "set envelope within Razor Edit to MAX/MIN/CENTERED". Some exist but they break MUTE envelopes because they introduce a linear point in what is supposed to be a Square lane.
...2. actions to "increase/decrease envelope values inside Razor Edit"
...3. actions to "tilt L/R edge Up/Down a bit / 2x / 0.5x"

...all this kind of stuff. Razors can be AMAZING for editing automation, but are still sorely falling short of their true potential.
Could you explain or show, what you mean by tilt?

Expand and compress should be easy. Envelopes are tricky, especially with automation items, that's why I haven't done some yet.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper
Bugreports&Docs notes please do here:https://github.com/Ultraschall/ultra...-reaper/issues - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 09-27-2023, 12:17 PM   #19
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,485
Default

New actions for enhancing/compressing razor-areas under mouse by 2 or 0.5.
You can enhance/compress left or right.

__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper
Bugreports&Docs notes please do here:https://github.com/Ultraschall/ultra...-reaper/issues - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 09-27-2023, 12:29 PM   #20
ferropop
Human being with feelings
 
ferropop's Avatar
 
Join Date: Jan 2016
Location: Los Angeles, CA
Posts: 2,986
Default

Thank you for looking at these! There'd be the "with content" variations also and it's a complete feature. !!
__________________
FERRO
Songs I've Written/Produced : https://sptfy.com/7SIW
Instagram : http://www.instagram.com/ferropop
ferropop is offline   Reply With Quote
Old 09-27-2023, 12:37 PM   #21
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,485
Default

Quote:
Originally Posted by ferropop View Post
Thank you for looking at these! There'd be the "with content" variations also and it's a complete feature. !!
Is "with contents" something you can do already by hand?

Edit:
means, does it enhance/compress the contents together with the RazorEdit?
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper
Bugreports&Docs notes please do here:https://github.com/Ultraschall/ultra...-reaper/issues - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 09-27-2023, 12:42 PM   #22
ferropop
Human being with feelings
 
ferropop's Avatar
 
Join Date: Jan 2016
Location: Los Angeles, CA
Posts: 2,986
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
Is "with contents" something you can do already by hand?
Yeah like Alt-dragging the Razor Edit will resize the RE as well as compressing/expanding the contents.

Where this is most useful is Razoring something off-grid, and wanting to scale all the contents by exactly 2 or 0.5. That's trivial when on the grid (but still faster to have actions) - but when not on grid it's impossible currently to get exactly double/half stretch.



edit : it's the Razor Edit equivalent of these actions:



Manually :
__________________
FERRO
Songs I've Written/Produced : https://sptfy.com/7SIW
Instagram : http://www.instagram.com/ferropop

Last edited by ferropop; 09-27-2023 at 12:50 PM.
ferropop is offline   Reply With Quote
Old 09-27-2023, 12:52 PM   #23
ferropop
Human being with feelings
 
ferropop's Avatar
 
Join Date: Jan 2016
Location: Los Angeles, CA
Posts: 2,986
Default

This can then be wrapped in a script where the actions run conditionally --

ie, if there's a Razor Edit run the double/half action on the Razor Edit... if there's no Razor Edit and just items selected, run the me2beats Item versions. If it's automation points selected, wrap the points in a Razor Edit and half/double them.

One set of keys, context-dependent result.

It becomes a powerful tool when these little things are context-dependent.
__________________
FERRO
Songs I've Written/Produced : https://sptfy.com/7SIW
Instagram : http://www.instagram.com/ferropop
ferropop is offline   Reply With Quote
Old 09-27-2023, 12:58 PM   #24
ferropop
Human being with feelings
 
ferropop's Avatar
 
Join Date: Jan 2016
Location: Los Angeles, CA
Posts: 2,986
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
Could you explain or show, what you mean by tilt?
Envelope tilting...there are no actions for these. Also for compressing/expanding envelope contents, it can be done by mouse but not by actions currently. Is there API for interacting with those hotspot gestures?

__________________
FERRO
Songs I've Written/Produced : https://sptfy.com/7SIW
Instagram : http://www.instagram.com/ferropop
ferropop is offline   Reply With Quote
Old 09-27-2023, 01:01 PM   #25
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,485
Default

Hmmm... I'm not sure if it's possible at all with what the api allows.
It allows me to draw razor areas but not to influence the contents.
Compressing and enhancing would be needed to be reimplemented completely and I don't think I want to do that, since it's complicated and involves working with stretch markers to make it.

I'll look, if it's possible anyways, but applying RazorEdits to contents is probably something only the devs can do.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper
Bugreports&Docs notes please do here:https://github.com/Ultraschall/ultra...-reaper/issues - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 09-27-2023, 01:04 PM   #26
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,485
Default

Quote:
Originally Posted by ferropop View Post
Envelope tilting...there are no actions for these. Also for compressing/expanding envelope contents, it can be done by mouse but not by actions currently. Is there API for interacting with those hotspot gestures?

Ok, compressing and enhancing on y-axis would be possible, but tilting is probably too difficult to code.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper
Bugreports&Docs notes please do here:https://github.com/Ultraschall/ultra...-reaper/issues - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 09-27-2023, 01:05 PM   #27
ferropop
Human being with feelings
 
ferropop's Avatar
 
Join Date: Jan 2016
Location: Los Angeles, CA
Posts: 2,986
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
Hmmm... I'm not sure if it's possible at all with what the api allows.
It allows me to draw razor areas but not to influence the contents.
Compressing and enhancing would be needed to be reimplemented completely and I don't think I want to do that, since it's complicated and involves working with stretch markers to make it.

I'll look, if it's possible anyways, but applying RazorEdits to contents is probably something only the devs can do.
Hmm can we nudge the @devs? if something's possible manually I would hope there's a script version of that thing. REs are the most powerful addition in recent times, maybe we just need more accessors to be able to fully take advantage.

Like if I can physically Alt-Drag a Razor Edit using a mouse, I'd hope there's a way to do that in script.
__________________
FERRO
Songs I've Written/Produced : https://sptfy.com/7SIW
Instagram : http://www.instagram.com/ferropop
ferropop is offline   Reply With Quote
Old 09-28-2023, 01:52 AM   #28
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,485
Default

Stuff related to dragging is usually either impossible ir very hard to do with scripting.
So yeah, nudging the devs is probably a good thing.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper
Bugreports&Docs notes please do here:https://github.com/Ultraschall/ultra...-reaper/issues - Donate, if you wish
Meo-Ada Mespotine 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 10:49 PM.


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