denemo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Denemo-devel] A major re-structuring.


From: Richard Shann
Subject: [Denemo-devel] A major re-structuring.
Date: Thu, 10 Mar 2016 15:14:05 +0000

One of the most fundamental mistakes made when Denemo was first started
was not to have a structure for a Denemo measure. Instead it is just a
list of the objects in the measure. As a knock on effect, nothing can be
stored with the measure that applies to the whole measure.
This has made it difficult to fix the way that information about the
context (clef, timesignature ...) of an object is stored, especially
when a measure has no objects. It has long been my ambition to get rid
of the way the calculation of the context information is computed - a
draw time. This is still causing failures in Check Score on occasions.

As a start I have created a branch Restructure in which a staff now has
a list of Measure structures, which for now just has one element, viz.
the list of objects.

I've done a first trawl of all the code to try and make the change work
properly, and I've tested (with the default build) loading files,
starting new files, adding and deleting movements, staffs, measures,
notes, chords, copy and paste creating snippets, pasting and following
them Undo and Redo.

It would not surprise me if I have missed something, it is perilous
work. The symptoms of an error are crashes, often with memory allocation
warnings. But, so far it seems good. If anyone can help testing this
version that would be good!

Richard





reply via email to

[Prev in Thread] Current Thread [Next in Thread]