Audiokit: OutputPlot + FFTPlot

Created on 14 Jan 2017  路  4Comments  路  Source: AudioKit/AudioKit

Hello :-)

I'm trying to get an OutputPlot & a FFTPlot from the same oscillator.

let oscillator = AKOscillator();

AudioKit.output = oscillator;
AudioKit.start();

oscillator.start();

let plot1 = AKNodeOutputPlot(oscillator, frame: firstView.bounds);
firstView.addSubview(plot1);

let plot2 = AKNodeFFTPlot(oscillator, frame: secondView.bounds);
secondView.addSubview(plot2);

But I get this error :

ERROR: >avae> AVAudioNode.mm:565: CreateRecordingTap: required condition is false: _recordingTap == nil

Do you know why ?
Thanks and have a nice day :)

Most helpful comment

There's only support for one tap per node, perhaps we can do a better job of documenting that. You could make your own custom grapher that uses one tap to supply the data to both plots.

All 4 comments

Have you tried adding in a do nothing mixer like:

secondTappingSpot = AKMixer(oscillator)

and then have plot2 connect to that instead of oscillator?

Indeed, it works !

But still, I think I should be able to use them both on the same audio node :)

There's only support for one tap per node, perhaps we can do a better job of documenting that. You could make your own custom grapher that uses one tap to supply the data to both plots.

Yes, I will, thank you for your valuable time :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

socialvanana picture socialvanana  路  7Comments

ghost picture ghost  路  8Comments

gm3197 picture gm3197  路  10Comments

Moriquendi picture Moriquendi  路  4Comments

bluenucleus picture bluenucleus  路  5Comments