Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Waves.activity/waves.py
diff options
context:
space:
mode:
Diffstat (limited to 'Waves.activity/waves.py')
-rw-r--r--Waves.activity/waves.py37
1 files changed, 23 insertions, 14 deletions
diff --git a/Waves.activity/waves.py b/Waves.activity/waves.py
index 15b0307..3f07db4 100644
--- a/Waves.activity/waves.py
+++ b/Waves.activity/waves.py
@@ -8,21 +8,30 @@ class Waves(activity.Activity):
activity.Activity.__init__(self, handle)
-
# colours
red = (0xFFFF,0,0)
bg = (0xF000, 0xFF00, 0xFFFF)
- win = csndsugui.CsoundGUI(self,bg)
+ self.win = csndsugui.CsoundGUI(self,bg)
- win.csd("waves.csd")
- txt = win.text("Making Waves")
- sfbox = win.box(False)
- bfbox = win.box(False)
- sbox = win.framebox("frequencies", False, sfbox, red, 40)
- bbox = win.framebox("oscillators", False, bfbox, red, 40)
-
- win.buttonbank(8,bbox)
- win.spin(0,0,10,0.5,1,bbox,0, "main_volume")
- win.vsliderbank(8,400.0,400.0,500.0,80,200,sbox)
-
- win.play()
+ self.win.csd("waves.csd")
+ txt = self.win.text("Making Waves")
+ sfbox = self.win.box(False)
+ bfbox = self.win.box(False)
+ sbox = self.win.framebox("frequencies", False, sfbox, red, 40)
+ bbox = self.win.framebox("oscillators", False, bfbox, red, 40)
+
+ self.win.buttonbank(8,bbox)
+ self.win.spin(0,0,10,0.5,1,bbox,0, "main_volume")
+ self.win.vsliderbank(8,400.0,400.0,500.0,80,200,sbox)
+ self.win.play()
+
+ def write_file(self,filepath):
+ self.win.logger.debug("write_file\n\n")
+ self.win.set_channel_metadata()
+ f = open(filepath, 'w')
+ f.close()
+
+ def read_file(self,filepath):
+ self.win.logger.debug("read_file \n\n")
+ self.win.get_channel_metadata()
+