Coder Social home page Coder Social logo

sigmundanalyzer's Introduction

sigmundAnalyzer

Real-time audio spectrogram to loopback v4l

Installation

You will need to install the following dependencies:

  • v4l2LoopBack this is not require to compile but is crucial for sigmund to stream the data to a video device
  • FFTW3
  • Alsa
  • Liblo

Assuming an ubuntu linux system you shuld install those dependencies doing this:

sudo apt-get install libfftw3-dev libasound2 libasound2-dev v4l2loopback-dkms v4l2loopback-utils liblo-dev

Clone, compile and install:

git clone https://github.com/patriciogonzalezvivo/sigmundAnalyzer.git
cd  sigmundAnalyzer
make
sudo make install

Usage

First you need to create a v4l2loopback device.

// Create a loopback video device in /dev/video9
sudo modprobe v4l2loopback video_nr=9 card_label="loopback"

// Check that is there
ls /dev/video*

Then you can run the program pointing that device as destination:

sigmund --spectogram /dev/video9

Then you can use GlslViewer to read from /dev/video9 and visualize the data as you prefere:

// As a regular FFT bars
glslViewer shaders/bars.frag /dev/video9 -l 


// Waterfall 
glslViewer shaders/waterfall.frag /dev/video9 -l 

TODO

  • Add octave analizer, beat detection
  • Add OSC for less often data... like octaves peaks and avarage

sigmundanalyzer's People

Contributors

patriciogonzalezvivo avatar

Stargazers

Daito Manabe avatar

Watchers

 avatar James Cloos avatar  avatar

sigmundanalyzer's Issues

Error opening PCM device plughw:0,0

ok, so I have the kernel headers installed! (that was a headache, hahaha)

first i run

sudo modprobe v4l2loopback video_nr=9 card_label="loopback"

then

sigmund --spectogram /dev/video9

and then I get the output:

Analazing 1024 frequency bands each one of 5.3833Hz
Error opening PCM device plughw:0,0

I think I just need to have it look at plughw:0,1 and not 0,0 ..... but I could be wrong. any way to check/change/set that value when calling sigmund?

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.