Lucubro July 12-18

From PSwiki
Jump to navigation Jump to search

My provider's support team fixed the connection this afternoon and now it's fully working. Not having the connection slows me a bit during this week but I've made good progresses.

I think I've done the right choise by deciding to implement the GUI right now. It is umbelievable long to implement. There are lots of small things that must be handled in representing a musical sheet and it's taking a lot of time. Moreover in the font not all symbols are drawn at the same height so I had to do an extra effort to print each character according to its proprieties. I'm doing my best to keep the rendering font-independent but I had to hardcode something. Nevertheless the rendering is font-size independent. I'm working very hard to represent the musical sheet in a decent way. Of course I won't reach the level of a commercial musical editor, but results right now are pretty good.

This week I've implemented these features:

  • Created all the data structures.
  • Added alteration buttons.
  • Added code to print notes, measures and lines.
  • Implemented a couple of cursor needed for the sheet editing
  • Added code to input notes.

Both the notes input and drawing handle correctly duration (with or without dot), rests, alterations and ledger lines. Adjacent notes in a chord are represented elegantly on different horizontal positions.

Next thing to implement:

  • Notes and measures insertions can brings lot of resizing problems so I have to make the measures have a dynamic length and update this length when needed.
  • I have to load and save the sheet from and to an XML format. I don't expect this to be too much time consuming since I've designed the data structures to be easy representable.