Skip to content

ecashin/dumbclip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DumbClip

DumbClip is a hard clipper that doesn't try to be smart. It is an LV2 plugin.

clipped waveform

Build

DumbClip is written in Rust and is built using cargo. It has been tested only on Linux, where it can be installed as shown in the example below.

cargo build --release && \
cp target/release/libdumbclip.so dumbclip-lv2/ && \
sudo cp -a dumbclip-lv2/ /usr/local/lib/lv2/

Usage

DumbClip's heart is the clamp method. If sample values are over 1.0, they are "clamped" to 1.0. If sample values are below -1.0, they are clamped to -1.0.

This hard clipping will not occur unless the audio signal coming in exceeds the limits of -1.0 and 1.0. To clip more, turn up the level of the incoming signal.

The plugin's gain control can be used to elevate the incoming signal, resulting in more clipping, but this change is "undone" after clipping is performed. To increase gain persistently, you can raise the level of the incoming signal outside the plugin.

You can lower the level coming out of the plugin to keep the level sane.

To examine the effect on the waveform live, you can use an oscilliscope plugin like sisco.

About

Simple Hard Clipper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages