Old 12-10-2015, 11:22 AM   #1
jrengmusic
Human being with feelings
 
jrengmusic's Avatar
 
Join Date: Jun 2015
Posts: 558
Default LUA : Move it! to mouse cursor action pack

Hi guys

These are scripts i wrote for editing items and MIDI. Which i think, are missing essential actions for editing from Action List that currently available.

Similar actions you might find in the Action List, but it doesn't act the way it should..at least not in my opinion (for my need).

Please bear with me, if you find the code is rather crude and brutal

I just learned coding since i own REAPER. and i just learned LUA since few days ago

and now i understand why scripters love it

D E M O N S T R A T I O N



and for consistent workflow, similar actions for editing MIDI too



All action nudge (and or duplicate) the selected item/MIDI notes to your mouse cursor. Just point and strike keyboard shortcut, or setup mouse modifier if you will.

Don't worry for for misplacement, because all script are obeying GRID SNAPPING and SNAP OFFSET too!



I thought these scripts would be helpful for editing, sound designing, composing or anything not just for me but for anyone who use REAPER on daily basis.

Thus, i share these action scripts with joy and love with you

Feel free to use and modify. If you find any bugs or any improvements for coding efficiency please discuss here.

The script consists of the following actions (as shown on demo above) :
Code:
1. JRENG! MIDI move all left edge.lua
2. JRENG! MIDI move all right edge.lua
3. JRENG! MIDI move copy left edge.lua
4. JRENG! MIDI move copy right edge.lua
5. JRENG! MIDI move left edge.lua
6. JRENG! MIDI move right edge.lua
7. JRENG! Move all item left edge.lua
8. JRENG! Move all item right edge.lua
9. JRENG! Move copy item left edge.lua
10. JRENG! Move copy item right edge.lua
11. JRENG! Move item left edge.lua
12. JRENG! Move item right edge.lua
Requirement REAPER 5.1, SWS/S&M EXTENSION v.2.8.2

Installation is very simple
  • Unpack the .zip
  • Copy to your ~REAPER path/Scripts/...
  • Load the the script from Action List

DOWNLOAD from stash

https://stash.reaper.fm/25911/JRENG%2...ve%20it%21.zip

REAPER is SUPER AWESOME!

Happy editing!

JRENG!

Credits goes to SWS/S&M EXTENSION, Breeder for his awesome mouse context extension API, Reno.TheStraws with mouse dependant template which help me learn how to use Breeder's API, and X-Raym for his comprehensive tutorial videos which help me learn to write scripts, especially LUA.

Last edited by jrengmusic; 12-15-2015 at 01:47 AM.
jrengmusic is offline   Reply With Quote
Old 12-10-2015, 02:27 PM   #2
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 6,091
Default

@Jreng
Hi !
Thanks for sharing all this, nice stuff in it :P

I already made one of them (like the paste at cursor), but there is other nice things tool :P

If you like mouse actions for editing, you may be interested by my ripple editing action with mouse, as they are pretty close, but different (they handle moving content or not, ripple editing on tracks or an all tracks etc..).

Scripts (Lua): Move L/R edge of item under mouse to edit cursor (with ripple edit) - Cockos Confederated Forums

Also with item editing,
Apply nudge have left and right edges, but does not support snap offset,
In audio stories or video post productions, we rarely have to align items based on their edges, but only on their snap offset :P

Rather than rewriting a completly new set of actions, maybe a simple actions to move left all items by their snap offset values could be nice.
What do you think of that ?

Also, you may consider using GitHub if you plan to make a lot of scripting :P you will see that uploading zip is not that handy with time :P
X-Raym is offline   Reply With Quote
Old 12-10-2015, 02:56 PM   #3
jrengmusic
Human being with feelings
 
jrengmusic's Avatar
 
Join Date: Jun 2015
Posts: 558
Default

Hi Ray

Thank you for the kind words. I'm not planning to make a lot of scripts. I want to make lots of lots of music. As i always does. These scripts merely tools to help me to use REAPER faster, in order to make music better.

i wrote these script based on my workflow. It's intuitively easier for me to memorize keyboard shortcuts or editing behaviour on both arrange window and MIDI editor if there are similar actions. MIDI notes only have edges. But yeah since you brought it up, snapping to snap offset would be nice too.

Perhaps i could update the script, for snapping to snap offset if it's enabled. Maybe later when i got free time.

GitHub looks a bit edgy to me hahaha at least for now. But thank you for your suggestion, i'll think about it.

Thank you for LUA video tutorial. That was my favourite playlist on my channel.

Last edited by jrengmusic; 12-10-2015 at 03:08 PM.
jrengmusic is offline   Reply With Quote
Old 12-10-2015, 03:11 PM   #4
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 6,091
Default

Quote:
I want to make lots of lots of music.
Oh yes of course
That's the core concept behind scripting: make our workflow easier so we can be more effective in our projects !

Quote:
GitHub looks a bit edgy
Indeed, GitHub is very powerful and allow to manage a complex system (Git) to handle source code.
It has tons of API functions, and can do a lot of things.
But the basics (having a repo, uploading a file) is really not hard at all
You just create a space (a repository), and use an uploader (GitHub App) to put your things on it. That's almost all.
But well, fine if you prefer stash :P

Quote:
Thank you for LUA video tutorial.
I'm very glad that you like it !
I may upload new scripts tutorial someday. :P
X-Raym is offline   Reply With Quote
Old 12-10-2015, 11:07 PM   #5
jrengmusic
Human being with feelings
 
jrengmusic's Avatar
 
Join Date: Jun 2015
Posts: 558
Default

Quote:
Originally Posted by X-Raym View Post
@Jreng

In audio stories or video post productions, we rarely have to align items based on their edges, but only on their snap offset :P
adding few lines to obey snap offset turns out easier than i thought

thank you for the input.

Script updated!
jrengmusic is offline   Reply With Quote
Old 12-11-2015, 05:37 AM   #6
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 9,178
Default

Thank you for sharing.

Unrelated question, sorry, but may I ask what theme that is you use in that gif ?
nofish is offline   Reply With Quote
Old 12-11-2015, 05:42 AM   #7
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 6,091
Default

@jrengmusic

cool ! thx !
X-Raym is offline   Reply With Quote
Old 12-11-2015, 05:49 AM   #8
musicbynumbers
Human being with feelings
 
musicbynumbers's Avatar
 
Join Date: Jun 2009
Location: brighton, uk
Posts: 12,767
Default

thanks for these, very useful!
__________________
subproject FRs click here
note: don't search for my pseudonym on the web. The "musicbynumbers" you find is not me or the name I use for my own music.
musicbynumbers is offline   Reply With Quote
Old 12-11-2015, 05:50 AM   #9
jrengmusic
Human being with feelings
 
jrengmusic's Avatar
 
Join Date: Jun 2015
Posts: 558
Default

Quote:
Originally Posted by nofish View Post
Thank you for sharing.

Unrelated question, sorry, but may I ask what theme that is you use in that gif ?
customised dark WT Imperial.
jrengmusic is offline   Reply With Quote
Old 12-11-2015, 05:51 AM   #10
jrengmusic
Human being with feelings
 
jrengmusic's Avatar
 
Join Date: Jun 2015
Posts: 558
Default

Quote:
Originally Posted by musicbynumbers View Post
thanks for these, very useful!
you are welcome!
jrengmusic is offline   Reply With Quote
Old 11-22-2019, 05:51 PM   #11
BryanChi
Human being with feelings
 
Join Date: Jan 2019
Posts: 26
Default

Thanks for this amazing script! I use it all the time and it's makes my workflow so much faster!

just wanna report a small issue I found: If there is tempo change in the project the Move item script will not be able to move to the right place. If you run the script multiple times it will eventually get there, so not a huge problem but I think this isn't the intended behavior.

To replicate:
Open a new project, change the tempo at some place. Run the script pointing the mouse at anywhere before the tempo change. (Oddly sometimes the issue happens AFTER the tempo change too so try both)
BryanChi is offline   Reply With Quote
Old 11-23-2019, 04:23 AM   #12
Vagelis
Human being with feelings
 
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 378
Default

Awesome, thanks!
Vagelis is online now   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 08:18 AM.


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