Hi The problem actually seems to be with the en.ar <http://en.ar/> envelope. The name is misleading and should perhaps be en.ad (attack+decay) instead. The en.are envelope works as advertised where release is actually release (in the sense of an ADSR envelope). I don’t think there is a function for what you want to do in the standard libraries.
If you look at the source code https://github.com/grame-cncm/faustlibraries/blob/master/envelopes.lib <https://github.com/grame-cncm/faustlibraries/blob/master/envelopes.lib> you might be able to mix it together from the two mentioned functions. Best, Jonatan > On 4 Dec 2018, at 23.34, Daniele Filaretti <dfilare...@gmail.com> wrote: > > Hi all, > > I literally started with FAUST only a couple of days ago so I apologise in > advance in case those questions have been already answered elsewhere. > > I've been trying to build a simple drum synth plugin for a month or so > entirely in C++/JUCE when I heard about FAUST and how it can be used to > prototype the DSP part of a plugin and then compile it down to C++. After > reading some introduction and tutorials, I decided to give it a go so I am > now basically rewriting my plugin in FAUST, which I'll then integrate into > JUCE once I'm happy with it. > > Here's question one: for my envelopes, I am using the library function `en.ar > <http://en.ar/>` (https://faust.grame.fr/libraries.html#en.ar > <https://faust.grame.fr/libraries.html#en.ar>) which works perfectly for > percussive sounds (as it's basically a "one shot" envelope, once you send the > trigger it will play the whole envelope, ignoring how long you keep the > trigger pressed). > Now, this is good, but I see on the documentation that there is also an > exponential version, `en.are` (https://faust.grame.fr/libraries.html#en.are > <https://faust.grame.fr/libraries.html#en.are>), which I think would be even > better for the type of sound I want. I tried using that, but it seem to > behave differently from the linear version (`en.ar <http://en.ar/>`). I'm not > sure how to explain it, but it does not behave as "one shot"; if I keep the > trigger pressed, the sound continues. But apart from this, I also have the > impression that the `release` parameter is kind of ignored (but I may be > wrong). Am I missing something there or is it a bug? And, in general, how can > I achieve a simple Attack-Release percussion-style envelope with exponential > segments? > > Finally a more generic question: I've been using the online FAUST editor so > far which I reckon is very convenient especially when starting out or writing > little definitions. However I feel that now that what I'm doing is growing in > size, I'd benefit from local developed environment. I took a look at the > materials available online and if I understand correctly there are several > ways to use FAUST, from the command line, to the online tools, to the > FaustWorks and FaustLive IDEs etc. but now I am a bit confused because I'm > not sure which one is the most up to date, or the most > used/maintained/recommended etc.. Moreover, I am unfortunately on Windows 10 > which I suppose it may not be the most convenient platform to develop on. So > my question can probably be summarized as: what are some popular choices for > development environments and workflow on Windows? > > Thank you very much. > > Cheers, > Daniele > _______________________________________________ > Faudiostream-users mailing list > Faudiostream-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/faudiostream-users
_______________________________________________ Faudiostream-users mailing list Faudiostream-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/faudiostream-users