Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Reply
 
Thread Tools
Old 12-02-2023, 08:32 PM   #1
abnegative
Human being with feelings
 
Join Date: Sep 2022
Posts: 262
Default Automation item with Sine LFO

When I create an automation item and open automation item properties to set the LFO shape to Sine, the envelope looks strange at first. It looks like the sine wave wants to be at half amplitude, then full, then half again; so when I loop the shape, I get a weird "sine" wave.

To make the shape look normal, I always have to first set the Phase to 25. Is this expected?

original post: https://forum.cockos.com/showthread.php?p=2739422
abnegative is offline   Reply With Quote
Old 12-02-2023, 09:42 PM   #2
akademie
Human being with feelings
 
Join Date: Mar 2007
Posts: 5,016
Default

Confirming! (v7.05+dev1113, x86, Windows10)
There is a wrong (opposite) curve when going from center to max amplitude at the begining of the item and when negative amplitude back to final center point.
(multiple cycles inside the item are correct)

The shifting phase can workaround it to look correct, but then the automation values do not start at center (if needed).
akademie is offline   Reply With Quote
Old 12-03-2023, 03:57 AM   #3
mindlessgenius
Human being with feelings
 
mindlessgenius's Avatar
 
Join Date: Aug 2023
Posts: 1,004
Default

Edit: I have to correct myself, confirmed for REAPER 7.06 x86_64, Fedora 39.

Steps to reproduce:
- Insert automation item
- set LFO shape to 'sine'
- loop automation item
- see the curve is not continuous


Last edited by mindlessgenius; 12-03-2023 at 05:48 AM.
mindlessgenius is online now   Reply With Quote
Old 12-03-2023, 06:22 AM   #4
mindlessgenius
Human being with feelings
 
mindlessgenius's Avatar
 
Join Date: Aug 2023
Posts: 1,004
Default

Possibly related:

I just tried to make a workaround.
  • I created an automation item of twice the length needed,
  • set it to two cycles,
  • trimmed away the inversed start and end segments
  • and copied the proper parts of the curves with snap enabled, and Ctrl+Left Drag from a time selection:

But when I tried to glue it in order to make it loop seamlessly this happened:

Difference:


Similarly with four cycles and just trimming to a single sine cycle, before glue:

Glued:

Difference:


Full imgur post:https://imgur.com/a/dFyhEft

Last edited by mindlessgenius; 12-03-2023 at 07:07 AM. Reason: added more screenshots
mindlessgenius is online now   Reply With Quote
Old 12-03-2023, 10:21 AM   #5
akademie
Human being with feelings
 
Join Date: Mar 2007
Posts: 5,016
Default

^^^^^ Nice proof with those difference pics, mindlessgenius.
Thank you for contribution to this bug report.
akademie is offline   Reply With Quote
Old 12-03-2023, 10:52 AM   #6
schwa
Administrator
 
schwa's Avatar
 
Join Date: Mar 2007
Location: NY
Posts: 16,955
Default

Yeah the problem is that REAPER has a sine/cosine envelope point shape, labeled "slow start/end", but not a native half-sine shape, actually we'd need two half-sine shapes. We can approximate these shapes using the same logic that gets applied when you trim an envelope, but as post #4 shows, it's an approximation. We'll think about the best way to handle this.
schwa is offline   Reply With Quote
Old 12-03-2023, 11:07 AM   #7
mindlessgenius
Human being with feelings
 
mindlessgenius's Avatar
 
Join Date: Aug 2023
Posts: 1,004
Default

Does that account for the LFO generator as well?
For glueing/manually drawn curves this seems reasonable, but for something labelled "Sine" in the automation item properties it is somewhat odd to have a different function on both ends.
mindlessgenius is online now   Reply With Quote
Old 12-03-2023, 11:16 AM   #8
abnegative
Human being with feelings
 
Join Date: Sep 2022
Posts: 262
Default

Quote:
Originally Posted by schwa View Post
Yeah the problem is that REAPER has a sine/cosine envelope point shape, labeled "slow start/end", but not a native half-sine shape, actually we'd need two half-sine shapes. We can approximate these shapes using the same logic that gets applied when you trim an envelope, but as post #4 shows, it's an approximation. We'll think about the best way to handle this.
Thanks, Schwa!

If you start making code changes for this, it may make sense to address this one at the same time: https://forum.cockos.com/showthread.php?t=285804
abnegative is offline   Reply With Quote
Reply

Thread Tools

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 12:07 PM.


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