diff options
author | James <james@mackie.fourth> | 2007-03-20 04:32:11 (GMT) |
---|---|---|
committer | James <james@mackie.fourth> | 2007-03-20 04:32:11 (GMT) |
commit | efee36c050875945565bb92becd321170b6694af (patch) | |
tree | 177c9ad22d76bd2367850b0f1bb62dfc94fbcf7e /Util/CSoundNote.py | |
parent | 84d6431b1d98c16d93528723c9f14daf24c47ca9 (diff) |
for a sneak preview of load and save, press the record button in edit
Diffstat (limited to 'Util/CSoundNote.py')
-rw-r--r-- | Util/CSoundNote.py | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/Util/CSoundNote.py b/Util/CSoundNote.py index 77e85d7..d41fc11 100644 --- a/Util/CSoundNote.py +++ b/Util/CSoundNote.py @@ -2,10 +2,6 @@ import Config from Generation.GenerationConstants import GenerationConstants class CSoundNote : - NOTE_ID_COUNTER = 0 - #----------------------------------- - # initialization - #----------------------------------- def __init__( self, onset, pitch, @@ -38,11 +34,8 @@ class CSoundNote : self.filterCutoff = filterCutoff self.tied = tied self.mode = mode - self.nchanges = 0 - self.noteId = self.NOTE_ID_COUNTER - self.NOTE_ID_COUNTER += 1 - def __getstate__(self): + def __getstate__unused(self): return {'onset': self.onset, 'pitch': self.pitch, 'amplitude': self.amplitude, @@ -58,7 +51,7 @@ class CSoundNote : 'tied': self.tied, 'mode': self.mode } - def __setstate__(self,dict): + def __setstate__unused(self,dict): self.onset = dict['onset'] self.pitch = dict['pitch'] self.amplitude = dict['amplitude'] @@ -78,7 +71,9 @@ class CSoundNote : 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.attack, self.decay, self.reverbSend, + self.filterType, self.filterCutoff, self.tied, + self.mode ) |