Old 07-10-2017, 11:42 PM   #1
Tuberizer
Human being with feelings
 
Tuberizer's Avatar
 
Join Date: Oct 2015
Posts: 82
Default Shortcut for certain time stretch mode

Hey guys,

so I'm frequently using a certain time stretch mode on items. It is a real pain every time I need it for an item to

double click on item -> media item properties -> time stretch mode -> select -> select specifics.

Is there a way to put all this into one shortcut or button?

Thanks a ton in advance
-Pete
Tuberizer is offline   Reply With Quote
Old 07-11-2017, 04:49 AM   #2
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

It can be done with a Lua script like :
Code:
-- Modes : -1 Project Default
-- 0 Soundtouch 2 Simple windowed 6 Elastique 2 pro 7 Elastique 2 Efficient
-- 8 Elastique 2 Soloist 9 Elastique 3 Pro 10 Elastique 3 Efficient 11 Elastique 3 Soloist
-- Too many submodes to list here but they follow the orders in the item properties drop down list
-- mode 6 and submode 2 sets algorithm to Elastique 2 with the Preserve Formants (Lower pitches) submode
local mode = 6
local submode = 2
for i=0,reaper.CountSelectedMediaItems(0)-1 do
  local item = reaper.GetSelectedMediaItem(0,i)
  local take = reaper.GetActiveTake(item)
  reaper.SetMediaItemTakeInfo_Value(take,"I_PITCHMODE",mode<<16|submode)
end
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios is offline   Reply With Quote
Old 07-11-2017, 02:04 PM   #3
Tuberizer
Human being with feelings
 
Tuberizer's Avatar
 
Join Date: Oct 2015
Posts: 82
Default

Quote:
Originally Posted by Xenakios View Post
It can be done with a Lua script like :
First off: thanks a ton man, glad to hear there is a way.

Unfortunately I have never worked with scripts and have actually no idea what you're talking about or where to start.

I'm willing to learn, could you help me out by pointing me in the right direction on how to implement your script?
Tuberizer is offline   Reply With Quote
Old 07-11-2017, 05:12 PM   #4
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Quote:
Originally Posted by Tuberizer View Post
First off: thanks a ton man, glad to hear there is a way.

Unfortunately I have never worked with scripts and have actually no idea what you're talking about or where to start.

I'm willing to learn, could you help me out by pointing me in the right direction on how to implement your script?
The first half of this video by The Reaper Blog explains how to work with ReaScript :

https://www.youtube.com/watch?v=9aQNCNGBF-c

I uploaded the script as a Lua file to :

https://drive.google.com/file/d/0Bwi...ew?usp=sharing

What you will need to experiment with by editing in the script yourself are the following lines to make it switch into the time stretch/pitch mode you want :

Code:
local mode = 6
local submode = 2
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios is offline   Reply With Quote
Old 07-12-2017, 12:27 AM   #5
Tuberizer
Human being with feelings
 
Tuberizer's Avatar
 
Join Date: Oct 2015
Posts: 82
Default

Quote:
Originally Posted by Xenakios View Post
The first half of this video by The Reaper Blog explains how to work with ReaScript :

https://www.youtube.com/watch?v=9aQNCNGBF-c

I uploaded the script as a Lua file to :

https://drive.google.com/file/d/0Bwi...ew?usp=sharing

What you will need to experiment with by editing in the script yourself are the following lines to make it switch into the time stretch/pitch mode you want :

Code:
local mode = 6
local submode = 2

YOU ARE MY HERO!!!

Just implemented it and it worked out perfectly. You cant imagine how much time this saves me. Thank you so so much!!!
Tuberizer 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 04:39 AM.


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