diff options
author | Oli <olivier.belanger@umontreal.ca> | 2007-08-15 06:39:59 (GMT) |
---|---|---|
committer | Oli <olivier.belanger@umontreal.ca> | 2007-08-15 06:39:59 (GMT) |
commit | 1b9d2cd2bd9e3135b2aedd16e8cebc59d483c088 (patch) | |
tree | 8f4c22571c68325fb730efa5f45d07046a1e3e2f /Util/CSoundNote.py | |
parent | f5e6fbe03050917940ea5673adb6625971e7eb6d (diff) |
dual instruments on melodic tracks
Diffstat (limited to 'Util/CSoundNote.py')
-rw-r--r-- | Util/CSoundNote.py | 46 |
1 files changed, 22 insertions, 24 deletions
diff --git a/Util/CSoundNote.py b/Util/CSoundNote.py index d41fc11..7b2019e 100644 --- a/Util/CSoundNote.py +++ b/Util/CSoundNote.py @@ -1,23 +1,23 @@ import Config -from Generation.GenerationConstants import GenerationConstants class CSoundNote : def __init__( self, - onset, - pitch, - amplitude, - pan, - duration, - trackId, - instrumentId = Config.INSTRUMENTS["flute"].instrumentId, - attack = 0.002, - decay = 0.098, - reverbSend = 0.1, - filterType = 0, + onset, + pitch, + amplitude, + pan, + duration, + trackId, + instrumentId = Config.INSTRUMENTS["flute"].instrumentId, + attack = 0.005, + decay = 0.098, + reverbSend = 0.1, + filterType = 0, filterCutoff = 1000, tied = False, - mode = 'edit' ): - + mode = 'edit', + instrumentId2 = -1 ): + self.onset = onset self.pitch = pitch self.amplitude = amplitude @@ -34,6 +34,14 @@ class CSoundNote : self.filterCutoff = filterCutoff self.tied = tied self.mode = mode + self.instrumentId2 = instrumentId2 + + def clone( self ): + return CSoundNote( self.onset, self.pitch, self.amplitude, self.pan, + self.duration, self.trackId, self.instrumentId, + self.attack, self.decay, self.reverbSend, + self.filterType, self.filterCutoff, self.tied, + self.mode, self.instrumentId2 ) def __getstate__unused(self): return {'onset': self.onset, @@ -67,13 +75,3 @@ class CSoundNote : self.tied = dict['tied'] self.mode = dict['mode'] self.nchanges = 0 - - def clone( self ): - return CSoundNote( self.onset, self.pitch, self.amplitude, self.pan, - self.duration, self.trackId, self.instrumentId, - self.attack, self.decay, self.reverbSend, - self.filterType, self.filterCutoff, self.tied, - self.mode ) - - - |