Impulse - PulseAudio visualizer

Conky

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

44
Score 85.7%
Description:

Impulse is a bit of eye-candy for your desktop. It is a widget that displays a graphical spectrum analyzer on your gnome desktop. It is written in c and python and uses GTK and cairo graphics to generate the animation. the impulse library creates a pulse audio connection context that reads the output stream from pulseaudio in a thread natively which can then be read from python. You can specify impulse to either output the raw stream or output the fft of the raw stream.


Requires:
screenlets 1.2
libfftw3-3
libpulse0


Install:
1) Download and extract Impulse.tar.bz2
2) mv Impulse ~/.screenlets/
then open up the screenlets manager and start Impulse or open screenlets manager and click Install, navigate to the Impulse.tar.bz2 archive and click ok.
Last changelog:

9 years ago

Impulse 0.5.5
Fixed issue cause by latest Ubuntu update and added ability to change the audio source. Also updated the default theme.

Impulse 0.5.0
New structure. Themes now editable.

Impulse 0.2.4
Fixed screenlet menu bug and use a smarter way to identifying the pa monitor source.

Impulse 0.2.2
Added new screenlet themes

Impulse 0.2.0
Project is under a new name, Impulse. Now natively captures PulseAudio output source

Spectrolet 0.1.4:
Switched from ESOUND to Pulseaudio

Spectrolet 0.1.2:
Now preforms an fft on the audio stream

Spectrolet 0.1.0:
Now uses gtk.main correctly







chaoticseraph

11 years ago

I did what you said, and this is what it gave me in the terminal.

laura@Anemane:~$ .screenlets/Impulse/ImpulseScreenlet.py
CachingBackend: Loading instances from cache
No global tempdir found, creating new one.
Temp directory /tmp/screenlets created.
Creating new entry for ImpulseScreenlet in /tmp/screenlets/screenlets.laura.running
Loading instances in: /home/laura/.config/Screenlets/Impulse/default/
No instance(s) found in session-path, creating new one.
/home/laura/.config/Screenlets/Impulse/default/Impulse1
Traceback (most recent call last):
File ".screenlets/Impulse/ImpulseScreenlet.py", line 119, in <module>
screenlets.session.create_session( ImpulseScreenlet )
File "/usr/lib/python2.6/dist-packages/screenlets/session.py", line 472, in create_session
session.start()
File "/usr/lib/python2.6/dist-packages/screenlets/session.py", line 246, in start
sl = self.screenlet(session=self, id=self.__get_next_id())
File ".screenlets/Impulse/ImpulseScreenlet.py", line 47, in __init__
import impulse
ImportError: /home/laura/.screenlets/Impulse/impulse.so: wrong ELF class: ELFCLASS64

Report

C

ianimal

11 years ago

Ah, ok. So go into the Screenlets manager, click on Impulse and click uninstall. Then click the 1st download link on this site, it is labled "Impulse screenlet x86", download it, and install that one. You must have just downloaded the 64 bit version whereas your cpu is 32 bit.

Report

chaoticseraph

11 years ago

That worked. Thank you. Sorry for the hassle.

Report

malcom666

11 years ago

I suppose this might sound like a dumb question but:

I use OSS 4.1 as it provides the best sound output and utilises my hardware better, I have removed ALSA and Pulse will I be able to get this screenlet to work?

It installs and loads fine, it just does not move, I have the required files installed, so I guess it is that I am not using pulse audio - is this correct?

Thanks

Report

C

ianimal

11 years ago

So i've looked more into OSS 4.1 over the past few days and am very impressed. I installed it on my laptop to test it out and it is great, so much better than PulseAudio and I hope the Ubuntu team will drop PulseAudio as the default and switch over to OSS. I did a bit of research into capturing the mixed audio using OSS and I think i've got a good direction. When I get some free time I am going to try and port Impulse to OSS.

Report

malcom8257

11 years ago

Hi, thanks for your reply, I have switched back to ALSA / Pulse and the screenlet works just fine. I was having issues with OSS 4.1 anyway - the system and application sounds did not work so I thought what the hell!

Report

C

ianimal

11 years ago

Impulse only works with PulseAudio unfortunately. I chose PulseAudio because it seems to be the most popular and the one that I use. I don't know if it would be possible to do with OSS, it would take some time and research to figure out. Unfortunately I probably won't do it unless I get enough request for OSS support.

Report

romtrack

11 years ago

thx ianimal :)
that is cool :D
But is it normal that my cpu is use a 50 %? I have put 100 colonnes and that is all.
I have some other screenlet but when I turn off impulse my cpu usage is about 4 % thx for answering

Report

romtrack

11 years ago

I am wrong it use more or less 33 %

Report

C

ianimal

11 years ago

As I mentioned above Impulse performs an FFT on the audio stream at 30 fps, redraws the animation at 30 fps, and the PulseAudio system doesn't have the greatest performance track record...as a result Impulse takes some CPU usage. I have a fast dual core which is why my CPU is at 6%, which, if I had a single core would automatically jump to 12%. If your system is twice as less powerful as mine and has a single core it could easily slip up to your aforemetioned 30%. All of the heavy processing is done in C (natively) and is as fast as it can get. The best option I have is to offload the fft to the GPU. Also a cairo graphics backend that utilizes the GPU would also help.

Report

romtrack

11 years ago

thx for your answer. My cpu is a dual core too a 3.6ghz but that is maybe I have compiz and some other screenlet but anyway that is a fun screenlet :D

Report

hugoreyes

11 years ago

best thing ever made
it uses a *bit* much cpu

Report

C

ianimal

11 years ago

Thank you. Yes it does use some CPU. On my system its an average of 6% while playing audio and 2% without music. Since impulse needs to perform an fft on the audio stream which is O( n*log(n) ) and at 30 frames a second its expensive. I have thought about offloading the fft to the GPU using something like OpenCL (http://en.wikipedia.org/wiki/OpenCL) which might be able to cut the CPU load in half if it works!

Report

duron23

9 years ago

Did you managed to rewrite this screenlet using pyopencl ??

This screenlet is a one hack of a fun screenlet

Report

peacewithall

11 years ago

Haha, this is brilliant, thanks so much for this !!.

Report

F0R2AKEN

11 years ago

ianimal...i love you

Report

UbuntuLee

11 years ago

People like this? Its a little odd. Do you people just view your desktop all day? Desktops are rather worthless you know. Windows cover the desktop most of the time.

Report

C

ianimal

11 years ago

Is your comment directed specifically towards this screenlet because your point of view really applies to all screenlets as being worthless. The whole point of this concept is to be unobtrusive. There is no reason to have Impulse in your face all the time since it is just something cool and interesting rather than functional. And it all depends on how you set up your desktop and whether you keep windows always maximized or not. For instance I have a dock on the bottom and put Impulse in the bottom left corner. Even maximized windows do not cover that space where the dock, and Impulse, and another screenlet showing the current song being played are. And yes I think most people do like it, or are at least intrigued by it considering it is currently the highest rated submission on this website. So by odd, I assume you mean different and original? Free yourself from the constructs of the window...

Report

C

ianimal

11 years ago

btw, thank you all for your appreciative comments of my work! I'm glad its being enjoyed.

Report

fipi3

11 years ago

This is an amazing screenlet. But I have a few questions.
I too have the problem of the colors not sticking after a restart, except in the default theme. Can I make the colors permanent in the other themes, or is this a bug?
Also, I launched 4 impulse screenlets, but I want to remove one of them. Of course, I can quit one. But after I restart screenlets there are 4 again. Any way to permanently remove the 4th one?
Thanks for this screenlet! It's one of my favorites.

Report

C

ianimal

11 years ago

The colors can be made permanent, and you can remove already running impulses. These are not bugs with impulse but with screenlets. I have hacked a way to support customization by theme since they are all so different, global customization doesn't make sense. I would quit all four, then start them again. Whenever you select a different theme you have to close the options window before you try and edit the colors.

Report

fipi3

11 years ago

Ok thanks, I got it set up the right way now.

Report

mixman2009

11 years ago

This is really awesome
works great and smooth
but I really have problem with the original theme. every time i restart my computer I have to change the blue colour to white. how can I make it white permanently.


thank you in advance

Report

seeminglee

11 years ago

Admittedly I was looking for the 'other' kind of visualizer which works with pulseaudio but came across yours instead. It works great - now you've got me installing my first permanent screenlet to stay. Interestingly I find it oddly beneficial as its subtle pulses combined with trance from headphones brings much encouraging support to late working hours. Best of all, it take ambient interface onto a completely different level - the zero foot-print brings ambient interface onto a whole new level while I do not feel an ounce of GUI space taken away from me - thus becoming the first screenlet that I use...

Kudos!

Report

cypherpunk

11 years ago

DUDE .. this software DEFINES coolness .. very well done thank-you !! I love how you have made it as un-obtrusive as possible (like still being able to interact with other apps while being on top)

One feature that you may want to implement is being able to show the screenlet on demand when it detects a media player being launched.

Thanks once again for this excellent cool software !!

Report

9 years ago

Impulse 0.5.5
Fixed issue cause by latest Ubuntu update and added ability to change the audio source. Also updated the default theme.

Impulse 0.5.0
New structure. Themes now editable.

Impulse 0.2.4
Fixed screenlet menu bug and use a smarter way to identifying the pa monitor source.

Impulse 0.2.2
Added new screenlet themes

Impulse 0.2.0
Project is under a new name, Impulse. Now natively captures PulseAudio output source

Spectrolet 0.1.4:
Switched from ESOUND to Pulseaudio

Spectrolet 0.1.2:
Now preforms an fft on the audio stream

Spectrolet 0.1.0:
Now uses gtk.main correctly







12345678910
33
product-maker KDE4WasBetter Oct 14 2017 9 excellent
product-maker tavaresgerson May 27 2017 9 excellent
product-maker apocrifa Jan 03 2015 9 excellent
product-maker Brahimsalem Apr 16 2013 9 excellent
product-maker Xephexx Aug 19 2012 9 excellent
product-maker draco23hack Mar 15 2012 9 excellent
product-maker posixru Jan 04 2012 9 excellent
product-maker lolsas Oct 22 2011 9 excellent
product-maker Ahmose Jul 21 2011 9 excellent
product-maker tobaj Jul 19 2011 9 excellent
product-maker Thalic Jun 24 2011 9 excellent
product-maker kolesky Apr 11 2011 9 excellent
product-maker XNight Mar 15 2011 9 excellent
product-maker brainpower Feb 11 2011 9 excellent
product-maker linuxbear Feb 04 2011 9 excellent
product-maker thenameisadib Jan 08 2011 9 excellent
product-maker LGD Dec 31 2010 9 excellent
product-maker rafeviper Dec 26 2010 9 excellent
product-maker sw2 Dec 13 2010 9 excellent
product-maker kenpou7 Dec 13 2010 9 excellent
product-maker Drakon Dec 05 2010 9 excellent
product-maker li9ux Dec 05 2010 9 excellent
product-maker drxnele Dec 03 2010 9 excellent
product-maker areco23 Dec 02 2010 9 excellent
product-maker Naf71 Dec 02 2010 9 excellent
product-maker mixalns Dec 01 2010 9 excellent
product-maker nickcloy Dec 01 2010 9 excellent
product-maker mr32 Nov 28 2010 9 excellent
product-maker likimoki Nov 27 2010 9 excellent
product-maker lor-anonymous Nov 26 2010 9 excellent
product-maker scottiw2000 Nov 26 2010 9 excellent
product-maker ubuntico Nov 26 2010 9 excellent
product-maker mystica Nov 26 2010 9 excellent
product-maker Base: 4 x 5.0 Ratings
MojoMan
Feb 12 2016
simon9007
Feb 01 2012
tobaj
Jul 19 2011
bmfc187
Feb 12 2011
brainpower
Feb 11 2011
LGD
Dec 31 2010
sw2
Dec 13 2010
mystica
Nov 30 2010
mr32
Nov 28 2010
Dawei87
Nov 27 2010
masstrider
Aug 30 2010
CruelAngel
Jul 18 2010
wasabi
Jul 15 2010
MRTOA5T
Jun 18 2010
nanderz
Jun 09 2010
peacewithall
May 29 2010
Naf71
May 10 2010
sgl
Apr 23 2010
CLEARview
Feb 28 2010
gimox
Feb 27 2010
swano
Jan 21 2010
webmastir
Jan 04 2010
larryni
Dec 12 2009
raulmanoelr
Dec 05 2009
linux4ever
Dec 03 2009
btdwn
Oct 21 2009
romerotek
Aug 31 2009
Keidon
Aug 23 2009
shankru85
Aug 09 2009
momokatte
Jul 31 2009
gnuf
Jul 21 2009
switzak
Jul 19 2009
LaGaDesk
Jun 25 2009
maxo64
Jun 02 2009
Simmeson
May 26 2009
Telperien
May 24 2009
mixman2009
May 19 2009
berot3
May 16 2009
dilomo
May 03 2009
CookedGryphon
Apr 27 2009
dspencer82
Apr 12 2009
Ausmosis
Apr 12 2009
techie
Mar 09 2009
4tis
Mar 09 2009
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.5.5
updated Dec 12 2010
added Feb 14 2009
downloads 24h
1
mediaviews 24h 0
pageviews 24h 24