If you are talking about the spectrum of an audio frequency spectrum, you can take the following steps:
- Converting audio data to raw audio format, such as 16-bit PCM (possibly on Windows if you use a stream)
- Use a fast Fourier transform library such as JTransforms to calculate the frequency spectrum from your window.
- Visualize an array containing spectrum values
Puckl source share