How to use vst with sonic pi via cantabile lite

Hi,

After posting this ressource Free vst synths to explore, i think it should be useful to get a solution to play with this free tools. So :

OS : Microsoft Windows 10
Free Softwares :

  1. Install all the softwares

  2. Create a virtual midi port into loopmidi
    image

  3. In Cantabile > Options >

  4. In cantabile add a plugin (VST)
    image

In example surge
image

Pluck the from_sonicpi to the Surge block

image

Do the same for the pendulate vst (or another vst)
and you get this

  1. Specify midi channel for each vst plugin

    image

  1. In Sonic Pi

Some code to test :

# nlb : 15-05-2021
# Goal : use cantabile hosting vst + sonic pi

midi_all_notes_off

use_bpm 96
use_midi_defaults port: "loopmidi_port_2"

live_loop :toPendulate do
  ##| stop
  n= (scale :c3, :acem_asiran).tick
  midi n, release: 0.1, sustain: 0.5, channel: 1
  sleep 1
end

live_loop :toSurge do
  n= (ring :c, :g, :g, :f).tick
  midi n, release: 0.1, sustain: 2, channel: 2
  sleep 0.5
end


# to see if the latency is low.

live_loop :drums do
  
  sample :drum_bass_hard, amp:5
  sleep 1
  sample :drum_snare_hard, amp:4
  sleep 1
  sample :drum_bass_hard, amp:5
  sleep 0.5
  sample :drum_bass_hard, amp:5
  sleep 0.5
  sample :drum_snare_hard, amp:4
  sleep 1
end

Then hit the run button into sonic pi, it should make sounds :slight_smile:
You have to adjust, play into Cantabile the parameters as you want.

If you want to record the result, you can use Audacity to get a wav file.

Hope it can help people to start to use vst and sonic pi.
Cheers

2 Likes

Thanks @Eli ! Happy come back :relaxed: