[Pythonsound-devel] error in bpf.py?
Status: Beta
Brought to you by:
mupuxeddu
From: christopher a. <ar...@fl...> - 2004-07-18 23:10:45
|
i think there is a bug here from PowerSegment in bpf.py: if dict.has_key('periodic'): periodic = dict['exp'] else: periodic = 0 seems like it should be: if dict.has_key('periodic'): periodic = dict['periodic'] else: periodic = 0 is omde still under development? i can commit these changes myself if necessary, as i am still actively using and adding parameter gens from omde to athenaCL. class PowerSegment(BPF): """ Break-point function with exponential interpolation. See the BPF base class for more info. """ def __init__(self, *pairs, **dict): """ Return a PowerSegment instance. Syntax: PowerSegment(...points... [, exp=1.0] [, periodic=0]) Break-points are specified as couples (time, value) like PowerSegment((0, 1), (5, 3), (20, 1)) """ if dict.has_key('exp'): self.exponent = dict['exp'] else: self.exponent = 1.0 if dict.has_key('periodic'): periodic = dict['exp'] else: periodic = 0 BPF.__init__(self, pairs, periodic) |