<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Strategies to create an volume ramp to eliminate clicks and pops when playing a soundfile]]></title><description><![CDATA[<p>Hi,</p>
<p>I am playing a sound file in reverse sometimes in a fast rhythm and I am getting a lot of clicks and pops.</p>
<p>My attempt to eliminate the clicks and pops is not so great.<br />
I have a screen shot so you can see what I am doing.<br />
When I bang the button an audio file is played for 2 seconds. If I press the button before the end of the 2 seconds I get a pop because the audio that was playing is cut off and the audio file playback jumps to another location and starts over.</p>
<p>If you see in the red box on my screen shot, I am trying to use line~ to have the volume go to 0 and ramp back up to 1, but it degrades the sound quality at the beginning of the audio file playback. Also, I need to ramp down the volume to 0 first and then ramp the volume back up, and that is what I am missing in my version.</p>
<p>Can anyone please suggest a way to create a silent volume fade at the beginning of when the audio file is played? And it should account for the line~ being interrupted and the file being played again. Let me know if anyone has any suggestions. Thank You.</p>
<p><img src="/uploads/files/1743654961144-audiofade.jpg" alt="audioFade.jpg" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/15077/strategies-to-create-an-volume-ramp-to-eliminate-clicks-and-pops-when-playing-a-soundfile</link><generator>RSS for Node</generator><lastBuildDate>Tue, 17 Mar 2026 16:08:48 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/15077.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 03 Apr 2025 04:36:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Strategies to create an volume ramp to eliminate clicks and pops when playing a soundfile on Thu, 03 Apr 2025 04:36:05 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>I am playing a sound file in reverse sometimes in a fast rhythm and I am getting a lot of clicks and pops.</p>
<p>My attempt to eliminate the clicks and pops is not so great.<br />
I have a screen shot so you can see what I am doing.<br />
When I bang the button an audio file is played for 2 seconds. If I press the button before the end of the 2 seconds I get a pop because the audio that was playing is cut off and the audio file playback jumps to another location and starts over.</p>
<p>If you see in the red box on my screen shot, I am trying to use line~ to have the volume go to 0 and ramp back up to 1, but it degrades the sound quality at the beginning of the audio file playback. Also, I need to ramp down the volume to 0 first and then ramp the volume back up, and that is what I am missing in my version.</p>
<p>Can anyone please suggest a way to create a silent volume fade at the beginning of when the audio file is played? And it should account for the line~ being interrupted and the file being played again. Let me know if anyone has any suggestions. Thank You.</p>
<p><img src="/uploads/files/1743654961144-audiofade.jpg" alt="audioFade.jpg" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/15077/strategies-to-create-an-volume-ramp-to-eliminate-clicks-and-pops-when-playing-a-soundfile</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/15077/strategies-to-create-an-volume-ramp-to-eliminate-clicks-and-pops-when-playing-a-soundfile</guid><dc:creator><![CDATA[nicnut]]></dc:creator><pubDate>Thu, 03 Apr 2025 04:36:05 GMT</pubDate></item><item><title><![CDATA[Reply to Strategies to create an volume ramp to eliminate clicks and pops when playing a soundfile on Thu, 03 Apr 2025 06:03:14 GMT]]></title><description><![CDATA[<p>A 200ms is probably a bit too long for what you need. 20ms should be OK for avoiding clicks.<br />
For what you want to do, you probably need two buttons, one for starting and one for early stopping. The second one should first bang a &quot;1, 0 20&quot; message sent to a [line~], then bang a [del 20] object, to delay this bang by 20ms, and the [del 20] should bang a [t b b b] (use as many &quot;b&quot; here as you need) to restart the whole process of playing back a file (including banging the &quot;0, 1 200&quot; message).</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/15077/strategies-to-create-an-volume-ramp-to-eliminate-clicks-and-pops-when-playing-a-soundfile/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/15077/strategies-to-create-an-volume-ramp-to-eliminate-clicks-and-pops-when-playing-a-soundfile/2</guid><dc:creator><![CDATA[alexandros]]></dc:creator><pubDate>Thu, 03 Apr 2025 06:03:14 GMT</pubDate></item><item><title><![CDATA[Reply to Strategies to create an volume ramp to eliminate clicks and pops when playing a soundfile on Thu, 03 Apr 2025 12:30:51 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/nicnut">@nicnut</a> I agree with <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/alexandros">@alexandros</a> that 200 ms is too long and think you could even try something shorter than 20 ms.</p>
<p>Here's another strategy: make 2 voices that accept play/stop commands and then toggle between them, e.g.<br />
<img src="/uploads/files/1743682057535-screenshot-2025-04-03-080709.png" alt="Screenshot 2025-04-03 080709.png" class="img-responsive img-markdown" /> This sends the stop command to one voice and the play command to the other, so that the voices effectively crossfade. The voices should fade up on start and fade out on stop, and if a stopped voice receives a stop command, it should keep quiet. This scheme will still pop if you bang twice within the crossfade period, but you could prevent that using a lock-out timer.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/15077/strategies-to-create-an-volume-ramp-to-eliminate-clicks-and-pops-when-playing-a-soundfile/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/15077/strategies-to-create-an-volume-ramp-to-eliminate-clicks-and-pops-when-playing-a-soundfile/3</guid><dc:creator><![CDATA[jameslo]]></dc:creator><pubDate>Thu, 03 Apr 2025 12:30:51 GMT</pubDate></item><item><title><![CDATA[Reply to Strategies to create an volume ramp to eliminate clicks and pops when playing a soundfile on Thu, 03 Apr 2025 20:18:59 GMT]]></title><description><![CDATA[<p>Hi Alexandros and Jameslo.</p>
<p>Thanks for the suggestions. The 20 ms ramp down then ramp up works really well. It's completely silent. Thank You.<br />
I am adding a screenshot as well. <img src="/uploads/files/1743711534107-audiofade2.jpg" alt="audiofade2.jpg" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/15077/strategies-to-create-an-volume-ramp-to-eliminate-clicks-and-pops-when-playing-a-soundfile/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/15077/strategies-to-create-an-volume-ramp-to-eliminate-clicks-and-pops-when-playing-a-soundfile/4</guid><dc:creator><![CDATA[nicnut]]></dc:creator><pubDate>Thu, 03 Apr 2025 20:18:59 GMT</pubDate></item></channel></rss>