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

Reply
 
Thread Tools Display Modes
Old 12-22-2008, 10:54 AM   #1
liteon
Human being with feelings
 
liteon's Avatar
 
Join Date: Apr 2008
Posts: 510
Default Reduce number of envelope points (DONE)

Hello,

This is not like a feature request more like a suggestion Since its not that essential.

A function to optimize (reduce) number of envelope points.
In regard of editing points after automation.

The "optimize" algo wouldn't be anything fancy.
Here is an example of what the function would do:

[img]http://img50.**************/img50/7619/optimizepointswa4.jpg[/img]

There could be also a setting for each track.
"Number of envelope points" (N / Time)
- min
- medium
- max (i think that the current amount that we have is the 'max' setting)

^
this is probably easier to implement since there already is a time interval based function.




But I may have missed an existing option in Reaper
or any simillar suggestions posted before.

I may end up writing this as an extention (if possible). Still adding this as a default would be nicer.

I just always end up deleting lots of points after automation...
Lazy crew... x)

Liteon
liteon is offline   Reply With Quote
Old 12-22-2008, 03:12 PM   #2
Dstruct
Human being with feelings
 
Join Date: Jul 2006
Posts: 12,480
Default

Quote:
Originally Posted by liteon
[img]http://img50.**************/img50/7619/optimizepointswa4.jpg[/img]
I wouldn't like this result. Removing unnecessary points on the horizontal lines would be cool but the curve is too optimized/straight in this example IMO.
Dstruct is offline   Reply With Quote
Old 12-22-2008, 03:45 PM   #3
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,677
Default

I agree with dstruct.

Perhaps "Optimize" should only remove an envelope point if it is the same value (plus/minus a small delta number) as the previous point?

- so if you wanted to keep the points in the arcs, the delta would be 0,
- and if you wanted to remove them, the delta would be, say, 5.
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is offline   Reply With Quote
Old 12-22-2008, 05:27 PM   #4
liteon
Human being with feelings
 
liteon's Avatar
 
Join Date: Apr 2008
Posts: 510
Default

Quote:
Originally Posted by DarkStar View Post
I agree with dstruct.

Perhaps "Optimize" should only remove an envelope point if it is the same value (plus/minus a small delta number) as the previous point?

- so if you wanted to keep the points in the arcs, the delta would be 0,
- and if you wanted to remove them, the delta would be, say, 5.
Yeah the example is bit extreme - like maximum optimization!
But then again removing points with delta=0 could be done at the end of the recording. Or even in realtime: you start recording and a point should be added only if the value of the automated parameter is diffirent. This eliminates the need of any "optimizations" and such....:-) for me at least since I would probably leave all points in curves as they are recorded.

Code:
                            [3]------->
                           /
                          /
[1]---------------------[2]
*** point [2] is created when the the parameter is automated. between [1] and [2] we have no automation and no additional points.

This solution I like.

Last edited by liteon; 12-22-2008 at 05:42 PM.
liteon is offline   Reply With Quote
Old 12-22-2008, 05:51 PM   #5
Dstruct
Human being with feelings
 
Join Date: Jul 2006
Posts: 12,480
Default

Quote:
Originally Posted by liteon
But then again removing points with delta=0 could be done at the end of the recording. Or even in realtime: you start recording and a point should be added only if the value of the automated parameter is diffirent.
Yeah, this would be great!
Dstruct is offline   Reply With Quote
Old 12-22-2008, 08:00 PM   #6
schwa
Administrator
 
schwa's Avatar
 
Join Date: Mar 2007
Location: NY
Posts: 15,750
Default

There's already an option to reduce points while recording automation, though it's quite well hidden -- click the envelopes button on the toolbar. The option should cause new points to be written only once per second if the value hasn't changed.
schwa is offline   Reply With Quote
Old 12-22-2008, 08:32 PM   #7
joe2
Human being with feelings
 
Join Date: Sep 2008
Location: UK
Posts: 394
Default

My take on the issue, these actions should be added:

- Remove points from current (selected) envelope where point is same value as previous AND same value as next
- Remove points from all [active|visible|armed] envelopes where points is same value as previous AND same value as next

...

Pretty similar to what DarkStar is suggesting, I think. (And the delta preference may as well be thrown in there.)

@ schwa: I think it would be useful if such an action existed for manually editing envelopes post-recording.

Cheers!
joe2 is offline   Reply With Quote
Old 12-23-2008, 04:53 AM   #8
liteon
Human being with feelings
 
liteon's Avatar
 
Join Date: Apr 2008
Posts: 510
Default

Quote:
Originally Posted by schwa View Post
There's already an option to reduce points while recording automation, though it's quite well hidden -- click the envelopes button on the toolbar. The option should cause new points to be written only once per second if the value hasn't changed.
Ah thanks I did not know of this option. :-D

@joe2
Yes I agree this would be cool. For more consolidated envelopes.
liteon is offline   Reply With Quote
Old 12-23-2008, 01:59 PM   #9
Dstruct
Human being with feelings
 
Join Date: Jul 2006
Posts: 12,480
Default

Quote:
Originally Posted by schwa View Post
There's already an option to reduce points while recording automation, though it's quite well hidden -- click the envelopes button on the toolbar. The option should cause new points to be written only once per second if the value hasn't changed.
Why do you write a new point every second if the value hasn't changed?
Dstruct is offline   Reply With Quote
Old 12-23-2008, 10:16 PM   #10
Banned
Human being with feelings
 
Banned's Avatar
 
Join Date: Mar 2008
Location: Unwired (probably in the proximity of Amsterdam)
Posts: 4,868
Default

Quote:
Originally Posted by Dstruct View Post
Why do you write a new point every second if the value hasn't changed?
Perhaps to not be dependant on seek back functionality?

Anyway, I like the idea but would like to see it more generalized. Imho we should also be able to /increase/ the number of values by interpolation for smoothing purposes.
__________________
˙lɐd 'ʎɐʍ ƃuoɹʍ ǝɥʇ ǝɔıʌǝp ʇɐɥʇ ƃuıploɥ ǝɹ,noʎ
Banned is offline   Reply With Quote
Old 01-13-2009, 09:03 AM   #11
Dstruct
Human being with feelings
 
Join Date: Jul 2006
Posts: 12,480
Default

DONE (2.99 alpha preview 8)
Dstruct 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:48 PM.


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