# Another Spectrogram

**URL:** <https://forum.juce.com/t/another-spectrogram/68830>\
**Category:** Audio Plugins\
**Created:** [May 15, 2026, 1:01am UTC](https://forum.juce.com/t/another-spectrogram/68830 "2026-05-15T01:01:23Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![brown2rl](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@brown2rl](https://forum.juce.com/u/brown2rl)\
**Post date:** [May 15, 2026, 1:01am UTC](https://forum.juce.com/t/another-spectrogram/68830/1 "2026-05-15T01:01:23Z")

</div>

I could use some help with my Spectrogram plugin.

Everything builds fine, but it seems like the processor buffer has 0 samples after using it in audacity.

Any ideas?

---

<div class="post-metadata">

**Author:** ![icebreakeraudio](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/icebreakeraudio/32/10446_2.png) [@icebreakeraudio](https://forum.juce.com/u/icebreakeraudio)\
**Post date:** [May 15, 2026, 7:36am UTC](https://forum.juce.com/t/another-spectrogram/68830/2 "2026-05-15T07:36:30Z")

</div>

If the buffer in the plugins processBlock is always size 0, then something isn’t setup correctly with the host/system.  
If your spectrogram processor has a buffer of size 0, then there’s a bug somewhere in your code. I’d start with making sure the buffer from the processBlock is being passed to any additional processors correctly.  
Without any additional information, that’s the best I can give you. It’s very hard to debug with so little to work with. It’s kind of like saying “I need help finding a house, its somewhere in England, any ideas?”

---

<div class="post-metadata">

**Author:** ![brown2rl](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@brown2rl](https://forum.juce.com/u/brown2rl)\
**Post date:** [May 15, 2026, 1:39pm UTC](https://forum.juce.com/t/another-spectrogram/68830/3 "2026-05-15T13:39:52Z")

</div>

Thanks for the reply.

It seems as though it is the buffer in the processBlock is size 0. I copied what was returned by getNumberofSamples function to a member variable in the Spectrogram class and displayed the value as text in the UI.

---

<div class="post-metadata">

**Author:** ![ImJimmi](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/imjimmi/32/10843_2.png) [@ImJimmi](https://forum.juce.com/u/ImJimmi)\
**Post date:** [May 15, 2026, 2:39pm UTC](https://forum.juce.com/t/another-spectrogram/68830/4 "2026-05-15T14:39:38Z")

</div>

Have you tried other DAWs and/or the Standalone app?

---

<div class="post-metadata">

**Author:** ![brown2rl](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@brown2rl](https://forum.juce.com/u/brown2rl)\
**Post date:** [May 15, 2026, 3:06pm UTC](https://forum.juce.com/t/another-spectrogram/68830/5 "2026-05-15T15:06:05Z")

</div>

No other DAWs, standalone app shows the same thing (although standalone isn’t connected to an Audio source).

---

<div class="post-metadata">

**Author:** ![ImJimmi](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/imjimmi/32/10843_2.png) [@ImJimmi](https://forum.juce.com/u/ImJimmi)\
**Post date:** [May 15, 2026, 3:13pm UTC](https://forum.juce.com/t/another-spectrogram/68830/6 "2026-05-15T15:13:55Z")

</div>

Maybe try it with the JUCE plugin host or a DAW like Reaper to see if you get the same.

Also try running with a debugger and putting a breakpoint in the `processBlock()` to inspect the actual object passed in to rule out that it’s not just the label not updating properly.

---

<div class="post-metadata">

**Author:** ![brown2rl](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@brown2rl](https://forum.juce.com/u/brown2rl)\
**Post date:** [May 15, 2026, 3:58pm UTC](https://forum.juce.com/t/another-spectrogram/68830/7 "2026-05-15T15:58:01Z")

</div>

Good idea with the debugger. I tried that, and it looks like it’s updating, but with 0 samples.

---

<div class="post-metadata">

**Author:** ![brown2rl](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@brown2rl](https://forum.juce.com/u/brown2rl)\
**Post date:** [May 17, 2026, 3:14pm UTC](https://forum.juce.com/t/another-spectrogram/68830/8 "2026-05-17T15:14:38Z")

</div>

@ImJimmi Tried the audio plugin host and same issue occurred.

---

<div class="post-metadata">

**Author:** ![brown2rl](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@brown2rl](https://forum.juce.com/u/brown2rl)\
**Post date:** [May 17, 2026, 11:53pm UTC](https://forum.juce.com/t/another-spectrogram/68830/9 "2026-05-17T23:53:23Z")

</div>

@ImJimmi @icebreakeraudio I figured out that the plugin is somehow creating infinite channels, thus never being able to iterate through them.

---

<div class="post-metadata">

**Author:** ![brown2rl](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@brown2rl](https://forum.juce.com/u/brown2rl)\
**Post date:** [May 18, 2026, 1:05am UTC](https://forum.juce.com/t/another-spectrogram/68830/10 "2026-05-18T01:05:34Z")

</div>

Solved by restricting the number of busses to 1
