I see alot of topics about rewriting faust code to supercollider code. But what im asking is something different. Im trying to get in to making vsts in faust. And i want to test those vsts in supercollider because im very familiar with sc, and i just dislike daws. Im using the vstplugin quark to load the plugin.
First i compiled this faust code
import("stdfaust.lib");
ctFreq = hslider("[0]cutoffFrequency",500,50,10000,0.01) : si.smoo;
q = hslider("[1]q",5,1,30,0.1) : si.smoo;
gain = hslider("[2]gain",1,0,1,0.01) : si.smoo;
freq = hslider("[4]freq",500,10,10000,0.01) : si.smoo;
plock = os.sawN(5, freq) * en.ar(0.01, 0.5, os.lf_imptrain(1));
process = plock : fi.resonlp(ctFreq,q,gain) <: dm.zita_light;
In the online ide for faust to a windows64 vst plugin. This generated a dll file.
I got the dll file path and then i did this to test the plugin.
(
SynthDef(\test, {
var sig;
//DC.ar(0) because the plugin doesnt take any inputs
sig = VSTPlugin.ar(DC.ar(0), 2);
Out.ar(0, sig);
}).add;
)
~synth = Synth(\test);
~fx = VSTPluginController(~synth);
//in reality i use the absolute path here but im not showing that ofcourse
~fx.open("myVST.dll", editor: true, verbose: true);
~fx.editor
The post window showed this after executing ~fx.open.
probing myVST.dll... ok!
---
name: untitled
type: VST 2.4 (synth) [bridged]
path: myVST.dll
vendor: Vendor String goes here
category: Synth
version: 1
inputs: 0ch
outputs: 2ch
parameters: 6
programs: 1
presets: 0
editor: false
MIDI input: false
MIDI output: false
---
And after executing ~fx.editor it says no editor. There is no sound, nothing.
So im new to faust. And ive read faust and windows dont go hand in hand very well. Ive tested juce vsts in supercollider this way in the past and it worked fine. Ive asked this question in the faust discord too, but i dont expect any answer soon. (btw does anyone know if there is a go-to forum like scsynth.org for faust?)
But does anyone have a clue what is wrong?