Coder Social home page Coder Social logo

everdrone / libsnd Goto Github PK

View Code? Open in Web Editor NEW
82.0 16.0 8.0 1021 KB

Digital Signal Processing Library and Audio Toolbox for the Modern Synthesist.

License: GNU Lesser General Public License v3.0

C++ 94.31% CMake 5.61% Shell 0.08%
dsp audio lib toolbox library digital-signal-processing music music-library audio-processing signal-processing

libsnd's Introduction



Digital Signal Processing Library and Audio Toolbox for the Modern Synthesist.

Attention

This library is still under development!
Read the docs and check out the examples.

Currently looking for contributors / enthusiasts, if you have an idea, found a bug or have an amazing new feature you want to add, feel free to clone, edit and open a Pull Request.

Building

git clone https://github.com/everdrone/libsnd.git
cd libsnd

mkdir build
cd build
cmake ..
make install

Usage

// main.cc
#include <iostream>
#include <snd.h>

#define SAMPLE_RATE 44100

int main(int argc, char **argv) {
  snd::Sine<float> s(SAMPLE_RATE);
  s.setFrequency(440);

  for (int i = 0; i < 512; i++) {
    std::cout << s.tick() << std::endl;
  }

  return 0;
}
g++ main.cc -o a.out -lsnd

Features

  • Oscillators
    • Anti Aliased
      • Sine
      • Triangle
      • Sawtooth
      • Square
      • Spectral (Sine Bank)
  • Filters
    • Zero Delay Feedback
    • Bilinear
    • Biquad
    • Modular / Multiband
    • Comb
  • Multistage Waveshaper
  • Envelope Generators
    • Multistage Envelope Generator
    • Classic Dual Stage (AD) Envelope Generator
    • "Ducking" Curve Generator
  • Envelope Follower
  • Interpolation
  • Denormal canceling
  • LFOs
    • Sine
    • Parabolic
    • Triangle
    • Sawtooth
    • Square
    • Random
    • Perlin
  • Effects
    • Delay
      • Interpolated
      • Non-Interpolated
    • Reverb
      • Spring
      • Convolution
    • Flanger
    • Phaser
    • Chorus
    • Stereo Panner
    • Ring Modulator
    • Bit Crusher
    • Compressor
    • Driver / Saturator
  • Utilities
    • LR to MS
    • MS to LR
    • Pitch (MIDI) to Frequency (Hz)
    • Frequency (Hz) to Pitch (MIDI)
    • Amplitude Factor to dB
    • dB to Amplitude Factor
    • Linear to Exponential
    • Linear to Logarithmic

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.