diff options
author | Oli <olpc@localhost.localdomain> | 2007-02-28 01:47:09 (GMT) |
---|---|---|
committer | Oli <olpc@localhost.localdomain> | 2007-02-28 01:47:09 (GMT) |
commit | ad0a0e5f5cb7584dc6e3295883a6e4a060d763b4 (patch) | |
tree | 41ea0605675eb1fb75819c8e8c8a7cd1753bad2b /Util/CSoundClient.py | |
parent | efde4e823dc4418763514e0634fc3c1393ba36d8 (diff) |
synthLabParametersWindow and track volumes
Diffstat (limited to 'Util/CSoundClient.py')
-rw-r--r-- | Util/CSoundClient.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Util/CSoundClient.py b/Util/CSoundClient.py index 399df60..0793b4d 100644 --- a/Util/CSoundClient.py +++ b/Util/CSoundClient.py @@ -17,7 +17,7 @@ class _CSoundClientPlugin: def __init__(self, orc): sc_initialize(orc) self.on = False - self.masterVolume = 80.0 + #self.masterVolume = 80.0 self.periods_per_buffer = 2 def __del__(self): @@ -26,10 +26,14 @@ class _CSoundClientPlugin: def setMasterVolume(self, volume): - self.masterVolume = volume + #self.masterVolume = volume if self.on: sc_setMasterVolume(volume) + def setTrackVolume( self, volume, trackId ): + self.trackVolume = volume + sc_setTrackVolume(volume, trackId) + def setTrackpadX( self, value ): trackpadX = value sc_setTrackpadX(trackpadX) @@ -226,7 +230,7 @@ class _CSoundClientPlugin: a = array.array('f') a.extend( [ - Config.INSTRUMENTS[ instr ].csoundInstrumentId + trackId * 0.01, + (Config.INSTRUMENTS[ instr ].csoundInstrumentId + trackId) + trackId * 0.01, onset, duration, pitch, |