- Lines now change their colour (bars, lines in staves, brace etc).
- Grouping stuff that intersects with line staves.
- Need to group things which lie outside of lines but are associated with things inside lines (notes/beams with stems etc). Probably a good time to refine my object model a little.
- Chaining through stems and then beams/notes works well.
- Will assume that anything that intersects with something now in a line is also in that line. Works pretty well..
- Trying to group left-overs by how close they are to other stuff already grouped. This will need to be an iterative operation starting with the best candidates and progressively working outwards as things are grouped.
- Grouping stuff at top and bottom of pages.
- How do I measure the minimum distance between two weird shapes? It is possible to convert a StreamGeometry to a series of points (in a long string) which somewhat match its shape. I guess I'll then have to do a lot of comparisons between points of shapes. Inefficient, but I care more about accuracy for the moment.
- Actually, it's just too slow fkn. Perhaps I'll use eight points from an elipse that fits within the bounds of an element. I'll use higher accuracy for things which appear to be phrase marks.
- Turns out google calculator defaults to radians for trigonometry... I'd forgotten about those.
- Using a few points from a fitted elipse is fast enough. Will (hopefully) finish grouping tomorrow.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment