VST2 fx responding to MIDI input

DSP, Plug-in and Host development discussion.
baconpaul
KVRist
196 posts since 25 Dec, 2018

Post Thu Dec 05, 2019 2:16 pm

I agree! Thank you and more than happy to have you helping us out if that is something you want!

baconpaul
KVRist
196 posts since 25 Dec, 2018

Re: VST2 fx responding to MIDI input

Post Thu Dec 05, 2019 2:32 pm

Yeah would love some developer help and would be more than happy to have you in the code! Let us know if you get stuck or we can help. The README is pretty up to date.

User avatar
S0lo
KVRian
738 posts since 31 Dec, 2008

Re: VST2 fx responding to MIDI input

Post Thu Dec 05, 2019 3:23 pm

Thanks. I'll check it and see if I can help.

User avatar
S0lo
KVRian
738 posts since 31 Dec, 2008

Re: VST2 fx responding to MIDI input

Post Fri Dec 06, 2019 11:53 am

Trying to build for the first time. Not very familiar with GIT. A question here. What does this phrase in the README means:

"If you had the VST2.4SDK folder specified prior to running premake5, you will have surge-vst2.vcxproj and surge-vst3.vcxproj in your Surge folder."

Essentially, how do I "Specify" ?

baconpaul
KVRist
196 posts since 25 Dec, 2018

Re: VST2 fx responding to MIDI input

Post Fri Dec 06, 2019 5:19 pm

You need to set the environment var “VST2SDK_DIR” to the path of your VST2 SDK before you run the premake stage. On windows you do that with “set VST2SDK_DIR=c:\users\whatever”

User avatar
S0lo
KVRian
738 posts since 31 Dec, 2008

Re: VST2 fx responding to MIDI input

Post Sat Dec 07, 2019 5:14 am

Thanks. So after a few more hiccups a managed to build it in VS 2017. But now when I try to debug/run it (using cantabile as a host). Surge it self shows errors like cannot find configuration.xml in C:User....\surge path. And couple more errors like that where it can't find files. Then it actually run and produces sound!!.

I found the files in \resources\ . I tried changing the working directory in VS but then some dll wont load and surge wont even start at that point. didn't have time to look further. But I'll do latter. Let me know if you know something about this.

baconpaul
KVRist
196 posts since 25 Dec, 2018

Re: VST2 fx responding to MIDI input

Post Sat Dec 07, 2019 8:23 am

Yeah surge looks for those in %LOCALAPPDATA%\Surge so you need to (one time) copy resources\data to %LOCALAPPDATA%\Surge or you need to build and run the installer. (The former is way easier of course)

If you look in scripts\win\build-win.ps1 there's a powershell script which does it. Here are the relevant lines. I'm sure there's some other robocopy equivalent, but really if you aren't changing the graphics or the patches you can do this once and then forget about it.

Remove-Item "$($env:LOCALAPPDATA)\Surge" -Recurse -Force
Copy-Item "resources\data\" -Destination "$($env:LOCALAPPDATA)\Surge" -Recurse -Force

User avatar
S0lo
KVRian
738 posts since 31 Dec, 2008

Re: VST2 fx responding to MIDI input

Post Sat Dec 07, 2019 12:25 pm

Thanks. So I was able to debug surge. To my surprise MIDI input actually worked!! in the fx. I haven't done any changes to the code at all. The only thing I recall doing is changing the Windows SDK version from 8.1 to 10. 8.1 wasn't working for some reason although I know I have it. I tested in both FLstudio and Reaper. Both worked. Here is the dll:

https://github.com/ammar-mu/surge/blob/ ... x86_fx.dll

I have a feeling the problem is VST 2 version related. But I'm not sure of-course. The one I'm using is from 2013 which comes as part of VST3. labeled vstsdk360_22_11_2013_build_100

baconpaul
KVRist
196 posts since 25 Dec, 2018

Re: VST2 fx responding to MIDI input

Post Sun Dec 08, 2019 4:36 am

Wow OK that’s super useful information. I didn’t set up our build pipeline so I don’t actually know what VST2 SDK version our release uses (!!). I’ll try and find out. Thank you.

baconpaul
KVRist
196 posts since 25 Dec, 2018

Re: VST2 fx responding to MIDI input

Post Sun Dec 08, 2019 4:37 am

Oh and @EvilDragon - can you try that DLL and see if it works for you?

User avatar
EvilDragon
KVRAF
19253 posts since 7 Jan, 2009 from Croatia

Re: VST2 fx responding to MIDI input

Post Sun Dec 08, 2019 10:57 am

It does work over here. Audio inputs received over in 1/2, and also MIDI input working just fine!

Thank you for your effort and time, S0lo - much appreciated! :)

User avatar
S0lo
KVRian
738 posts since 31 Dec, 2008

Re: VST2 fx responding to MIDI input

Post Sun Dec 08, 2019 4:16 pm

No problem :).

I'm getting more interested as I'm trying the synth and checking the code. I always thought that surge was awesome. I actually have a license since vember days. Looking at the code now, I appreciate the amount of huge effort that has been put here. How multiple platforms was targeted and the very low CPU usage. Still looking, and trying to think where I may help.

User avatar
EvilDragon
KVRAF
19253 posts since 7 Jan, 2009 from Croatia

Re: VST2 fx responding to MIDI input

Post Mon Dec 09, 2019 3:42 am

Feel free to join the Surge Slack channel!

Discussions abound!

User avatar
S0lo
KVRian
738 posts since 31 Dec, 2008

Re: VST2 fx responding to MIDI input

Post Thu Dec 12, 2019 12:41 pm

Here is the 64bit version just in case someone needs it.

https://github.com/ammar-mu/surge/blob/ ... rge_fx.dll

Return to “DSP and Plug-in Development”