Shop OBEX P1 Docs P2 Docs Learn Events
P2AMP - Wav Player with FFT Spectrum analyzer — Parallax Forums

P2AMP - Wav Player with FFT Spectrum analyzer

MXXMXX Posts: 21
edited 2026-02-05 17:57 in Propeller 2

Dear All,

I would like to share with you a small project I worked on during Xmas holidays.
It's a simple wav player (Winamp Style) running on the P2 Thing + LCD 4.3" (480x272) display with a nice FFT real-time spectrum analyzer.

It includes:

  • Paletted display driver to save hub memory (130 KB vs 390 KB with 256 colors 8 bit palette)
  • Different Fonts directly loaded from simple bitmap images
  • Wav player based on @Rayman code with some additions (like interactive volume control etc ..)
  • FFT for spectrum analyzer including windowing (hanning, hammin, flat-top, rectangular etc ..) and all related calculations for graphical representation of the spectrum.

I implemented my own FFT working on 16 bit signed samples (to save some memory) on a 4096 samples window updated every 1024 samples (audio @ 44.1 kHz 16 bit stereo).
4096 samples window at 44.1 kHz allows a good resolution at lower frequencies (approx 11 Hz).

This works on 4 cogs: main program, FFT, wav player and LCD.

Credits @Rayman for the player and LCD driver.

I can share details if interested.

Comments

Sign In or Register to comment.