# Synthesizer Audio output buffer

**URL:** <https://forum.juce.com/t/synthesizer-audio-output-buffer/20132>\
**Category:** Audio Plugins\
**Created:** [December 3, 2016, 5:12pm UTC](https://forum.juce.com/t/synthesizer-audio-output-buffer/20132 "2016-12-03T17:12:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![masqutti](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/masqutti/32/1348_2.png) [@masqutti](https://forum.juce.com/u/masqutti)\
**Post date:** [December 3, 2016, 5:12pm UTC](https://forum.juce.com/t/synthesizer-audio-output-buffer/20132/1 "2016-12-03T17:12:30Z")

</div>

Hi!

I need to “catch” the audio stream output from the synthesizer to be able to adjust the actual audio after the sythesizer… How to do that? I’m pretty new to JUCE. 🙂

Thanks,  
Masqutti

---

<div class="post-metadata">

**Author:** ![lessp](https://avatars.discourse-cdn.com/v4/letter/l/43a26b/32.png) [@lessp](https://forum.juce.com/u/lessp)\
**Post date:** [December 4, 2016, 1:59am UTC](https://forum.juce.com/t/synthesizer-audio-output-buffer/20132/2 "2016-12-04T01:59:20Z")

</div>

Hey Masqutti, you probably have the synthesiser output in the process block or similar, so just put your additional processing afterwards?

---

<div class="post-metadata">

**Author:** ![masqutti](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/masqutti/32/1348_2.png) [@masqutti](https://forum.juce.com/u/masqutti)\
**Post date:** [December 4, 2016, 2:28am UTC](https://forum.juce.com/t/synthesizer-audio-output-buffer/20132/3 "2016-12-04T02:28:26Z")

</div>

Ok, thanks for the tip… I just have synth[channel]-\>rendernNextBlock(…) there… How can I get the output to work with it? I didn’t find any method inside synthesizer class for it. ☹

---

<div class="post-metadata">

**Author:** ![lessp](https://avatars.discourse-cdn.com/v4/letter/l/43a26b/32.png) [@lessp](https://forum.juce.com/u/lessp)\
**Post date:** [December 4, 2016, 2:15pm UTC](https://forum.juce.com/t/synthesizer-audio-output-buffer/20132/4 "2016-12-04T14:15:34Z")

</div>

Hey Masqutti, I’d recommend going through the tutorials!

[https://www.juce.com/tutorials](https://www.juce.com/tutorials)

---

<div class="post-metadata">

**Author:** ![daniel](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/daniel/32/790_2.png) [@daniel](https://forum.juce.com/u/daniel)\
**Post date:** [December 4, 2016, 2:41pm UTC](https://forum.juce.com/t/synthesizer-audio-output-buffer/20132/5 "2016-12-04T14:41:00Z")

</div>

…what lessp tried to explain was: find the place, where your synth[channel]-\>rendernNextBlock(…) is called. After that you can apply an audio processor on that block afterwards:

```
// prerequisite:
ScopedPointer<AudioProcessor> myProcessor = new MySuperProcessorClass();
myProcessor->prepareToPlay (sampleRate, blocksize);

// where your synth is driven:
// (if no midi data is there, create some empty one:)
MidiBuffer midi;
synth[channel]->renderNextBlock (buffer, 0, buffer.getNumSamples());
myProcessor->processBlock (buffer, midi);

```

As alternative you can make up an [AudioProcessorGraph](https://www.juce.com/doc/classAudioProcessorGraph) and connect the processing chain there.

HTH
