@aadil I've used OBS for audio+video capture (supports both full screen and single-window in X, don't know about Wayland) with JACK to connect from audio things on Linux. Pretty sure SC uses JACK, not sure about sonic-pi (does sonic-pi use SC underneath?).
Debian package is `obs-studio` with executable `obs`.
Welcome to post.lurk.org, an instance for discussions around cultural freedom, experimental, new media art, net and computational culture, and things like that.