Re: [Pythonsound-devel] The problem of duration of F
Status: Beta
Brought to you by:
mupuxeddu
|
From: Paul W. <sli...@ya...> - 2001-10-09 18:11:32
|
On Tue, Oct 09, 2001 at 07:02:40PM +0200, Maurizio Umberto Puxeddu wrote: > > I don't remember if I already posted something about this subject. I don't think so. > Probably we should have a base class for Event, say Spot or so, which has > an onset but not a duration nor stretch methods. Event should be a Spot > with a duration. F should derive (indirectly) from Spot and not from > Event. But then you can't treat instances of F and I polymorphically. And if it has no stretch methods, how can we move F instances around? IMHO it would be nice if F had the Event interface. Are you worried about F having the misleading attribute "duration" which actually stores its size? That could be fixed by overloading the __init__ and __str__ methods. -- ................ paul winkler ................ custom calendars: http://www.calendargalaxy.com A member of ARMS: http://www.reacharms.com home page: http://www.slinkp.com |