Old 10-12-2014, 06:09 AM   #1
spk77
Human being with feelings
 
Join Date: Aug 2012
Location: Finland
Posts: 2,668
Default EEL: Quantize tool for stretch markers

Quantize tool for stretch markers
  • Take playrate has to be 1 (I'm going to fix that later)
  • "Snap to grid" has to be enabled (works also if this is "off", but the toolbar button possibly blinks)
  • slider values from 0% to 100% -> quantizes stretch markers by X percent towards grid
  • slider values from 0% to -100% -> unquantizes stretch markers by X percent away from grid
While the script window is focused:
  • ctrl + z to undo
  • esc to close

Download:
https://stash.reaper.fm/22082/Quantiz...%20percent.eel


Last edited by spk77; 10-12-2014 at 06:37 AM.
spk77 is offline   Reply With Quote
Old 10-12-2014, 09:28 AM   #2
planetnine
Human being with feelings
 
planetnine's Avatar
 
Join Date: Oct 2007
Location: Lincoln, UK
Posts: 7,924
Default

Nice job.

Not thought of lumping them together in one tool with a select switch..?


>
__________________
Nathan, Lincoln, UK. | Item Marker Tool. (happily retired) | Source Time Position Tool. | CD Track Marker Tool. | Timer Recording Tool. | dB marks on MCP faders FR.
planetnine is offline   Reply With Quote
Old 10-12-2014, 11:09 PM   #3
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

Fantastic!!! Thank you so much spk77!
amagalma is offline   Reply With Quote
Old 10-13-2014, 04:13 AM   #4
airon
Human being with feelings
 
airon's Avatar
 
Join Date: Aug 2006
Location: Berlin
Posts: 11,817
Default

Wohoho. I have to try this tonight.

Thanks for making and sharing this.
__________________
Using Latch Preview (Video) - Faderport 16 setup for CSI 1.1 , CSI 3.10
Website
"My ego comes pre-shrunk" - Randy Thom
airon is offline   Reply With Quote
Old 10-13-2014, 09:18 AM   #5
vanhaze
Human being with feelings
 
vanhaze's Avatar
 
Join Date: Jul 2012
Location: Netherlands
Posts: 5,247
Default

Quote:
Originally Posted by planetnine View Post
Nice job.

Not thought of lumping them together in one tool with a select switch..?


>
That would be Heaven 2.0 for me.
vanhaze is offline   Reply With Quote
Old 10-13-2014, 09:47 AM   #6
spk77
Human being with feelings
 
Join Date: Aug 2012
Location: Finland
Posts: 2,668
Default

Quote:
Originally Posted by planetnine View Post
Nice job.

Not thought of lumping them together in one tool with a select switch..?
>
Quote:
Originally Posted by vanhaze View Post
That would be Heaven 2.0 for me.
Haven't decided yet - it shouldn't be too hard, but...

It might be better to keep them separated - it would be easier to add new features, like this "align feature" for the "Quantize tool for stretch markers":
  • Topmost/upper item is the source/guide item
  • The item is copied to other tracks -> that's why the waveforms/peaks are aligned almost perfectly. (Don't know how well this would work in real projects and different takes)

Note: "Quantize tool for stretch markers" doesn't have this feature yet




Quote:
Originally Posted by amagalma View Post
Fantastic!!! Thank you so much spk77!
Quote:
Originally Posted by airon View Post
Wohoho. I have to try this tonight.

Thanks for making and sharing this.
Thanks!


EDIT - Posted a test version to post#12 - ("Align stretch markers TEST1.eel")

Last edited by spk77; 10-14-2014 at 02:53 PM.
spk77 is offline   Reply With Quote
Old 10-13-2014, 02:34 PM   #7
Seventh
Human being with feelings
 
Seventh's Avatar
 
Join Date: Sep 2010
Location: Finland
Posts: 776
Default

Groove quantize with stretch markers O_O amazing work once again! THANK YOU!
__________________
Grey, flat and minimal theme for Reaper: Symbiosis
Seventh is offline   Reply With Quote
Old 10-13-2014, 03:43 PM   #8
planetnine
Human being with feelings
 
planetnine's Avatar
 
Join Date: Oct 2007
Location: Lincoln, UK
Posts: 7,924
Default

Groove quantise now spk, grind those brain cells together


>
__________________
Nathan, Lincoln, UK. | Item Marker Tool. (happily retired) | Source Time Position Tool. | CD Track Marker Tool. | Timer Recording Tool. | dB marks on MCP faders FR.

Last edited by planetnine; 10-13-2014 at 04:43 PM.
planetnine is offline   Reply With Quote
Old 10-14-2014, 04:25 AM   #9
HoJo
Human being with feelings
 
Join Date: Dec 2007
Location: Germany
Posts: 253
Default

Hi spk77.

Thanks for this. Only for your information:
I gave it a shot from the hip for my grouped drumtracks, but that didn't work.
In the future, that might be a cool improvement.

BR,
HoJo
HoJo is offline   Reply With Quote
Old 10-14-2014, 06:03 AM   #10
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
Default

And it could also be cool for auto-aligning background vox to main vox.
nofish is offline   Reply With Quote
Old 10-14-2014, 06:27 AM   #11
vanhaze
Human being with feelings
 
vanhaze's Avatar
 
Join Date: Jul 2012
Location: Netherlands
Posts: 5,247
Default

This thang has enormous potential, can't wait for a final version !
vanhaze is offline   Reply With Quote
Old 10-14-2014, 08:19 AM   #12
spk77
Human being with feelings
 
Join Date: Aug 2012
Location: Finland
Posts: 2,668
Default

Here's a very rough test version of "Align stretch markers".

Download:
https://stash.reaper.fm/22101/Align%2...rs%20TEST1.eel


There are a lot of "restrictions", unnecessary functions, hardcoded things etc. - well, this is a "test script"

Info
  • The first item is the "guide item" or "source item" (hard coded atm)
  • Select it and an another item. (the second selected item is the "target item". The stretch markers in this item will be moved)
  • Works only if 2 items are selected (topmost/upper selected item is always the "guide item"

Example usage of "Align stretch markers" - I'm adding the stretch markers manually, but I think this is still a quite fast process.
(btw. I'm using the free downloadable vocal takes from synchroarts->downloads->Tutorials and Sample Audio->stand alone->WAV audio collection )
  • Remove all stretch markers
  • First, add stretch markers to start/end of each item - i.e. start/end of audio (use the slider to align the audio)
  • This script reads the stretch marker positions from left to right (from the "source item")
  • Start adding markers from left to right - always add the same amount of markers to all items
  • If it doesn't sound good -> add more markers - always add the same amount of markers to all items
  • Try to add markers to start/end of silence (this will work the best)

spk77 is offline   Reply With Quote
Old 10-14-2014, 12:12 PM   #13
HoJo
Human being with feelings
 
Join Date: Dec 2007
Location: Germany
Posts: 253
Default

Hell yeah...spk77...wow that lloks promising.
WIll give it another try in the next days...
HoJo is offline   Reply With Quote
Old 10-14-2014, 12:15 PM   #14
sinkmusic
Human being with feelings
 
sinkmusic's Avatar
 
Join Date: Feb 2006
Location: decepticon mothership in a hidden place inside a mountain
Posts: 3,754
Default

Thank you so much.

But... I might be dumb, but i have no idea what a EEL script, where i should install it (into the Reaper folder ?), and, most of all : how am i supposed to "call" it when i am in Reaper : will it appear in the menus ? In the SWS actions list ?
sinkmusic is offline   Reply With Quote
Old 10-14-2014, 02:31 PM   #15
spk77
Human being with feelings
 
Join Date: Aug 2012
Location: Finland
Posts: 2,668
Default

Thanks everyone!

sinkmusik, EEL scripts are really easy to "install":

1) load a script file to your computer (ReaScript EEL files have ".eel" extension)
2) from the action list -> Select ReaScript: New/load... -> choose the file - press OK

Now you should see it in the Action list.
spk77 is offline   Reply With Quote
Old 10-14-2014, 02:43 PM   #16
sinkmusic
Human being with feelings
 
sinkmusic's Avatar
 
Join Date: Feb 2006
Location: decepticon mothership in a hidden place inside a mountain
Posts: 3,754
Default

Quote:
Originally Posted by spk77 View Post
2) from the action list -> Select ReaScript: New/load... -> choose the file - press OK
Now you should see it in the Action list.
Great, thank you !
sinkmusic is offline   Reply With Quote
Old 11-06-2014, 01:16 PM   #17
djjedidiah
Human being with feelings
 
Join Date: Nov 2011
Location: Denver, CO, USA
Posts: 447
Default

This doesn't seem to work quite right. I wanted to test if it was working on the grid settings or "the visible grid", and I used an item that already had a stretch marker on every snare snapped to the .2 and .4, but sliding toward quantize just moved them all to the left (almost to the previous 16th note, but not quite). Did I do something wrong? (this happens even when both grid and visible grid are at 1/4 and whether snap settings follows grid visibility is on or off)
djjedidiah is offline   Reply With Quote
Old 01-19-2015, 10:47 AM   #18
Infidel
Human being with feelings
 
Infidel's Avatar
 
Join Date: May 2011
Posts: 150
Default

spk77 you are a GOD! You cant believe how much potential this has and how much you have helped!
Infidel is offline   Reply With Quote
Old 01-19-2015, 11:03 AM   #19
spk77
Human being with feelings
 
Join Date: Aug 2012
Location: Finland
Posts: 2,668
Default

Quote:
Originally Posted by Infidel View Post
spk77 you are a GOD! You cant believe how much potential this has and how much you have helped!
Thanks ...I had already forgotten this thing. I have to think how to improve this.

@djjedidiah, this probably doesn't work well in every situations. There has to be exactly the same amount of stretch markers in source and target takes to make this work correctly.
spk77 is offline   Reply With Quote
Old 01-23-2015, 12:22 PM   #20
Infidel
Human being with feelings
 
Infidel's Avatar
 
Join Date: May 2011
Posts: 150
Default

I have a suggestion/request that i am hoping for, and if this works its gonna be a massive time saver:

Lets say we got two tracks, a reference one with some stretch markers added, and a second one that needs to be aligned to the first one.
Lets say we dynamically split the second one.

Would it be possible to align the beginnings of the sliced items of the second track to the stretch markers of the reference track by moving the items and not by stretching(like a "move items to stretch markers" action or something?
Infidel is offline   Reply With Quote
Old 01-23-2015, 01:33 PM   #21
spk77
Human being with feelings
 
Join Date: Aug 2012
Location: Finland
Posts: 2,668
Default

Quote:
Originally Posted by Infidel View Post
I have a suggestion/request that i am hoping for, and if this works its gonna be a massive time saver:

Lets say we got two tracks, a reference one with some stretch markers added, and a second one that needs to be aligned to the first one.
Lets say we dynamically split the second one.

Would it be possible to align the beginnings of the sliced items of the second track to the stretch markers of the reference track by moving the items and not by stretching(like a "move items to stretch markers" action or something?
That should be possible...if I modify this script:

EEL: Quantize tool (for item positions):
http://forum.cockos.com/showthread.php?t=145243


(first item would move towards first stretch marker, second item would move towards second stretch marker etc.)
spk77 is offline   Reply With Quote
Old 01-23-2015, 02:11 PM   #22
Infidel
Human being with feelings
 
Infidel's Avatar
 
Join Date: May 2011
Posts: 150
Default

That would be extremely awesome man! XD
Infidel is offline   Reply With Quote
Old 01-25-2015, 01:40 AM   #23
spk77
Human being with feelings
 
Join Date: Aug 2012
Location: Finland
Posts: 2,668
Default

Quote:
Originally Posted by Infidel View Post
I have a suggestion/request that i am hoping for, and if this works its gonna be a massive time saver:

Lets say we got two tracks, a reference one with some stretch markers added, and a second one that needs to be aligned to the first one.
Lets say we dynamically split the second one.

Would it be possible to align the beginnings of the sliced items of the second track to the stretch markers of the reference track by moving the items and not by stretching(like a "move items to stretch markers" action or something?

I've made some progress:

Time selection selects the guide markers:



I don't know how to handle the situations when item/marker count doesn't match...
spk77 is offline   Reply With Quote
Old 01-25-2015, 05:00 AM   #24
Infidel
Human being with feelings
 
Infidel's Avatar
 
Join Date: May 2011
Posts: 150
Default

Way to go spk77, really looking forward to this!
Infidel is offline   Reply With Quote
Old 01-25-2015, 10:40 AM   #25
Infidel
Human being with feelings
 
Infidel's Avatar
 
Join Date: May 2011
Posts: 150
Default

Quote:
Originally Posted by spk77 View Post

I don't know how to handle the situations when item/marker count doesn't match...
Hmmm maybe the items could be resized(the ending only,without stretching of course)??
Infidel is offline   Reply With Quote
Old 01-25-2015, 10:46 AM   #26
Lawrence
Human being with feelings
 
Join Date: Mar 2007
Posts: 21,551
Default

I'm in AWE of what SPK77 does with scripting.

My... main concern ... about it is why he even has to do it, why those things aren't already built into the application. I get why some of the more obscure stuff should be relegated to scripts, but in a great DAW like Reaper no new user should have to go seek out a script to quantize stretch markers imo. That should already be built into the application and should work from the same quantize dialog you use for everything else.

Reaper now has like... what ... at least 3 different quantize dialogs (maybe more)? The factory one, the fingers thing, and this one and whatever may show up in SWS. It's a little fragmented no?

Great work though. SPK77 should get the Reaper lifetime scripting award for all the great stuff he does.
Lawrence is offline   Reply With Quote
Old 01-25-2015, 11:14 AM   #27
musicbynumbers
Human being with feelings
 
musicbynumbers's Avatar
 
Join Date: Jun 2009
Location: South, UK
Posts: 14,214
Default

awesome! great work!
__________________
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 01-25-2015, 01:21 PM   #28
spk77
Human being with feelings
 
Join Date: Aug 2012
Location: Finland
Posts: 2,668
Default

Many thanks to you all

Quote:
Originally Posted by Infidel View Post
Hmmm maybe the items could be resized(the ending only,without stretching of course)??
I'll try that.

At 31s-> in the gif, there are 3 stretch markers "selected" and 9 selected (target)items. The first three items aligns nicely to the first 3 stretch markers, but the rest 6 items are packed to the third stretch marker. Hmm...how to solve that situation?
spk77 is offline   Reply With Quote
Old 01-25-2015, 02:59 PM   #29
musicbynumbers
Human being with feelings
 
musicbynumbers's Avatar
 
Join Date: Jun 2009
Location: South, UK
Posts: 14,214
Default

This very useful thanks!

I tried it with triplets in the grid and although moving it towards quantised works great, "unquastised" doesn't do anything with triplets.

apart from that small issue, all working well so far!
__________________
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 01-26-2015, 08:33 AM   #30
spk77
Human being with feelings
 
Join Date: Aug 2012
Location: Finland
Posts: 2,668
Default

Quote:
Originally Posted by musicbynumbers View Post
This very useful thanks!

I tried it with triplets in the grid and although moving it towards quantised works great, "unquastised" doesn't do anything with triplets.

apart from that small issue, all working well so far!
Thanks!
Yes, "Unquantize" doesn't do anything if stretch markers are already perfectly in the grid.
spk77 is offline   Reply With Quote
Old 01-26-2015, 02:53 PM   #31
musicbynumbers
Human being with feelings
 
musicbynumbers's Avatar
 
Join Date: Jun 2009
Location: South, UK
Posts: 14,214
Default

Quote:
Originally Posted by spk77 View Post
Thanks!
Yes, "Unquantize" doesn't do anything if stretch markers are already perfectly in the grid.
noted
__________________
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 02-07-2015, 02:54 AM   #32
musicbynumbers
Human being with feelings
 
musicbynumbers's Avatar
 
Join Date: Jun 2009
Location: South, UK
Posts: 14,214
Default

your diagram above gave me the idea of a tool for taking a selection of items and either moving them closer or further apart in a relative fashion.

I'd find that super 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.

Last edited by musicbynumbers; 02-07-2015 at 03:02 AM.
musicbynumbers is offline   Reply With Quote
Old 02-07-2015, 03:02 AM   #33
musicbynumbers
Human being with feelings
 
musicbynumbers's Avatar
 
Join Date: Jun 2009
Location: South, UK
Posts: 14,214
Default

Quote:
Originally Posted by spk77 View Post

At 31s-> in the gif, there are 3 stretch markers "selected" and 9 selected (target)items. The first three items aligns nicely to the first 3 stretch markers, but the rest 6 items are packed to the third stretch marker. Hmm...how to solve that situation?
maybe those last end set of items can be made so the first item sits on the marker but the following ones end up just either sequentially on the normal quantised grid or just one after the other but touching.

It might be good to have a tick box option though for 'all on top of each other' just in case its useful to someone ��
__________________
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 04-14-2015, 09:28 PM   #34
djjedidiah
Human being with feelings
 
Join Date: Nov 2011
Location: Denver, CO, USA
Posts: 447
Default

I just figured out my problem with this script (awesome work by the way).

It appears that the quantizing is affected by the grid "minimum pixels" setting.
Is there any way to decouple the script from this and just work on the snap division, ignoring the minimum pixels?
djjedidiah is offline   Reply With Quote
Old 04-14-2015, 09:35 PM   #35
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Posts: 2,436
Default

Quote:
Originally Posted by djjedidiah View Post
I just figured out my problem with this script (awesome work by the way).

It appears that the quantizing is affected by the grid "minimum pixels" setting.
Is there any way to decouple the script from this and just work on the snap division, ignoring the minimum pixels?
I actually have this solved in the SWS, I can export something like SnapToGridDivision(position) for the next SWS pre, so spk77 can reuse it in his script.
Breeder is offline   Reply With Quote
Old 05-28-2015, 08:22 AM   #36
G-Sun
Human being with feelings
 
G-Sun's Avatar
 
Join Date: May 2010
Location: Norway
Posts: 7,318
Default

This is quantize-heaven for me :thumbsup:

Is it:
- all stretch-markers in item
or
- selected stretch-markers
or both?
__________________
Reaper x64, win 11
Composer, text-writer, producer
Bandcamp
G-Sun is offline   Reply With Quote
Old 06-12-2015, 08:06 AM   #37
mamazai
Human being with feelings
 
Join Date: Oct 2009
Posts: 357
Default

How can I install this?
mamazai is offline   Reply With Quote
Old 06-24-2015, 05:20 AM   #38
G-Sun
Human being with feelings
 
G-Sun's Avatar
 
Join Date: May 2010
Location: Norway
Posts: 7,318
Default

I'll be looking forward to use this script.

Any chance for:
- Quantize stretch markers in time-selection?
__________________
Reaper x64, win 11
Composer, text-writer, producer
Bandcamp
G-Sun is offline   Reply With Quote
Old 06-24-2015, 05:28 AM   #39
G-Sun
Human being with feelings
 
G-Sun's Avatar
 
Join Date: May 2010
Location: Norway
Posts: 7,318
Default

I'd love to have a groove track in Reaper, one that I can Quantize my other tracks against.
Like having one main groove, then adding some triplets a few places, tweaking a few spots.
The quantize my bass, drums etc. to that, eg. 80%.
Would love that
__________________
Reaper x64, win 11
Composer, text-writer, producer
Bandcamp
G-Sun is offline   Reply With Quote
Old 09-27-2015, 09:15 AM   #40
Infidel
Human being with feelings
 
Infidel's Avatar
 
Join Date: May 2011
Posts: 150
Default

Hey spk77, any progress on the "move item" variation??
Infidel 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 05:01 AM.


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