cornedriesprong / mingus

Automatically exported from code.google.com/p/mingus
GNU General Public License v3.0
0 stars 0 forks source link

Save space of bar attributes #84

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
An interesting idea taken from MusicXML: when a bar has no information
about its attributes it inherits the attributes of the previous bar, saving
space.

It is very common to share the key info, meter, etc. And only when a value
changes is necessary to duplicate the attributes of the bar.

Original issue reported on code.google.com by jpala...@gmail.com on 7 Jul 2009 at 2:07

GoogleCodeExporter commented 9 years ago
changed label to Type-Discuss

Original comment by jpala...@gmail.com on 7 Jul 2009 at 2:11

GoogleCodeExporter commented 9 years ago
This could work on the Track level, but we still need all the attributes to be
supplied because all the algorithms depend on them. 

If a Track encounters a Bar where the meter or key is set to None for example 
or when
it has been deleted, we could let that get replaced with the last known meter 
or key,
but that Bar in itself is not usable, because meter and key information is used
everywhere and crucial to the inner workings (even to add notes to the Bar for
example). So unfortunately I don't think we will gain much by this.

It can however be implemented in the MusicXML module by looking at the Bar and
checking if the key or meter is different from the previous one (if the spec 
doesn't
require a meter for every bar for example -- I don't know if this is true).

Original comment by Rhijnauwen@gmail.com on 7 Jul 2009 at 3:11