> Hello Everybody,
>
> after using Rosegarden now for quite a while, I decided to try to
> contribute to the project.
This sounds like a useful contribution.
> My first attempt would be a checker for parallels (parallel fifths and
> octaves, or consecutive fifths and octaves, unfortunately my native
> language is not English so I'm not really sure what the correct
> terminology is, I found both in literature...)
Both are used, I hear "parallel" more often.
> So far, so good, this compiles and runs and does what it is supposed to do
> at the moment. Unfortunately this kind of user interface is not usable as
> it is not trivial to find the notes in the editor based on their printed
> absolute time in a text widget. 8-/
Right. I've had to do that sort of thing a few times during development.
It gets tiresome quickly.
> I would like to mark the problematic notes in the notation editor. Of
> course, color would be my first idea.
>
> Although the wiki was extremely helpful in getting an idea about
> organisation of the code (together with the source code, of course),
> tracks, segments, events and so on, i could not come up with a clear
> picture in mind on how to proceed.
>
> Please, could somebody point me in the right direction on how to set the
> color of notes in the notation editor? Which parts of the source code
> should I consult? Is there an overview of the process of drawing the sheet
> music, like there is in dev:overall_code_structure for the general
> organisation?
Afraid there isn't. I've done it a time or two. It's not hard as such,
but it's roundabout. You have to set a little thing here, then something
else somewhere.
It's been a while, so apologies if I leave out anything crucial.
NotePixmapFactory::drawNoteAux is responsible for drawing the note, but
you start in NotationStaff::renderNote. Add a field to
NotePixmapParameters to indicate this new property, so you can communicate
it.
But you probably want to define a new color. To do so, add to the enum in
NotePixmapFactory, and add a case for that enum to the switches in
NotePixmapFactory.cpp. NotePixmapFactory::getCharacter is the one where
the case should do something, the others should fall thtu to default.
As an afterthought, it would be easier but less colorful to simply set the
selection to that group of notes.
Apologies if this is too little or unclear. I have an appointment right now.
Good luck!
Tom Breton (Tehom)
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel