Re: [Csnd] Audio Sample Pops
Date | 2020-03-20 16:17 |
From | Mark Ferguson |
Subject | Re: [Csnd] Audio Sample Pops |
A couple of suggestions to start with: 1. Check note length. From the canonical manual: http://www.csounds.com/manual/html/linen.html "A common error with this opcode is to assume that the value of 0 is the held after the envelope has finished at idur. linen does not automatically end or stop at the end of the duration given. If your note length is longer than idur seconds, kres (or ares) will not come to rest at 0, but will instead continue to fall with the same rate. If a decay and then hold is required then the linseg opcode should be considered instead. " 2. Try increasing the rise and decay lengths from 0.05 to at least 0.2. The rise and decay lengths in your example are very short, so that might be causing the pops (depending on the nature of the audio and how consistent it is). MF. Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2020-04-13 19:34 |
From | walker |
Subject | Re: [Csnd] Audio Sample Pops |
I am having this issue as well for certain samples/audio files. I have tried several of the envelope opcodes, adjusted the ksmps, and adjusted the release/decay times. Perhaps this is the wrong approach, but would stopping playback near a zero crossing eliminate these pops at the end of the playback, without having to adjust the decay/release time? Is this makes sense, do any of the envelope opcodes do this? Thanks, -walker -- Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2020-04-13 20:31 |
From | john |
Subject | Re: [Csnd] Audio Sample Pops |
On Mon, 13 Apr 2020, walker wrote: > I am having this issue as well for certain samples/audio files. > It would have helped if e knew wat this issue was! > I have tried several of the envelope opcodes, adjusted the ksmps, and > adjusted the release/decay times. > > Perhaps this is the wrong approach, but would stopping playback near a zero > crossing eliminate these pops at the end of the playback, without having to > adjust the decay/release time? Is this makes sense, do any of the envelope > opcodes do this? The various envelopes are to ensure that the signal is zero when stopped. I do nor think any of them work by waiting for a zero to appear; they create a zero. Can you give an example of what you are doing and what happes? i mean a csd file and anty necessary sample files. The smaller the better but deisplaying your problem. At present I feal wr do not have enough inormation to help ==John ff Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2020-04-13 20:39 |
From | Michael Gogins |
Subject | Re: [Csnd] Audio Sample Pops |
I generally use a declicking envelope. I add the attack time and release time to the total time of the note: iattack = .008 isustain = p3 irelease = .015 p3 = iattack + isustain + ireleasd adeclicking linsegr 0, iattack, 1, isustain, 1, irelease, 0 asignal = asignal * declicking This works for score-driven performance or if you have a real-time, MIDI-driven performance and use the command line MIDI interop flags, in which case the linsegr opcode jumps to the release segment on note off. This is in addition to any other envelopes and pretty much guarantees no audible clicks. Regards, Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Mon, Apr 13, 2020 at 3:32 PM john <jpff@codemist.co.uk> wrote: On Mon, 13 Apr 2020, walker wrote: |
Date | 2020-04-13 21:01 |
From | walker |
Subject | Re: [Csnd] Audio Sample Pops |
John and Michael, Thank you so much for the quick response. I think what Michael just posted is what I am looking for, will try it out and report back. Thanks again! -- Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2020-04-13 21:21 |
From | walker |
Subject | Re: [Csnd] Audio Sample Pops |
Yes, Michael, that was exactly what I was looking for. Much appreciated, cheers! -- Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |