[Pythonsound-devel] Bug fixes against latest CVS
Status: Beta
Brought to you by:
mupuxeddu
|
From: Paul W. <sli...@ya...> - 2001-10-10 19:06:52
|
Hi Maurizio, Attached are more doctests and bugfixes against current CVS. (Wed Oct 10 19:04:17 UTC 2001) Notes: - updated everything, including doctests, to use foo.onset() and foo.duration() as methods instead of attributes. - Changed several ArgumentError (which is undefined) to ValueError - Changed disjoint() to not lengthen durations if they were already short enough. - Aggregate.duration() was calling Aggregate.move_absolute_forward() which was broken - it doesn't work to just inherit this from Event. So I added Aggregate.move_absolute_forward(). In my interpretation, this should scale the durations of all sub-events by the same ratio, and adjust their onset times relative to onset of the Aggregate. See the test examples for an idea of what this does. - TO DO: look at other move_ methods for Aggregate and see if they work. - changed Aggregate to cache end time; it caches onset and duration, so it seemed consistent to do the same with end. - fixed Aggregate.extend (various errors) - still haven't tested serialize(). - Aggregate.unwind: changed "unwinded_list" to "unwound" ... isn't English fun? :-/ - I assume flatten() is supposed to do the same thing as unwind()? - changed sort_by_attr to work with new onset0 and duration0 attributes (but not visible to the user). We should be able to sort by end() as well, but I haven't looked at that yet so it raises an error now. -- ................ paul winkler ................ custom calendars: http://www.calendargalaxy.com A member of ARMS: http://www.reacharms.com home page: http://www.slinkp.com |