# \[SOLVED\] Minim library FFT help

**URL:** https://discourse.processing.org/t/solved-minim-library-fft-help/46184
**Category:** Libraries
**Created:** [April 9, 2025, 4:34pm UTC](https://discourse.processing.org/t/solved-minim-library-fft-help/46184 "2025-04-09T16:34:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![esc746](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/esc746/32/4258_2.png) [@esc746](https://discourse.processing.org/u/esc746)
#### Post date: [April 9, 2025, 4:34pm UTC](https://discourse.processing.org/t/solved-minim-library-fft-help/46184/1 "2025-04-09T16:34:39Z")

</div>

I am using Minim to display the spectrum of the _total output_ of my sketch. The example sketch Minim \> Analysis \> SoundSpectrum has this core algorithm:

```auto
AudioPlayer sound = minim.loadFile("sound.mp3", 1024);
FFT fft = new FFT( sound.bufferSize(), sound.sampleRate() );
fft.linAverages(30);
fft.forward(sound.mix);

// loop integer i over fft.specSize() and grab data using fft.getBand(i)

```

All the other examples use a file playback scenario. But what about when I am playing multiple oscillators? If I try this on an AudioOutput instance there is no data.

**Solution: Don’t use AudioPlayer but instead use FilePlayer. This is a UGen and can be connected to the output with patch().**
