COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :
Old 08-14-2017, 03:42 PM   #1
Opcode 7
Human being with feelings
 
Join Date: Mar 2017
Posts: 25
Default Looking for a good Envelope Control Example

Good day all! I am trying to create a pretty ADDSRR envelope Control -- can anyone suggest an example (ASDR?) envelope control I can look at in any open source works?

Cheers
Opcode 7 is offline   Reply With Quote
Old 08-15-2017, 11:35 AM   #2
earlevel
Human being with feelings
 
Join Date: Dec 2015
Posts: 254
Default

Check my series here, including source code:

http://www.earlevel.com/main/categor...pe-generators/
earlevel is online now   Reply With Quote
Old 08-15-2017, 12:56 PM   #3
mibes
Human being with feelings
 
Join Date: Apr 2017
Posts: 35
Default

Martin Finke's iPlug tutorial has a good section on how ADSRs work and how you can put them together.

As for GUI, I'm working on a nice multi-step envelope control with bezier curves in Cairo that will repurpose as an ADSR nicely. I'll post it up tomorrow when I've finished tweaking it.
mibes is offline   Reply With Quote
Old 08-15-2017, 04:12 PM   #4
Opcode 7
Human being with feelings
 
Join Date: Mar 2017
Posts: 25
Default

Mibes, That would be helpful! Cheers


Earlevel -- Your website fucking rocks. Bookmarked on my toolbar Just the kind of resource I've dreamt about. Thank you!
Opcode 7 is offline   Reply With Quote
Old 08-17-2017, 07:37 AM   #5
mibes
Human being with feelings
 
Join Date: Apr 2017
Posts: 35
Default

here you go. Seems to work good well and looks nice enough. Thrown together crudely, I'm sure you can improve on it a lot, but hopefully it'll save you the trouble of figuring out a few troublesome issues.

https://github.com/larzeitlin/IPlug-...ples/MultiStep

Note, you'll have to add all of the triggering mechanics / behaviours of an envelope. This is just a control.

You can set the shape and pull out data for a y value for a given x (decimal between 0.0 and 1.0 - a decimal phase if you will);



obv this gif is much lower rez than the real thing...

Last edited by mibes; 08-17-2017 at 08:24 AM.
mibes is offline   Reply With Quote
Old 08-17-2017, 10:21 AM   #6
Opcode 7
Human being with feelings
 
Join Date: Mar 2017
Posts: 25
Default

WoWOWoWoWoW! That looks amazing! Awesome work Thank you!!!

Question: I only use Windows & VST2's -- and know nothing about macOS. Is Camel just a macOS image library, or can this work on Windows / VST ?
Opcode 7 is offline   Reply With Quote
Old 08-17-2017, 10:26 AM   #7
mibes
Human being with feelings
 
Join Date: Apr 2017
Posts: 35
Default

Quote:
Originally Posted by Opcode 7 View Post
WoWOWoWoWoW! That looks amazing! Awesome work Thank you!!!

Question: I only use Windows & VST2's -- and know nothing about macOS. Is Camel just a macOS image library, or can this work on Windows / VST ?
my pleasure

Cairo? (I see the link ) Nothing to do with OSX. it should work fine as a VST under Windows. Try building it and see if you have problems. Youlean is the one to ask about it really, this is all using his branch of WDL.
mibes 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 08:33 PM.


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