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 :)
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 :)
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.