GithubHelp home page GithubHelp logo

freboursier / pivumeter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pimoroni/pivumeter

0.0 1.0 0.0 187 KB

ALSA plugin for displaying VU meters on various Raspberry Pi add-ons - derived from ameter

License: GNU General Public License v3.0

Makefile 0.08% M4 0.15% Shell 89.36% C 10.37% C++ 0.04%

pivumeter's Introduction

Pi VU Meter

ALSA Plugin to display a VU meter on various Raspberry Pi add-ons

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

In accordance with this license, we have chosen to publish Pi VU Meter under GPL version 3.0.

Pi VU Meter is Derived from the SDL display version of the ameter ALSA level meter plugin.

Installing

Currently, you will need to compile the pivumeter lib from source.

You may use our automated setup to do so, specifying the output device the wish to use (see options below):

setup.sh blinkt

if you'd rather compile and set things up yourself, read on!

pre-requisite

sudo apt-get install build-essential autoconf automake libtool libasound2-dev libfftw3-dev wiringpi

clone repository

if you haven't done so already, git clone this repository and cd into it:

git clone https://github.com/pimoroni/pivumeter
cd pivumeter

compiling from source

from the top of the repository, run the following to generate the MakeFile:

aclocal && libtoolize
autoconf && automake --add-missing

then, to compile and install:

./configure && make
sudo make install

Options

Pi VU Meter supports various options in your /etc/asound.conf, these include:

output_device

Specify which device to display the VU meter on.

Supported devices:

  • blinkt - Simple amplitude meter through Green->Yellow->Red
  • phat-beat - Simple stereo amplitude meter
  • speaker-phat - Simple mono amplitude meter
  • scroll-phat - displays 11-band FFT-based EQ
  • scroll-phat-hd - displays 17-band FFT-based EQ

brightness

Specify the pixel brightness from 0 to 255

bar_reverse

Mirror the bar direction.

Example

pcm_scope.pivumeter {
        type pivumeter
        decay_ms 500
        peak_ms 400
        brightness 128
        bar_reverse 0
        output_device blinkt
}

a full example of a suitable asound.conf file can be found in the dependencies directory.

pivumeter's People

Contributors

gadgetoid avatar roguem avatar ali1234 avatar nicokaiser avatar nicholas-gh avatar

Watchers

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