the bidoo canard module can do live sampling you might look into that one
here’s an example of a more extreme use of it: