pipewire is amazing. with:

$ PIPEWIRE_LATENCY=256/48000 pw-loopback

I can't tell the difference between the direct monitor on my audio interface and the guitar's audio signal going into my computer and out into my headphones again.

A quantum of 256 samples at 48 kHz translates to ~5.33 milliseconds of latency (256 / 48,000), which is close to imperceptible for most use cases.

now just need to use the graphics card to render something on the screen from this incoming audio signal.

nostr:note19tuscsvtjtmf7jhf6zczqcu69tatp08n9ayqtat5w8ljjzcl6j2s98e99r

Reply to this note

Please Login to reply.

Discussion

Damn dude. You are relentless!

guitar is an interesting input device

Try Project-M. It's a Milkdrop clone that comes with tons of presets or you can code your own.

ok totally nerding out with pipewire now. turns out you can exactly measure the io latency introduced by specific programs by using jack_iodelay. I created a loopback program with cpal in rust, it seems to be adding tons of latency for some reason. had no idea linux had powerful tools like this.

was using the wrong backend. got loopback latency down to 1.333 ms with cpal. pretty good! I can work with this.

projectM with milkdrops