This was one of my first attempts at modifying a Nyquist plug-in (so please don’t expect good coding style 🙂
Someone asked me about how to fix some badly clipped audio. Repairing clipped audio is bad enough at any time, but in this case the problem was exacerbated because not only were some of the peaks clipped, but “inverted”
The modification to the standard ClipFix effect looks for inverted regions and converts them to “flat tops” by replacing the inverted section with a constant value that is equal to the clipping amplitude:
The plug-in then runs a second pass using the standard ClipFix code to reconstruct the peaks on the clipped regions.
Please note that this is an experimental plug-in and may contain bugs. Hopefully I’ll have time to revisit this effect at some time in the future and complete it.
Right click to save ESP-clipfix.ny
(For Internet Explorer “Save Target As”)
I get “Nyquist returned the value: 100000”. Using “debug”, I get this:
(I’m running Audacity 2.1.0).
Any idea?
Thanks in advance.
The plug-in as posted is only for mono tracks. In order to apply it to a stereo track you must (temporarily) split the track into two single channel tracks before applying the effect.
After applying the effect, the tracks may be rejoined into a stereo track.
See here in the manual for how to split / join stereo tracks:
http://manual.audacityteam.org/man/splitting_and_joining_stereo_tracks.html