On Wednesday 06 August 2003 14:29, Chris Cannam wrote:
>
> Most of the time, it's a big advantage that the metronome is more
> structured (and therefore simpler) than a full segment editor.

OK, good point.

> OK, consider a piece that starts in 4/4 for two bars, then goes
> into a number of alternating bars of 5/8 and 3/4 and finally
> settles down in 6/8 with a closing 4/4 bar.  What do you store
> in the composition?

Some kind of map<TimeSig,Segment*>, so I could mmap all of them, tell the 
sequencer about it, and then when the sequencer gets a TimeSig event it would 
just start playing the right segment.

> Then what do you do with it when the user
> replaces that 6/8 with a 3/4 and switches it to 4/4 a bit sooner?

I wouldn't do anything, it's purely a playback time issue.

> And whatever it is you do, how is that simpler than regenerating
> the whole thing?

It's not, I agree.

> >> See if you're generating a segment, why bother making it a short
> >> repeating one at all?  Why not just go from one end of the
> >> composition to the other, filling in notes at all the right times?
> >
> > Isn't that redoing what the sequencer does at playback time ?
>
> The sequencer just plays the notes, it doesn't decide when to
> play them.

OK, disregard my previous statement, I misunderstood what you were meaning.

> I suggest we just have a simple method in the sequence manager
> that creates a segment, shoves the events in it using code
> somewhat like the function I just posted, maps it and then
> throws it away.

I'll try that.

> Or it could get fancy and write the MappedEvents
> straight to the mmapped area without bothering with a segment.

Not sure it would be worth the hassle.

-- 
                                                Guillaume.
                                                http://www.telegraph-road.org


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Rosegarden-devel mailing list
[EMAIL PROTECTED] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to