Plug-ins, Hosts, Apps,
Hardware, Soundware
Developers
(Brands)
Videos Groups
Whats's in?
Banks & Patches
Download & Upload
Music Search
KVR
   
KVR Forum » DSP and Plug-in Development
Thread Read
Envelope implementation, help
Goto page Previous  1, 2
bitwise
KVRist
- profile
- pm
PostPosted: Mon Jan 14, 2013 1:22 pm reply with quote
nastyfingers wrote:


I tried storing a previous sample like with filters and mixing the 2 however this just causes signal overload.


    currentSamp = prevSamp + (currentSamp * (1.0f / attack));




You're accumulating more than you should. Keep track of the current adsr level, separately:

...
envLevel = envLevel + increment;
...
return envLevel;


Leave currentSamp out of the ADSR class and multiply it by the value returned by the ADSR::process method.
^ Joined: 18 Mar 2012  Member: #277127  
nastyfingers
KVRer
- profile
- pm
- e-mail
PostPosted: Fri Jan 18, 2013 4:27 pm reply with quote
^ Joined: 11 Jan 2013  Member: #296245  Location: Sheffield, UK
nastyfingers
KVRer
- profile
- pm
- e-mail
PostPosted: Wed Jan 23, 2013 3:33 am reply with quote
I replied ages ago guys but it just doesn't seem to want to appear on the thread. When I go to edit it all my text is there, just not on the thread. Can anyone see what I wrote?
^ Joined: 11 Jan 2013  Member: #296245  Location: Sheffield, UK
All times are GMT - 8 Hours

Printable version
Page 2 of 2
Goto page Previous  1, 2
Display posts from previous:   
ReplyNew TopicPrevious TopicNext Topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Username: Password:  
KVR Developer Challenge 2012