Old 08-22-2014, 10:37 AM   #1
zeekat
Human being with feelings
 
zeekat's Avatar
 
Join Date: May 2009
Location: Polandia
Posts: 3,578
Default Action for remove-every-other-item

Gotta admit - I don't know much about actions, even less about making custom ones. I'd like to do the following:

- chop the selected item along the grid lines
- then delete every other item from the result

I know there's an action for the first thing (split at timeline grid - it does that and even keeps the resulting items selected), but I have no clue how to make the reaper neatly remove every other slice. Could use that for some stutter-style editing, doing it by hand is annoying when there's a lot of chopped fragments.

Is it possible at all? I'm browsing the list of available actions and can't find anything helpful. I suck at leveraging Reaper's flexibility I guess :>
__________________
AM bient, rund funk and heavy meteo
my bandcamp+youtubings
zeekat is offline   Reply With Quote
Old 08-22-2014, 02:25 PM   #2
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

without looking try something like this...

make a custom action...

put the edit cursor before the first item...

here is the action:

Item navigation: Select and move to next item

Item navigation: Select and move to next item

Item navigation: Remove items

assign that to a hot key and just keep pressing that key until what you want gone is gone
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 08-22-2014, 04:16 PM   #3
Tod
Human being with feelings
 
Tod's Avatar
 
Join Date: Jan 2010
Location: Kalispell
Posts: 14,745
Default

Quote:
Originally Posted by hopi View Post
without looking try something like this...

make a custom action...

put the edit cursor before the first item...

here is the action:

Item navigation: Select and move to next item

Item navigation: Select and move to next item

Item navigation: Remove items

assign that to a hot key and just keep pressing that key until what you want gone is gone
Yeah, totally with you on that hopi. However, for myself I would turn that around a little bit, only because I think it's a little easier to remember.

Item navigation: Remove items

Item navigation: Select and move to next item

Item navigation: Select and move to next item

This way you select the first item, then run macro. It deletes the item and it's all set up to delete the next preferred item so it's easy to see and a matter of hitting the key again.

Heh heh, it's 6 of one half dozen of the other. I only bring it up because I've been running this same macro to get rid of the silence parts that are left over while editing samples.

At first I set it up the way you did and every time I'd run it, I'd stop and think, okay how did I set that up? Then I'd go in and look at the macro to see how it was set up. Eventually I went in and changed it to the way I show above and it just seemed easier to remember. Heh heh, but then don't forget, I'm a really old fart.
Tod is offline   Reply With Quote
Old 08-23-2014, 01:20 AM   #4
spk77
Human being with feelings
 
Join Date: Aug 2012
Location: Finland
Posts: 2,668
Default

Here's a script for selecting every nth item in time selection (on selected track):
  • This is an EEL script - no need to install anything (EEL based ReaScript is directly supported by Reaper as it is pretty much the same language as Jesusonic)
  • Save the script to your computer -> Load from the action list (ReaScript: New/load...)
  • Mousewheel changes the values
  • Ctrl + left mouse button resets the values
  • If time selection is not set -> it selects from all items on selected track



Item selector (EEL script)
https://stash.reaper.fm/21593/Select%...nth%20item.eel

Last edited by spk77; 08-23-2014 at 03:18 AM. Reason: More info added
spk77 is offline   Reply With Quote
Old 08-23-2014, 02:00 AM   #5
zeekat
Human being with feelings
 
zeekat's Avatar
 
Join Date: May 2009
Location: Polandia
Posts: 3,578
Default

Quote:
Originally Posted by spk77 View Post
Here's a script for selecting every nth item in time selection (on selected track):
  • Mousewheel changes the values



Item selector (EEL script)
https://stash.reaper.fm/21593/Select%...nth%20item.eel

(If time selection is not set -> it selects from all items on selected track)
Ooh, that's it! Brilliant, thanks!

I kinda forgot Reaper is scriptable. Maybe I should learn some Python.
__________________
AM bient, rund funk and heavy meteo
my bandcamp+youtubings
zeekat is offline   Reply With Quote
Old 08-27-2014, 08:10 AM   #6
witti
Human being with feelings
 
witti's Avatar
 
Join Date: May 2012
Posts: 1,216
Default

Doesn't the action 'Xenakios/SWS: Skip selected items...' do the same ?
witti is offline   Reply With Quote
Old 08-29-2014, 12:38 AM   #7
timbralzoom
Human being with feelings
 
timbralzoom's Avatar
 
Join Date: Apr 2010
Location: Turkey/Istanbul
Posts: 1,820
Default

this is highly usable to me..
Thank you so much spk77 !
timbralzoom is offline   Reply With Quote
Old 08-29-2014, 01:12 AM   #8
itselfron
Human being with feelings
 
Join Date: Aug 2014
Posts: 4
Default

this is highly usable to me
itselfron is offline   Reply With Quote
Old 08-29-2014, 02:46 AM   #9
spk77
Human being with feelings
 
Join Date: Aug 2012
Location: Finland
Posts: 2,668
Default

Quote:
Originally Posted by witti View Post
Doesn't the action 'Xenakios/SWS: Skip selected items...' do the same ?
Almost, yes
Quote:
Originally Posted by timbralzoom View Post
this is highly usable to me..
Thank you so much spk77 !
Quote:
Originally Posted by itselfron View Post
this is highly usable to me
Thanks
spk77 is offline   Reply With Quote
Old 11-24-2014, 01:36 PM   #10
Alex Ortega
Human being with feelings
 
Join Date: Oct 2013
Posts: 105
Default

Quote:
Originally Posted by spk77 View Post
Here's a script for selecting every nth item in time selection (on selected track):
  • This is an EEL script - no need to install anything (EEL based ReaScript is directly supported by Reaper as it is pretty much the same language as Jesusonic)
  • Save the script to your computer -> Load from the action list (ReaScript: New/load...)
  • Mousewheel changes the values
  • Ctrl + left mouse button resets the values
  • If time selection is not set -> it selects from all items on selected track



Item selector (EEL script)
https://stash.reaper.fm/21593/Select%...nth%20item.eel
Thank you)
Alex Ortega is offline   Reply With Quote
Old 03-01-2015, 11:30 AM   #11
Jae.Thomas
Human being with feelings
 
Join Date: Jun 2006
Posts: 22,567
Default

Quote:
Originally Posted by spk77 View Post
Here's a script for selecting every nth item in time selection (on selected track):
  • This is an EEL script - no need to install anything (EEL based ReaScript is directly supported by Reaper as it is pretty much the same language as Jesusonic)
  • Save the script to your computer -> Load from the action list (ReaScript: New/load...)
  • Mousewheel changes the values
  • Ctrl + left mouse button resets the values
  • If time selection is not set -> it selects from all items on selected track



Item selector (EEL script)
https://stash.reaper.fm/21593/Select%...nth%20item.eel
love this, thank you!
Jae.Thomas 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:57 PM.


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