Go Back   Home > Forums > >
Home Forums Rules Articles diyAudio Store Blogs Gallery Wiki Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

PC Based Computer music servers, crossovers, and equalization

PeppyMeter
PeppyMeter
Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 9th May 2016, 04:01 AM   #1
rpi is offline rpi  United States
diyAudio Member
 
Join Date: Apr 2015
Location: San Francisco
Default PeppyMeter

PeppyMeter is a software VU Meter written in Python. It was originally developed as new 'VU Meter' screensaver for Peppy Player. With minor modifications it became a stand-alone application. PeppyMeter gets audio data from media players (e.g. mpd) via fifo and displays current volume level in a Graphical User Interface in a form of traditional VU Meter.

Click the image to open in full size.

Here are the key features of the program:
  • Written in Python.
  • Pygame library leveraged for UI purposes.
  • Fixed resolution 480x320 pixels.
  • Can work with any media player which is capable to output PCM signal to the fifo/named pipe.
  • Supplies 9 default meters out of the box.
  • Allows to add your own meters.
  • Open-source. All source files are available on Github.
  • Provides different algorithms for processing PCM data.
  • Several data sources are available for testing and tuning.
More details including all source files can be found on project's wiki:
https://github.com/project-owner/PeppyMeter.doc/wiki
  Reply With Quote
Old 9th May 2016, 04:31 AM   #2
Odal3 is offline Odal3  United States
diyAudio Member
 
Join Date: Aug 2014
Like the looks of the meters. Well done!
  Reply With Quote
Old 9th May 2016, 02:07 PM   #3
GDO is offline GDO
diyAudio Member
 
GDO's Avatar
 
Join Date: Jul 2009
It looks great, but could not run it.

It looks like some issue with Python, which is the first time i use, btw...

Quote:
Traceback (most recent call last):
File "peppymeter.py", line 22, in <module>
from util import Util
File "/home/pi/PeppyMeter/util.py", line 24, in <module>
from config import Config
File "/home/pi/PeppyMeter/config.py", line 22, in <module>
from configparser import ConfigParser
ImportError: No module named configparser
__________________
"Fitz: I want to use an 8 inch woofer for more bass and a dipolar ribbon tweeter for sweet highs. And the enclosure should be a box with a vent, like everybody uses." S.L. Conversations with Fitz https://www.youtube.com/watch?v=59C7KZ5i42A
  Reply With Quote
Old 9th May 2016, 02:35 PM   #4
GDO is offline GDO
diyAudio Member
 
GDO's Avatar
 
Join Date: Jul 2009
Fixed!

https://github.com/project-owner/Peppy.doc/wiki


Quote:
Python comes with Raspbian distribution therefore there is no need to install it separately. The Peppy player was written using Python syntax of version 3. But the default Python version is 2.7. So if you just start Python from command line the version 2.7 will be in use. There is the symbolic link which points to version 2.7 - /usr/bin/python. That link should point to version 3 instead. To re-link run the following command:

sudo ln -s -f /usr/bin/python3.4 /usr/bin/python
I have seen from the previous project that your player is provided with a WEBui. Any chance to use your meter in a self made webui without too much work?
__________________
"Fitz: I want to use an 8 inch woofer for more bass and a dipolar ribbon tweeter for sweet highs. And the enclosure should be a box with a vent, like everybody uses." S.L. Conversations with Fitz https://www.youtube.com/watch?v=59C7KZ5i42A
  Reply With Quote
Old 9th May 2016, 06:10 PM   #5
rpi is offline rpi  United States
diyAudio Member
 
Join Date: Apr 2015
Location: San Francisco
Thank you Odal3 and GDO!

GDO, yes in addition to the touchscreen connected to the Raspberry, Peppy Player also has a Web UI.But that Web UI doesn't support the screensavers running in the touchscreen. That's because devices where you are running Web UI usually have they own screensavers. Another reason - eliminate network traffic. Therefore when Web UI receives 'start screensaver' event it just greys out the current screen. When it receives 'stop screensaver' event it removes that grey mask.

Theoretically PeppyMeter can be implemented in web browser as well. But there are some things which should be changed in the current Peppy Player implementation and some stuff should be created from scratch. Overall this is not one weekend task Maybe in version #2? But I don't guarantee that. I have some other plans for the next project.

If you feel yourself comfortable in Python and web technologies you can definitely try to do that yourself.
  Reply With Quote
Old 9th May 2016, 07:33 PM   #6
GDO is offline GDO
diyAudio Member
 
GDO's Avatar
 
Join Date: Jul 2009
Ok... obviously i don't really feel comfortable between snakes and screensavers...

Anyway your meter will be usefull for monitoring recording sessions on a rpi that i am trying to control from webui. I can still control the sessions from webui while outputting your meter to another screen connected to the rpi hdmi output.
__________________
"Fitz: I want to use an 8 inch woofer for more bass and a dipolar ribbon tweeter for sweet highs. And the enclosure should be a box with a vent, like everybody uses." S.L. Conversations with Fitz https://www.youtube.com/watch?v=59C7KZ5i42A
  Reply With Quote
Old 10th May 2016, 10:24 PM   #7
rpi is offline rpi  United States
diyAudio Member
 
Join Date: Apr 2015
Location: San Francisco
Quote:
Originally Posted by GDO View Post
...while outputting your meter to another screen connected to the rpi hdmi output.
That should work if you connect directly to rpi. I had slow meter needle animation when connected to rpi through VNC.
  Reply With Quote
Old 29th May 2018, 01:57 AM   #8
rpi is offline rpi  United States
diyAudio Member
 
Join Date: Apr 2015
Location: San Francisco
New version of PeppyMeter was released today.
New features:
  • Added new native resolution 320x240px
  • Redesigned volume data extraction from named pipe
  • Handling of data input from different audio players through ALSA file plugin
  • Implemented support for output to Serial Interface and I2C interface

Here is example implementation of I2C output:


Click the image to open in full size.


Click the image to open in full size.


Here is example implementation of Serial interface created by Tobias (Hamburg):


Click the image to open in full size.


More details can be found on wiki pages:
Home * project-owner/PeppyMeter.doc Wiki * GitHub

Last edited by rpi; 29th May 2018 at 02:01 AM.
  Reply With Quote
Old 30th May 2018, 11:15 AM   #9
RAndyB is offline RAndyB  United Kingdom
diyAudio Member
 
Join Date: May 2005
Location: Herefordshire
When I start peppymeter, the meter is showing frenetic activity before any sound program is running. Is that normal?

Your sample asoundrc is valid, but no sound comes from the speakers, and the short piece of music does not finish. Any thoughts?

Would be good if it can be made to work.

Regards,
Andy

Last edited by RAndyB; 30th May 2018 at 11:17 AM. Reason: speeling mystake
  Reply With Quote
Old 30th May 2018, 12:40 PM   #10
phofman is offline phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
Does the peppy script keep reading/flushing the named pipe? If the pipe buffer gets full, I would expect the playback to stop as the popen in file plugin starts waiting on the write operation to the pipe.
  Reply With Quote

Reply


PeppyMeterHide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 02:16 AM.


Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 15.79%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Copyright ©1999-2018 diyAudio
Wiki