My attempt at hosting VSTs using ctypes
.
make build
make run
pytest tests --verbose
Check out the example in examples/simple_host.py
.
My attempt at loading VST libraries using python's `ctypes` standard library.
License: MIT License
My attempt at hosting VSTs using ctypes
.
make build
make run
pytest tests --verbose
Check out the example in examples/simple_host.py
.
Requires wurlitzer
which imports fcntl
which is unsupported on Windows.
I'm trying to run yout simple_host.py
, but I got this error message below:
C:/Users/nyck/AppData/Local/Programs/Python/Python39/python.exe c:/Users/nyck/Desktop/pyvst/examples/simple_host.py
Traceback (most recent call last):
File "c:\Users\nyck\Desktop\pyvst\examples\simple_host.py", line 2, in <module>
from pyvst import SimpleHost
File "C:\Users\nyck\AppData\Local\Programs\Python\Python39\lib\site-packages\pyvst\__init__.py", line 1, in <module>
from .vstplugin import VstPlugin
File "C:\Users\nyck\AppData\Local\Programs\Python\Python39\lib\site-packages\pyvst\vstplugin.py", line 8, in <module>
from wurlitzer import pipes
File "C:\Users\nyck\AppData\Local\Programs\Python\Python39\lib\site-packages\wurlitzer.py", line 39, in <module>
libc = ctypes.CDLL(None)
File "C:\Users\nyck\AppData\Local\Programs\Python\Python39\lib\ctypes\__init__.py", line 364, in __init__
if '/' in name or '\\' in name:
TypeError: argument of type 'NoneType' is not iterable
This issue is a continuation of #2
pyvst
package:cd [go to the pyvst root folder]
pip install .
simple_host.py
example:python3 .\examples\simple_host.py 'C:\Program Files\Steinberg\VstPlugins\TAL-Elek7ro-II.dll'
Traceback (most recent call last):
File "C:\Users\nyck\Desktop\pyvst\examples\simple_host.py", line 37, in <module>
main(args.vst)
File "C:\Users\nyck\Desktop\pyvst\examples\simple_host.py", line 15, in main
host = SimpleHost(vst_filename, sample_rate=48000.)
File "C:\Users\nyck\AppData\Local\Programs\Python\Python39\lib\site-packages\pyvst\host.py", line 75, in __init__
self.load_vst(vst_filename)
File "C:\Users\nyck\AppData\Local\Programs\Python\Python39\lib\site-packages\pyvst\host.py", line 109, in load_vst
self.vst.resume()
File "C:\Users\nyck\AppData\Local\Programs\Python\Python39\lib\site-packages\pyvst\vstplugin.py", line 57, in resume
self._dispatch(AEffectOpcodes.effMainsChanged, value=1)
File "C:\Users\nyck\AppData\Local\Programs\Python\Python39\lib\site-packages\pyvst\vstplugin.py", line 65, in _dispatch
output = self._effect.dispatcher(byref(self._effect), c_int32(opcode), c_int32(index),
OSError: exception: access violation reading 0x0000000000000006
What am I doing wrong?
My system:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.