Old 02-02-2017, 05:30 AM   #1
me2beats
Human being with feelings
 
me2beats's Avatar
 
Join Date: Jul 2015
Location: Yekaterinburg, Russia
Posts: 400
Default Getting stretch marker ratio

How to get stretch marker ratio?
I found SM line in track chunk but didn't understand what the numbers and "+" mean. Any ideas?
me2beats is offline   Reply With Quote
Old 02-05-2017, 12:19 AM   #2
mpl
Human being with feelings
 
mpl's Avatar
 
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 2,548
Default

Code:
idx = 1 
_, pos1, srcpos1 = reaper.GetTakeStretchMarker(take, idx)
_, pos2, srcpos2 = reaper.GetTakeStretchMarker(take, idx + 1)
ratio  = (srcpos2-srcpos1)/(pos2-pos1)
Quote:
I found SM line in track chunk but didn't understand what the numbers and "+" mean. Any ideas?
slope
__________________
SoundCloud | MPL Scripts discussion | ReaPack | Donate
mpl is offline   Reply With Quote
Old 02-05-2017, 11:00 AM   #3
me2beats
Human being with feelings
 
me2beats's Avatar
 
Join Date: Jul 2015
Location: Yekaterinburg, Russia
Posts: 400
Default

Quote:
Originally Posted by mpl View Post
Code:
idx = 1 
_, pos1, srcpos1 = reaper.GetTakeStretchMarker(take, idx)
_, pos2, srcpos2 = reaper.GetTakeStretchMarker(take, idx + 1)
ratio  = (srcpos2-srcpos1)/(pos2-pos1)


slope
Thanx mpl! Will deal with it
me2beats 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 01:36 PM.


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