How to use live_audio with virtual audio device on Windows 10

Hello,

I’m currently trying to combine Sonic-Pi with HELM. What I want to achieve is to send MIDI data to HELM and feed the output of HELM back to live_audio for input in Sonic-Pi. There is a tutorial on Youtube demonstrating how this can be done on a Mac. However, I’m using Windows 10 and cannot get this to work.

Googling around for an audio loopback device I found a software called VB-CABLE, which is a virtual audio device working as virtual audio cable. I downloaded and installed this software, but now I dont know how get live_audio input from it.

I tried as follows:

# live_audio :voice, input: 1
live_audio :helm, input: 3

On input: I tried any number from 3 to 9. None worked. I also tried without the input: parameter at all.

The voice example works fine with input: 1 or input: 2 as well as without the input parameter at all.

Finally, to make sure I’m not completely wrong, I used the “CABLE Output (VB-Audio Virtual Cable)” for 2 Channel Stereo input for recording the output of HELM in Audacity. This worked perfectly well.

VB-CABLE is using PortAudio V19.5.0 and supports several interface types (MME, Windows WASAPI and Windows Direct Sound). It was easy to install and did not need any configuration. If possible I would like to stick with it.

What do I do wrong, or, in case this setup is not supported for some reason, what alternatives do exist? Every hint is welcome.

maybe this video could help you ; i will try to get what you want because i’ve already met this situation and didn’t not yet how to do.

I have used loopMidi which works well.
http://www.tobias-erichsen.de/software.html

@robin.newman, did you also manage/try to configure this with Jack (Linux/Raspberry)?

i believe this is not what @pgloor wants. We want to get the audio from Helm into sonic pi via liveaudio to apply as example an echo fx. So loopmidi is just to send midi signals to Helm and has not audio capabilities.

i manage to get what you want via https://vac.muzychenko.net/en/
this software is not a freeware.

# Audio from Helm and fx applied on it
# virtual-audio-cable "trial" version : trial trial women sings
# https://vac.muzychenko.net/en/download.htm


use_real_time
with_fx :echo do
  live_audio :fromHelm
end


live_loop :drums do
  sample :bd_ada
  sleep 1
end

# loopmidi to send midi notes to Helm
# after we can change the parameters from Helm and sonic pi is able to record them and
# apply an echo effect see above live_audio

live_loop :midiToHelm, sync: "/live_loop/drums" do
  midi [:e3, :e2].tick, port: "loopmidi-port-01"
  sleep 4
end

live_loop :hits_hats, sync: "/live_loop/drums" do
  sample :drum_cymbal_closed, amp: [0.5, 0.75,  0.45, 1].tick
  sleep 0.25
end

and i discover this https://discuss.cakewalk.com/index.php?/topic/3519-odeus-asio-link-now-available-free/ . It seems to be free now. but a bit more complex…

this conversation can be useful to find a solution

Ok a solution that works well (for me :slight_smile: )
easy via http://www.breakawayone.com/downloads/ it’s free :slight_smile:

# Audio from Helm and fx applied on it
# 
# http://www.breakawayone.com/downloads/


use_real_time
with_fx :echo do
  live_audio :fromHelm
end


live_loop :drums do
  sample :bd_ada
  sleep 1
end

# loopmidi to send midi notes to Helm
# after we can change the parameters from Helm and sonic pi is able to record them and
# apply an echo effect see above live_audio

live_loop :midiToHelm, sync: "/live_loop/drums" do
  midi [:e3, :e2].tick, port: "loopmidi-port-01"
  sleep 4
end

live_loop :hits_hats, sync: "/live_loop/drums" do
  sample :drum_cymbal_closed, amp: [0.5, 0.75,  0.45, 1].tick
  sleep 0.25
end

First, thanks for your great answers. They sound very promising to me.

The video on YouTube about VB-Voice-Meeter was not of much help. I installed the software, but it did not solve the problem.

Next I will give Jack for Windows a try. I’ve already used Jack before with other audio configurations on Linux, so I’m somewhat familiar with it.

In case I wont succeed with Jack I’ll also give VAC a try. This was actually the first driver I found when I started to search for a software equivalent to LoopBack for the Mac.

It will take some time before I can give Jack or VAC a try, but as soon as I’m done I will let you know my results.

Sorry, I deleted two replies to @nlb and @robin.newman I wrote earlier today. I’m new to this forum software and wanted to combine my two answers into one, but then I was in a hurry and had to leave.

Peter :wave:

@nlb: there must be something wrong with my Windows 10. After nothing worked for me, I tried the 30 minutes trial version of VAC. Still no success.

Tomorrow I’ll try breakawayone.

Everything I tried works with other software, like Audacity, except Sonic-Pi.

try with http://www.breakawayone.com/downloads/ and download breakaway pipeline. This is what i 've used this afternoon and try to set up as on screenshots.

by the way be careful with Jack and Spi 3.2. I 've met some issues under windows 10, supercollider didn’t launched so neither sonic pi (based on supercollider).

good luck

2 Likes

@nlb: Thank you! :smiley: With Breakaway Pipeline it works.

Except of choosing “Line 1 (Breakaway Pipeline)” for Output in HELM I didn’t have to do any configuration. None of the other solutions, inclusive VAC, worked for me.

3 Likes