Path: csiph.com!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.javascript Subject: Re: I don't get it Date: Mon, 12 Apr 2021 11:21:39 +0100 Organization: A noiseless patient Spider Lines: 17 Message-ID: <87o8ejpzv0.fsf@bsb.me.uk> References: <1e965vkgenq7l$.hqmrkifgr4m5$.dlg@40tude.net> <586d1b88-77d5-42b0-ae5b-7506307df499n@googlegroups.com> <957a79db-946e-4f23-931a-ef7d4f0dbb3cn@googlegroups.com> <305fecc4-43da-4378-8430-ed10ac4dbe5bn@googlegroups.com> <20917gl3dv8shs6qqf1dqginq69e50aa54@4ax.com> <8735vytcwa.fsf@bsb.me.uk> <87lf9qrozz.fsf@bsb.me.uk> <875z0tq723.fsf@bsb.me.uk> <8b594439-379f-431f-8bf6-43c8066d3525n@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: reader02.eternal-september.org; posting-host="120ddd2ae2a23c364f0a40468e351ead"; logging-data="23603"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19aFtEoNdRsT1ig0O+f5TqhsMeEeqhoOu0=" Cancel-Lock: sha1:9izFX2Wj0JLjAbpW95rFLT/b52w= sha1:cFZNhtCGJcOkrUzQw0yBxkIDrpI= X-BSB-Auth: 1.5d018058f89fa8195c7a.20210412112139BST.87o8ejpzv0.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:39907 Jonas Thörnvall writes: > I still do not get it, so could someone comment on what goes wrong > with my approach "AND WHY LATENCY BUILDS UP" although i try to correct > it before each note played? Just give me a qualified guess. Your code is unmanagable. Almost any part of it can alter the behaviour of any other part. You might be sure what parts do what (though your repeated requests for help suggest you probably no longer know what the code is doing) but other people will find it almost impossible. Your best bet is to re-write it step by step making sure that functions are genuinely self-contained actions. Not only will the result be easier to modify, you will probably find the problem on your own. -- Ben.