diff options
author | David Robillard <d@drobilla.net> | 2007-08-01 04:42:09 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-08-01 04:42:09 +0000 |
commit | 1a77934531b0ddfc4392ccffbdde0058c2dbab68 (patch) | |
tree | 51e628c9b3dc4299d1f5dbb3bd5aad4938b0ae5a /src/bindings/test_ingen.py | |
parent | 9cd4eddfb41c4573d4acd4f625572c4cdff50497 (diff) | |
download | ingen-1a77934531b0ddfc4392ccffbdde0058c2dbab68.tar.gz ingen-1a77934531b0ddfc4392ccffbdde0058c2dbab68.tar.bz2 ingen-1a77934531b0ddfc4392ccffbdde0058c2dbab68.zip |
Remove PostProcessor thread, post-process in main thread instead (solves scripting threading issues, and saves memory anyway).
Revert saw_lp.ingen.ttl (version written by broken raptor committed by mistake).
Working engine->script responses, nicer Python example.
git-svn-id: http://svn.drobilla.net/lad/ingen@665 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/bindings/test_ingen.py')
-rwxr-xr-x | src/bindings/test_ingen.py | 35 |
1 files changed, 15 insertions, 20 deletions
diff --git a/src/bindings/test_ingen.py b/src/bindings/test_ingen.py index 4109dd21..9b925155 100755 --- a/src/bindings/test_ingen.py +++ b/src/bindings/test_ingen.py @@ -1,40 +1,34 @@ #!/usr/bin/env python + import ingen import time world = ingen.World() class PythonClient(ingen.Client): - #def __init__(self): - # ingen.Client(self) - # print "Client" - - def bundle_begin(): - print "Bundle {" + def error(self, msg): + print "*** Received error:", msg + def bundle_begin(self): + print "*** Receiving Bundle {" + + def bundle_end(self): + print "*** }" def new_port(self, path, data_type, is_output): - print "Port:", path, data_type, is_output + print "*** Received Port:", path, data_type, is_output + + def new_node(self, plugin_uri, path, polyphonic, nports): + print "*** Received Node:", plugin_uri, path, polyphonic, nports c = PythonClient() -c.thisown = 0 -print "C OWN", c.thisown -#print c.__base__ +c.enable() e = world.engine -print "E OWN", e.thisown -e.thisown = 0 -#print e - e.activate() -#e.register_client("foo", c) c.subscribe(e) -c.enable() -#c.new_patch("/foo/bar", 1) - - e.create_port("/I", "ingen:midi", False) e.create_port("/made", "ingen:audio", False) e.create_port("/these", "ingen:audio", False) @@ -43,5 +37,6 @@ e.create_port("/a", "ingen:audio", True) e.create_port("/script", "ingen:audio", True) while True: - time.sleep(1) + world.iteration() + time.sleep(0.1) |