-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Replace the docker scripts by a Makefile * Move the examples and tests outside the main dir * Add all_sounds_off midi event * Add support for DoubleReplacing * Better is_synth functionality * Make the tests run on many vsts * Add the stderr/stdout capturing again * Support more opcodes * Other bugfixes
- Loading branch information
Simon Lemieux
committed
Feb 4, 2019
1 parent
d2a5e73
commit b979942
Showing
18 changed files
with
325 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Next Release | ||
|
||
* Revert the stdout/stderr capture as it caused other issues. | ||
* A lof or minor (4d08b11) | ||
|
||
# 0.4.0 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.PHONY: build run | ||
|
||
build: | ||
docker build . -t pyvst | ||
|
||
# To be run from the repo! | ||
# Forwarding the 8888 port for jupyter | ||
run: | ||
docker run -it --rm \ | ||
--volume `pwd`:/workdir/pyvst/ \ | ||
--user `id -u`:`id -g` \ | ||
-p 8888:8888 \ | ||
pyvst bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,13 @@ | ||
My attempt at loading VST libraries using `ctypes`. | ||
My attempt at hosting VSTs using `ctypes`. | ||
|
||
|
||
# Running the tests | ||
|
||
make build | ||
make run | ||
pytest tests --verbose | ||
|
||
|
||
Check out the example in [`examples/simple_host.py`][1]. | ||
|
||
[1]: examples/simple_host.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import pytest | ||
|
||
from pyvst import SimpleHost | ||
|
||
|
||
def _find_test_plugins(): | ||
""" | ||
One plugin path per line in .test_plugin_path.txt | ||
""" | ||
with open('.test_plugin_path.txt') as f: | ||
path = f.read().strip() | ||
|
||
lines = path.split('\n') | ||
lines = [x.strip() for x in lines] | ||
lines = [x for x in lines if not x.startswith('#')] | ||
return lines | ||
|
||
|
||
_VST_PLUGINS = _find_test_plugins() | ||
|
||
|
||
@pytest.fixture(params=_VST_PLUGINS) | ||
def vst(request): | ||
return request.param | ||
|
||
|
||
@pytest.fixture() | ||
def host(vst): | ||
"""SimpleHost containing a loaded vst.""" | ||
host = SimpleHost(vst) | ||
return host |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.