visualizer: don't draw fade out paint when there's no content

Smoothes out transitions from song to song

Change-Id: I3d8485d34d33de1b6f2f76ca3930e18830025dac
Signed-off-by: Roman Birg <>
1 file changed
tree: 5fc212d9bf5367e108e8f7d8e38ff22a33a62bde
  1. src/
  2. .gitignore

Android Visualizer

A View subclass that Takes the input from the Android MediaPlayer and displays visualizations, like in iTunes or WinAmp

The Visualizer is designed to be modular, so it is very easy to combine visualizations to create more complex effects.


It's easy to create your own custom visualizations or combine/edit existing ones. Below are a few examples:

A pair of frequency distributions.

This is an example which uses the FFT data rather than the raw audio waveform

Line visualization

Draws the audio waveform on screen, pulsing on prominent beats

Circle visualization

Draws the audio waveform in a circle, with the radius changing over time

Combined visualization

A combination of all the above


Released under the MIT license.