Hi,
I have a custom built synth I've created on a RPi using LibFluidSynth (to play different soundfonts) and RTMidi for capturing MIDI commands. The output is via the RPi's audio out plug. I would like to use Sunvox for different effects (i.e. vibrato, tremolo, etc.). Can I route the RPI's audio out back into a USB soundcard's audio in and use Sonvox Input module to then add effects with the audio then going out the USB soundcard's audio out?
Another questions is: if I also send out midi commands through the RTMidi API can Sunvox capture the command? This would be used to trigger the effect from my controller.
Thanks for any help.
Frank
Is this possible? RPi audio out to audio in on USB soundcard
Re: Is this possible? RPi audio out to audio in on USB soundcard
Use JACK (https://jackaudio.org/) to route audio and MIDI between applications.
Re: Is this possible? RPi audio out to audio in on USB soundcard
I just ordered a usb soundcard. So, I'll give it try when it comes!
Thanks.
Thanks.
Re: Is this possible? RPi audio out to audio in on USB soundcard
I found the RPi struggles a bit with 2 way audio and MIDI at the same time. As mentioned above, routing your audio internally before it hits the outputs would probably be more reliable.
Re: Is this possible? RPi audio out to audio in on USB soundcard
As Varheit said, you don’t need to route the audio out of the Pi and then back in on Linux. If you use JACK (Jack audio connection kit) you just route the output of one piece of software into the input of another, if you’ve got Raspian installed QJACKCTL is already installed (I think….but if not just install it from the repo), for a quick connection, that disappears every time when you stop JACK you just go into the quick connection dialogue and set up routings. You can also do more permanent routings and save them as a patch.
Re: Is this possible? RPi audio out to audio in on USB soundcard
OK. I do have Sunvox patched via QJackCtl to work with my application. So, my audio out is being used by the Sunvox Input Module. That's cool! Now, can I load a project (let's say Input -> Echo -> Output) from my program via the Sunvox library and have it act the same way?
Frank
Frank
Re: Is this possible? RPi audio out to audio in on USB soundcard
Nevermind - I found sv_load().