My favorites | Sign in
Project Home Downloads Issues
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 269 attachment: sinemixer_ctxserver.diff (739 bytes)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/examples/sinemixer/sinemixer.py b/examples/sinemixer/sinemixer.py
index 4116ad5..1acc272 100644
--- a/examples/sinemixer/sinemixer.py
+++ b/examples/sinemixer/sinemixer.py
@@ -17,9 +17,9 @@ import pyo
def pymt_plugin_activate(w, ctx):
ctx.c = MTWidget()

- # We initialize the pyo server.
- s = pyo.Server(nchnls = 2).boot()
- s.start()
+ # We initialize the pyo server
+ ctx.s = pyo.Server(nchnls = 2).boot()
+ ctx.s.start()

widget_size = (w.size[0]/25, w.size[1] / 2)

@@ -74,7 +74,7 @@ def pymt_plugin_activate(w, ctx):

def pymt_plugin_deactivate(w, ctx):
# pyo Server is stopped
- s.stop()
+ ctx.s.stop()
w.remove_widget(ctx.c)

if __name__ == '__main__':
Powered by Google Project Hosting