<?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[Failsafe Against Audio Volume Slips]]></title><description><![CDATA[<p>I have heard that it is very easy to produce dangerous audio volumes (both to speakers and hearing) with Pure Data when even a slight slip or oversight occurs.</p>
<p>The general advice for combating this is simply to be very careful, and I have developed a number of habits when working in Pure Data, such as always using external speakers so that (presumably) my machine's internal sound system would not take any damage, keeping my Windows volume control as low as feasible, and adjusting my speaker volume knob up from min volume whenever playing audio. However, these measures still rely on accurate, human execution. Having recently read The Design of Everyday Things by Don Norman, I have come to belief that this is a suboptimal design which makes human error very likely to occur.</p>
<p>I am running Pure Data on Windows 7. Is there a way I can have either Windows or Pure Data put a cap on the maximum volume it will play? To be clear, I do not want a way to turn the Windows volume down more, as I would then be unable to hear the desired output of Pure Data. The danger is that the difference between desired volume and potential erroneous volume is many orders of magnitude, so I would like to be able to either put a hard ceiling on volume, or simply have the audio automatically muted while it is above a certain volume threshold. In the former case, it would be nice to also have some signifier to indicate that the ceiling is being applied.  Is it possible to do this in Windows or in Pure Data?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13410/failsafe-against-audio-volume-slips</link><generator>RSS for Node</generator><lastBuildDate>Sat, 16 May 2026 16:58:17 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/13410.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 20 Apr 2021 19:25:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Failsafe Against Audio Volume Slips on Tue, 20 Apr 2021 19:25:23 GMT]]></title><description><![CDATA[<p>I have heard that it is very easy to produce dangerous audio volumes (both to speakers and hearing) with Pure Data when even a slight slip or oversight occurs.</p>
<p>The general advice for combating this is simply to be very careful, and I have developed a number of habits when working in Pure Data, such as always using external speakers so that (presumably) my machine's internal sound system would not take any damage, keeping my Windows volume control as low as feasible, and adjusting my speaker volume knob up from min volume whenever playing audio. However, these measures still rely on accurate, human execution. Having recently read The Design of Everyday Things by Don Norman, I have come to belief that this is a suboptimal design which makes human error very likely to occur.</p>
<p>I am running Pure Data on Windows 7. Is there a way I can have either Windows or Pure Data put a cap on the maximum volume it will play? To be clear, I do not want a way to turn the Windows volume down more, as I would then be unable to hear the desired output of Pure Data. The danger is that the difference between desired volume and potential erroneous volume is many orders of magnitude, so I would like to be able to either put a hard ceiling on volume, or simply have the audio automatically muted while it is above a certain volume threshold. In the former case, it would be nice to also have some signifier to indicate that the ceiling is being applied.  Is it possible to do this in Windows or in Pure Data?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13410/failsafe-against-audio-volume-slips</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13410/failsafe-against-audio-volume-slips</guid><dc:creator><![CDATA[Metronome]]></dc:creator><pubDate>Tue, 20 Apr 2021 19:25:23 GMT</pubDate></item><item><title><![CDATA[Reply to Failsafe Against Audio Volume Slips on Tue, 20 Apr 2021 20:53:59 GMT]]></title><description><![CDATA[<p>PureData does have limits and it will clip when it reaches those limits, but there is no sane way for it to predict what the user is listening through, is it a 1500watt amp cranked or a 1/2watt headphone amp at moderate volume? You can stick a <code>[clip~]</code> before <code>[dac~]</code>, but this just makes it clip earlier than it normally would so you will have to turn the volume down or listen to the clipping. You can patch up a compressor to live before <code>[dac~]</code> with little effort and in the process you will learn a great deal about amplitude and signal flow, but all a compressor does for you is turn down the volume for you when a strong transient happens so you have to turn your volume down bellow the threshold of the compressor to avoid altering the sound. No matter what you do the solution is the same, you turn down the volume.</p>
<p>It is a system built of user, computer, os, puredata, soundcard, amplifier, speakers, and anything else you put in the chain, you designed the overall system and you are the only one who can make it optimal. Applying blanket standards to all things just does not work, the design of my kitchen knives are sub-optimal because they can cut me, but if they can not cut me they will not be able to cut up my pineapple. Get a book on audio engineering if you are worried.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13410/failsafe-against-audio-volume-slips/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13410/failsafe-against-audio-volume-slips/2</guid><dc:creator><![CDATA[oid]]></dc:creator><pubDate>Tue, 20 Apr 2021 20:53:59 GMT</pubDate></item><item><title><![CDATA[Reply to Failsafe Against Audio Volume Slips on Tue, 20 Apr 2021 23:25:54 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/metronome">@Metronome</a> I probably experienced somewhere in the neighborhood of 8-10 headphone explosions when I was new to Pd, and possibly suffered some nonzero amount of hearing damage as a result, so I can very much relate to your question. <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/boom.png" title="boom" alt=":boom:" /> <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grimacing.png" title="grimacing" alt=":grimacing:" /></p>
<p>Ultimately I came to accept this as inseparable from the nature of Pd as a programming language, in that it gives you the raw tools to do pretty much whatever you like (including things that may not be advisable, either for your ears or your computer). Nowadays I always approach any unfamiliar patch (a help patch, demo from this forum, or anything whatsoever) with caution; I always take a look at what's going into [dac~] first, as many of my past unpleasant experiences came from patches where the author simply connected a number box with no defined upper limit directly into the right inlet of [*~] as gain control, meaning that if you mouse directly on the number box to turn up the volume (without shift-clicking), it's quite easy to slip &amp; blast your ears in an instant.</p>
<p>For my own patch, I used zexy's [limiter~], which lets you specify an output limit in dB; you could make an abstraction which wraps such a limiter, and make sure to always add it in before [dac~] as a safety precaution in any patch you open. Or, when opening patches, just watch out for sketchy output levels before turning on DSP, and if necessary edit the patch first (perhaps [*~ 0.1] or [/ 100] or [dbtorms] may come in handy in these situations, if you catch my drift).</p>
<p>It is worth noting though that accidental volume spikes in general are certainly not unique to Pd, and keeping headphone/speaker volume low at first when checking levels is simply good practice with any speaker in any application.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13410/failsafe-against-audio-volume-slips/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13410/failsafe-against-audio-volume-slips/3</guid><dc:creator><![CDATA[beep.beep]]></dc:creator><pubDate>Tue, 20 Apr 2021 23:25:54 GMT</pubDate></item></channel></rss>