Coder Social home page Coder Social logo

noahdominic / nsimplecrusher Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 84 KB

A minimal bit crusher audio plugin capable of distortion from subtle air to total audio destruction

License: GNU General Public License v3.0

CMake 10.76% C 13.84% C++ 75.40%
audio-plugin audio-processing vst3 vst3-sdk

nsimplecrusher's Introduction

NSimpleCrusher

NSimpleCrusher is a basic bit-crusher/quantizer VST plugin designed for audio processing.

Installation

You can download the x64 VST3 file from the Releases page. Installation instructions vary depending on your digital audio workstation (DAW). Generally, you should place the VST3 file in C:\Program Files\Common Files\VST3 as most DAWs search for plugins there. In any case, please refer to your DAW's documentation for specific instructions.

Usage

NSimpleCrusher features the following parameters:

  • Pre-Gain: Adjusts the input gain level before saturation.
  • Crush: Sets the crush level of the audio signal.
  • Post-gain: Adjusts the output gain level after clipping.
  • Mix: Controls the blend between the dry and wet signals.

Simply adjust these parameters according to your preferences to shape the processed audio signal.

How crushing works

The algorithm for NSimpleCrusher uses a floor function manipulated by two parameters to limit the number of possible values in a given signal. The equation is as follows:

$$ h(x) = a^b \empheqbiglfloor \frac{x}{a^b} + 0.5 \empheqbigrfloor $$

where $x \in [-1,1]$ is the raw signal, $a \in [0,1]$ is the crush level, and $b \in \Re+$ is what I call the 'linearity inertia factor'. At $a=0$, $h(x)$ is a completely linear, unprocessed signal, and as $a$ approaches $1$, the number of possible values for $h$ decreases to three: ${-1, 0, 1}$. The linearity inertia factor $b$ controls how 'fast' the possible values for $h$ decreases to three. The interplay between the two factors can be hard to express in pure text form, so I encourage readers to play with the function and these variables in a graphing calculator.

Currently only $a$ is controllable with a VST parameter. Control of $b$ is being considered for future versions. Alternative relationships between $a$ and $b$ are also being considered (Currently $b$ serves as an exponent to $a$. Maybe we can consider other forms, like $a * b$?).

Compatibility

NSimpleCrusher has been tested on 64-bit Windows 11 with PreSonus Studio One and Ableton Live. While compatibility is not guaranteed, this plugin should be compatible with most DAWs. Currently, I do not have the resources to test this on macOS.

Licence

This plugin is distributed under the GPLv3 licence. See the LICENSE file for details.

Contact

For support, bug reports, or feature requests, please send me an email.

nsimplecrusher's People

Contributors

noahdominic avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.