Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Feature Requests

Reply
 
Thread Tools Display Modes
Old 01-19-2018, 12:33 PM   #1
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
Default [API] Automation item source length

There doesn't seem to be any way to get or set the source length of an automation item through the API (except of course by saving the project first and looking for SRCLEN...). This would be useful for many scripts (I stumbled upon this while trying to do a Replace looped automation item with individual items).

Code:
local env = reaper.GetSelectedTrackEnvelope(0)
local srclen = reaper.GetSetAutomationItemInfo(env, 1, 'D_LENGTHSRC', 0, false)

Last edited by cfillion; 01-19-2018 at 12:41 PM.
cfillion is offline   Reply With Quote
Old 05-13-2019, 07:01 AM   #2
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
Default

bump, would come in handy here too.

edit:
Nevermind.

Quote:
Originally Posted by REAPER API doc
D_POOL_QNLEN : double *, automation item pooled source length in quarter notes (setting will affect all pooled instances)

Last edited by nofish; 05-13-2019 at 07:13 AM.
nofish 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 02:36 PM.


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