Code Monkey home page Code Monkey logo

sonometer's Introduction

license MIT

sonometer

A program to listen to sound intensity using a microphone

Requisites

This program requires a Python 3 interpreter with the following packages: pyaudio, numpy and matplotlib. Assuming you have pip just run:

pip install pyaudio numpy matplotlib

Perhaps using pip3 instead. Also make sure you have tk support.

Unexperienced users and Windows users are advised to download Anaconda (choosing python 3.X) and run from the command line

pip install pyaudio

to add the only package its installations lacks of.

Running

Download and call the scripts with your Python interpreter, e.g.,python3 sonometer.py.

Sonometer usage

When the application is started, sound will be sampled every 0.3 s and the measured intensity will be shown in the plot as a point. When the plot is filled, the points on the left will be replaced.

To record and save a certain amount of data, set the number of points you want to sample in the "streak points" field and keep the "save streak" option checked. Press "start streak" and wait for the streak to finish. The data will be saved as "dataXXX.csv", the number being of the form sec&min&hour&day&month&year. The position of the points in the plot is irrelevant to this.

To change the time per sample, use the text box in the application and press the update button. Values smaller than 0.1s might make the UI unresponsive and are not allowed. However, the file can be edited to force it. If needed, check the parameters in the last lines of the code.

Troubleshooting

  • Make sure the appropriate interpreter is being used. Python --version might help.
  • If you had a previously installed python version you might need to clear the PYTHONPATH variable.

sonometer's People

Contributors

dih5 avatar

Stargazers

Mathieu avatar A. Rodriguez avatar

Watchers

James Cloos 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.