pedalboard
pedalboard copied to clipboard
Any successful WSL use? ("Windows Subsystem for Linux")
Hello @psobot old friend!
I can't seem to get pedalboard VST3's to load on WSL, in case anyone is equally masochistic and had success? (It works on Mac + Windows native and probably Linux native, but this plugin binary isn't Linux, plus I don't have a machine to test on hand).
Easy way to get more info here?
% scp /tmp/vst.py desktop_windows: ; scp /tmp/vst.py desktop_wsl:
% python3.12 /tmp/vst.py ; ssh desktop_windows 'python vst.py' ; ssh desktop_wsl 'python3.12 vst.py'
OS Darwin py 3.12.4 is using /Library/Audio/Plug-Ins/VST3/FabFilter Pro-Q 3.vst3
Loaded Pro-Q 3
OS Windows py 3.12.7 is using C:\Program Files\Common Files\VST3\FabFilter Pro-Q 3.vst3
Loaded Pro-Q 3
OS Linux py 3.12.7 is using /mnt/c/Program Files/Common Files/VST3/FabFilter Pro-Q 3.vst3
Traceback (most recent call last):
File "/home/jmarnell/vst.py", line 25, in <module>
plugin = VST3Plugin(vst_path())
^^^^^^^^^^^^^^^^^^^^^^
ImportError: Unable to scan plugin /mnt/c/Program Files/Common Files/VST3/FabFilter Pro-Q 3.vst3: unsupported plugin format or scan failure.
This simple hello world I'm using:
import os
import platform
from pedalboard import VST3Plugin
import sys
def vst_path():
system = platform.system()
if system == "Darwin":
return "/Library/Audio/Plug-Ins/VST3/FabFilter Pro-Q 3.vst3"
elif system == "Linux":
if "microsoft" in platform.uname().release.lower():
return "/mnt/c/Program Files/Common Files/VST3/FabFilter Pro-Q 3.vst3"
else:
raise Exception("No Linux binary, plus I no have-y machine-y")
elif system == "Windows":
return r"C:\Program Files\Common Files\VST3\FabFilter Pro-Q 3.vst3"
else:
raise Exception("Unknown environment")
print(f"OS {platform.system()} py {sys.version.split()[0]} is using {vst_path()}")
assert os.path.exists(vst_path()), "VST3 plugin not found"
plugin = VST3Plugin(vst_path())
print(f"Loaded {plugin.descriptive_name}")