Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/common/Util
diff options
context:
space:
mode:
authorOli <olivier.belanger@umontreal.ca>2007-09-28 20:48:09 (GMT)
committer Oli <olivier.belanger@umontreal.ca>2007-09-28 20:48:09 (GMT)
commit6cb986afe01cb3059a49a3ae82531d4501f625d5 (patch)
tree036ad7efb2f550af33c4b0e41c94de6c43160835 /common/Util
parent817f78c0b21d932ffe1aefef48f7361d3fdce240 (diff)
amplitude scaling for each instrument + misc fix
Diffstat (limited to 'common/Util')
-rw-r--r--common/Util/CSoundClient.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/Util/CSoundClient.py b/common/Util/CSoundClient.py
index bdd6e97..7a9e6e3 100644
--- a/common/Util/CSoundClient.py
+++ b/common/Util/CSoundClient.py
@@ -311,6 +311,9 @@ class _CSoundClientPlugin:
else:
instrument_id_offset = 100
+ amplitude = amplitude * instrument.ampScale
+ print "%f * %f = %f" % (amplitude, instrument.ampScale, amplitude * instrument.ampScale)
+ print "instrument %s final amplitude: %f" % (instrument.name, amplitude)
rval[0] = (instrument.csoundInstrumentId + \
(trackId+1) + instrument_id_offset) + trackId * 0.01
rval[1] = onset