GithubHelp home page GithubHelp logo

bigsealing / spuc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from audiofilter/spuc

0.0 0.0 0.0 128.3 MB

DSP Using C++ - Digital filters, Equalizers, Comm building blocks

License: GNU General Public License v3.0

Makefile 0.04% C++ 72.70% C 25.55% HTML 0.83% CMake 0.87%

spuc's Introduction

SPUC - Signal Processing Using C++

Build status - Mac Os X, clang

Build Status

This is an update of code that has been on sourceforge for about 14 years. The genesis of this code goes back even further - before decent C++ template support and availability of a useful complex class.

Most of the filtering code reqired here is now from spuce library rather than inherent to this library Also most files now use MIT License (check each file)

To install via Homebrew

  • brew tap audiofilter/spuc
  • brew install spuce
  • brew install spuc (or brew install -HEAD spuc for latest sources (unstable)

Library documentation pages here : http://audiofilter.github.io/spuc/


Various Sub-projects also on Github

SPUC_FIXED - Fixed point class similiar to SystemC Build Status

SPUCE - Update of spuc. At this point FIRs,IIRs and Windows supported. Includes QT Examples Build Status


Background Info

Since the code on sourceforge, has not compiled for modern compilers for several years, this update fixes compiler errors and other bugs found in more real-life testing. Also various parts have been updated/upgraded.

For now this is merely an update and is lacking in other documentation and / or examples.

In addition to very very basic examples, there are some in graphic_examples that can be compiled and display data using OpenGL For this purpose the cpplot project files are added as a subdirectory. This should work fine on a Mac if you have Boost installed. The examples display impulse responses for various filters. There is also an example that display BER for an MLSE Equalizer as noise is added to the input.

Travis is being used to display the build integrity and uses Clang on Mac OSX 10.9. However, this should also work fine with GCC 4.8


Information (details on http://audiofilter.github.io/spuc/ )

SPUC was originally written since early C++ had no complex class as part of a standard. In addition we needed a complex class to support handling fixed-point data types to model real hardware in digital communication ASICs. After that many filtering classes and functions were added. This allowed trading off stopband and cut-off without having to go to Matlab to recalculate coefficients. So of the filter types supported are (now in spuce)

  • Butterworth
  • Chebyshev
  • Elliptic
  • Maximally flat FIR
  • Remez Equiripple
  • Raised Cosine FIR
  • Gaussian FIR
  • CIC
  • Notch filter
  • Cut/Boost Filter
  • Halfband/Subband IIR filters

Digital Filter types are either FIR or IIR Filters. To separate filter design from filter usage, there are typically different classes involved rather than putting everything into one class.

Thus there is

  • a FIR coefficient class and an IIR coefficient class
  • Separate functions that calculate coefficients for the Classic IIR Filters:
    • Butterworth
    • Chebyshev
    • Elliptic
  • Separate functions that calculate coefficients for the various FIR Filters as noted above

Then typically separate classes that can implement these filters

  • For IIR filters design can be broken down to biquad sections which is what is typically used in hard-ware

In addition to digital filtering this library handles resampling using

  • Polyphase filtering approach
  • Cascaded Integrate Comb filters (or CIC filters)
  • Irrational resampling with Farrow & Lagrange based filters

================================================================================

Equalizers

  • FIR Adaptive filters

    • FIR only
    • FIR with Decision Feedback Estimator
  • Recursive Least Squares Estimator

  • Maximum Likelihood Sequence Estimators

    • MLSD
    • DDFSE
    • RSDFSE

================================================================================

Digital Communication Building Blocks

  • Phase lock loops + various discriminators

    • For carrier frequency acquistion and tracking
    • For Symbol timing synchronization
  • Cordic processor

  • QPSK, QAM Single Carrier Modulators/Demodulators

  • OFDM

  • Convolutional Encoder + Viterbi Decoder

  • Fading Channel


Examples - QPSK BER Simulation for various SNR ratios in AWGN

QPSK BER


A QT App for filter design - Use mouse to shape filters

http://github.com/audiofilter/spuc_filter

Demo App in SPUC filter


Requirements

  • cmake
  • boost for graphic examples

Building

# First spuce
git clone https://github.com/audiofilter/spuce.git
cd spuce
mkdir build
cd build
cmake ..
make install
# Now spuc
cd ../..
mkdir build
cd build
cmake ..
make

Extra switches to CMake enable the various examples to be built

  • SPUC_BUILD_ALL - Build everything
  • SPUC_EXAMPLES - Build the examples
  • SPUC_GRAPHICS - Build the examples that requires gl,opengl, etc

spuc's People

Contributors

audiofilter 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.