Code Monkey home page Code Monkey logo

livefft's Introduction

livefft

Real-time spectrum analyser in Python

Introduction

A basic spectrum analyser which reads data from the sound card and displays the time history and spectrum in real time.

Installation

Ubuntu 16.04 LTS

Using the system Python 2, install dependencies using apt:

sudo apt install python-pyqtgraph python-pyaudio

Clone & run livefft:

git clone https://github.com/ricklupton/livefft
python livefft/livefft.py

Anaconda

Using the Anaconda python distribution, create a new conda environment with the required pacakges and activate it:

conda create -n livefft -f requirements.txt
source activate livefft

Clone & run livefft:

git clone https://github.com/ricklupton/livefft
python livefft/livefft.py

Usage

The time signal is shown in the top plot, the spectrum below.

Adjusting plots

Adjust the zoom of plots using the mouse wheel over the axes, or by dragging with the right mouse button. Pan using the middle mouse button.

Tip: To zoom the frequency axis without losing the origin, place the mouse over 0 then spin the mouse wheel.

See the pyqtgraph documentation for more details.

Sampling time

Change the length of the sampling buffer with the + and - keys. Using a longer buffer can be useful to make the spectrum respond more slowly, or for looking at low frequencies. Using a shorter buffer makes the spectrum respond more quickly.

Other keyboard shortcuts

  • SPACE: pause
  • L: toggle log/linear scale
  • D: toggle downsampling (for faster graph updates)

livefft's People

Contributors

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