byan61 wrote > I made some changes for adding a linked Jianpu staff to a standard staff > and converting the note pitch/tpc values to Jianpu note numbers. See the > picture below. > I am currently using layout of the standard staff. I still need to to put > all the Jianpu note numbers on the same level and add dashes underneath > the numbers for eighth notes, sixteenth notes, etc. > How does the the staff/note layout and drawing work in general? Any > pointers for further study?
If my experience as the author of most of the TAB implementation can be useful, most elements (like note heads, stems, beams, etc) have a *layout()* method, as lasconic said, and a *draw()* method. I have added special treatment for the TAB case in many of them and you can have a look at them for inspiration. For instance (but quoting from memory), if in in a TAB staff, the *Note::layout()* method positions the note head depending on the TAB string rather than on the note pitch; the *Accidental::draw()* method totally skips the element (TAB have no accidentals) and so on. I would suggest NOT to modify values related to standard staves (like pitch and tpc), but to use them for as a base for your own calculations, as they will be needed if the staff is converted back to standard notation. I would also suggest to focus initially only on implementing a 'native' (i.e. autonomous, non-linked) /jianpu/ staff and to deal with staff linking only once it has reached an advanced enough state (and you decide what "advanced enough" may mean). Good luck! M. -- View this message in context: http://dev-list.musescore.org/Support-for-numbered-notation-Jianpu-tp7580026p7580041.html Sent from the MuseScore Developer mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Mscore-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mscore-developer
