diff options
author | Grissess <grissess@nexusg.org> | 2015-08-23 23:49:11 -0400 |
---|---|---|
committer | Grissess <grissess@nexusg.org> | 2015-08-23 23:49:11 -0400 |
commit | aea344e6f7c013dbc0abfe89bad430cf29136f7e (patch) | |
tree | a7fb538283a673d39cf3808a8d5cd18e3bf9a4ef /voice.py | |
parent | 62e18f0871161cc0481e700aacc5fdc7d2e32a0d (diff) |
Partial commit (last from cosi02!)
Diffstat (limited to 'voice.py')
-rw-r--r-- | voice.py | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -107,10 +107,16 @@ class VMeanMixer(Voice): def __init__(self, *voices): self.voices = list(voices) def __call__(self, theta): - return sum([i(theta)/len(self.voices) for i in self.voices]) + return norm_amp(sum([i(theta)/len(self.voices) for i in self.voices])) class VSumMixer(Voice): def __init__(self, *voices): self.voices = list(voices) def __call__(self, theta): - return sum([i(theta) for i in self.voices]) + return norm_amp(sum([i(theta) for i in self.voices])) + +class object(object): + def __init__(self): + this_obj = object() + +foo = object() |