Delay Coordinate Embedding

Stechoscope’s X/Y property plots two adjacent audio buses, typically the stereo output left and right. I am interested in plotting in lissajou style one channel with a past version of itself (e.g. 10 previous samples) or two past versions (resulting in a 3d plot), using the Delay Coordinate Embedding technique that approximates the system’s phase space.

Is there a workaround with stethoscope to make this work? Or should a completely new plotting functionality be implemented? Any hints for the latter?

This is a quick solution using the Stethoscope class:

(
~busesL=Bus.audio(s, 2);
~busesR=Bus.audio(s, 2);

{var sig=InFeedback.ar(0,2);
	Out.ar(~busesL, [sig[0],DelayN.ar(sig[0],0.001,0.001)]);
	Out.ar(~busesR, [sig[1],DelayN.ar(sig[1],0.001,0.001)])
}.play;

Stethoscope.new(s, 2, ~busesL.index);
Stethoscope.new(s, 2, ~busesR.index);
)

For implementing a 3d plot, would changing the Stethoscope class be a good idea for starters?