On Sun, 26 Apr 2015 15:46:11 -0400 "Mark D. McCurry" <mark.d.mccu...@gmail.com> wrote:
> On 04-26, Will Godfrey wrote: > > Well that's what the code says :) > > > > This is the mechanism used by the 'stop' button (and currently only this > > button) to stop all sound. However it tries to do so fairly gently by > > making a > > graduated fade out. But this is articulated over the time of one buffer, so > > if > > you are running at 44.1k with a (total) buffersize of 2048 frames, that > > will be > > 46.4mS, but with 96k and 128 frames it will be 1.33 mS. > > > > I don't know how important this is, but I can think of a relatively easy > > (and > > computationally benign) way to make the fade work over a fixed time. The > > question is what sort of time should we head for? 1.33mS is likely to > > result in > > quite a loud click, and even 46.4 isn't ideal if we are interrupting a > > strong > > bass note. > > > > So, do we head for something like 100-200mS? Or do we not bother at all? > > 100ms sounds like it's quite reasonable, though there are quite a few > places in the code where there are transitions that take place over a > single buffer. Yes I know. Baby steps first :) > Is the plan to just add in another class var to keep track of the > fade-out/fade-in progress? Probably. Actually I just tried it out in a simple form, and it works perfectly over that buffer and sample range using 100mS as the decay time. Also, inside the fade loop I replaceed a subtraction and division with just a subtraction. Elsewhere different envelopes might make more sense. > For the panic button though, it makes sense to keep this transition as > short as possible. To a degree I'd go along with this for the sake of people's hearing, but I know from experience that really sudden cessation of sound can be just as damaging for some tweeters as a sudden start. Amplifiers, crossovers etc. can do some weird things under those conditions and create really nasty spikes. -- Will J Godfrey http://www.musically.me.uk Say you have a poem and I have a tune. Exchange them and we can both have a poem, a tune, and a song. ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Yoshimi-devel mailing list Yoshimi-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/yoshimi-devel