Giter Site home page Giter Site logo

audio_playground's Introduction

Audio Playground

Playground for me to play with FFTs and CoreAudio.

This code was all written between 9pm and 2am while preparing for my wedding, so... my apologies.

Installation

This code is tied to CoreAudio and thus will only run on OS X!

After cloning this repo, run:

brew install fftw
bundle install

Usage

To run the crude band-pass filter in interactive mode where you can tweak the parameters and hear the output:

# Plug in headphones!
# Turn volume *down* until you're running the processor, then turn it up to taste!

bin/sm-discover-audio
# Replace '39' below with the ID listed for 'Built-in Microphone' from above:
bin/sm-audio-processor --input-device=39 --map=0,1 --window=8192 --span=4 --mode=interactive

# Non-interactive, against a pure sine-wave:
bin/sm-audio-processor --input-file="test/fixtures/[email protected]" --window=8192 --span=4 --map=0,1

The audio will lag considerably due to the size of the sliding window / span parameters. As my math is... not close to correct yet, reducing these parameters reduces the quality of the filtering considerably.

Testing

bin/test.sh

This will run some simple regression tests to ensure that the filter behavior hasn't changed, using a variety of pure sine-wave recordings. To see if the behavior has changed, do git status to see if any of the files in test/results have been changed.

audio_playground's People

Contributors

csouls avatar davidbegin avatar lepht avatar lpeabody avatar meltingice avatar mertdumenci avatar mrjoy avatar quicksander avatar riywo avatar shokai avatar sodabrew avatar soffes avatar sshao avatar

Watchers

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