![]() |
ADSR - Printable Version +- HomSpace Forum (https://homspace.nl/forum) +-- Forum: SamplerBox (https://homspace.nl/forum/forum-1.html) +--- Forum: Community (https://homspace.nl/forum/forum-2.html) +--- Thread: ADSR (/thread-160.html) |
ADSR - soumello - 27-05-25 [font=-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"]Hi again Hansehv! I installed your samplerbox and i loved it! Really amazing! I was just wondering if there is a easy way to control attack release decay and sustain with it. I saw in the code that you added a linear function to do it however im trying here to add a exponencial function like normally is. Im still a beginner at coding for music stuff so im trying to figure it out how to do it, do you have any ideias since you now this code better than me? I was thinking about maybe trying with csound but i would have to change the sound engine or try to change the pyx code to use some exponential function for this adsr envelopes. Thanks for your attention![/font] RE: ADSR - noek - 28-05-25 Hi Soumello, Interesting question. Attack, Decay and Sustain envelope characteristics are taken from the sample(s), so I assume you talk about the Release. As far as I can see in samplerbox_audio.pyx, the time=length of the release is calculated linear, but the fadeout volume it self isn't. I can't really explain what the line pairs 176-177 and 195-196 do with the volume, but it certainly doesn't look linear. And it all sounds pretty natural. But perhaps I missed your point. Regards, Noek. RE: ADSR - soumello - 29-05-25 (28-05-25, 21:25)noek Wrote: hi noek! |