Old 09-17-2019, 05:13 AM   #1
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,109
Default GetEnvelopeStateChunk() - meaning of isundo flag?

What does the isundo flag in GetEnvelopeStateChunk() exactly do?
I can't make much sense of the description in the API doc:
Quote:
Undo flag is a performance/caching hint.
Only reference I found is here, but that's related to GetTrackStateChunk():
https://forum.cockos.com/showthread.php?t=181000

In my use case I'm (only) interested in getting the contained envelope points (specifically of receive envelopes), would there be any performance improvement in setting isundo true/false?
nofish is offline   Reply With Quote
Old 09-17-2019, 05:18 AM   #2
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,629
Default

I always use false but only because I don't know better

Best thing would be some benchmark: Use the GetEnvelopeStateChunk-function 10000 times and see, whether it takes longer with true or with false. Would be my naive approach.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 09-17-2019, 09:46 AM   #3
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,109
Default

Quote:
Originally Posted by mespotine View Post
Best thing would be some benchmark:
Or maybe a more informative API description as it seems I'm not the only one not getting what it means. :P
nofish is offline   Reply With Quote
Old 09-18-2019, 05:25 AM   #4
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,629
Default

Feature Request time
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine 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 03:02 PM.


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