Re: [Pythonsound-devel] Re: Python and music [was Re: New work, new tools] (fwd)
Status: Beta
Brought to you by:
mupuxeddu
From: Maurizio U. P. <um...@ti...> - 2001-10-04 20:36:52
|
On Wed, 3 Oct 2001, Paul Winkler wrote: > On Wed, Oct 03, 2001 at 03:52:40PM +0200, Maurizio Umberto Puxeddu wrote: > > On Mon, 1 Oct 2001, Paul Winkler wrote: > I'd still like to discuss whether objects should be responsible for > their own start time, or delegate that to a parent Aggregate. When > you get a chance, I'd like to hear your reasoning for making each > event responsible for its own start time. > > The only argument I can see *against* giving this responsibility to > the parent (the containing Aggregate) is that it requires you to have > a top-level Aggregate to control your composition's overall > structure. This might be seen as inconvenient; "I know when this > object should start, I want to say so when I create the object." This is not a problem, with me at least. The problem is an that you can't perform onset-related operations on an object without interacting with its container (as a trivial example, translation). At the moment, in OMDE you can put an object in a container and still intermixing direct operations on the object and operations on the container as a whole, that is: e = Event() a = Aggregate(e, f, g , h ,i) a.strech() e.translate_relative(-5) How do you perform a translation of an object in your way? a.translate_object_relative(a, -5) Doesn't works, because, as you said, you want to have several copies of the same event. You have to do something like a.translate_object_relative(123, -5) where 123 is probably the index of the object in the list of tuples (onset, object) like a.list This is good for a GUI, where you click on the windows, calculate the coordinate of an event, find it on the list and keep its index. Not so good with a script. You should have to tag one to one each event... > As further purely anecdotal evidence, I'll note that the author of > Blue does it my way. :) In fact Blue its GUI driven! Are you in contact with him or did you read the sources of Blue? I always thought of Blue as the obvious user interface for OMDE/pmask. Maurizio Umberto Puxeddu. |