Great that is very enlightening. But I think I don’t yet understand “line”.
Is line some sort of iterator or index into the staff or measure when read from 
left to right?\
Or is line really referring to the 5 lines of a staff and the 4 spaces?
I ask this because  it seems that I can calculate the step given the line and 
the clef.  (absStep cf 1300 in file edit.cpp)

What about the segment?  To call the findAccidentalFunction, I apparently need 
the measure, the segment, 
the staffIdx, and the line. (1299 in file edit.cpp).

Jim

> On 03 May 2015, at 16:32, Marc Sabatella [via MuseScore Developer] 
> <[email protected]> wrote:
> 
> I don't know that there is documentation on this, but I can try to answer the 
> specific questions here according to my understanding
> 
> - staffIdx is indeed the index into the array of staves
> 
> - some note input functions use a concept of position to indicate where the 
> note is to be placed, the details may differ sccording to context
> 
> - QPointF is a Qt thing, just an (x,y) point.  For anything starting with Q, 
> you can look that up in the Qt docs.
> 
> - step is normally an integer 0 = C, 1 = D, 2 = E, etc - basically, note 
> name, not considering key or accidental
> 
> - Note::line() tells you what line is on.  Trying to figure out what note 
> corresponds to which line is exactly what the note input functions already do 
> - so they can determine what note to add if you press "B", or click the 
> middle line of the staaff.  So follow that code and you should get a good 
> idea of what is possible.
> 
> On Sun, May 3, 2015 at 6:12 AM, Jim Newton <[hidden email] 
> <x-msg://2/user/SendEmail.jtp?type=node&node=7579277&i=0>> wrote:
> Hi Marc, thanks for pointing out that issue.  I was beginning to wonder
> something very similar from looking at the code.
> 
> The puzzling thing that I've found so far is this.
> 
> Given a Note object, I can call findAccidental on it.  However, if the note
> has not yet been created, it is not clear to me how to investigate its
> impending accidental-ness.
> 
> The function findAccidental can also be called with a segment, staff index
> (staffIdx) and line.
> Do you understand what those concepts are?   Is staffIdx an index to which
> staff the note is on in a multi-staff system, or is it an index within a
> staff to which line/space the note is (or will be) sitting on?
> In looking at this code there seems to be two things called a position, on
> of type Position, and one of type QpointF. There is also something called a
> step (cf function step2pitch).
> 
> QUESTION: Is there a place in the code or documentation where these and
> related concepts are explained?  It would help me to understand them.
> 
> What I think I'd like to be able to do (with regard to ornament calculation)
> is think of musical notes in a staff, and trill to the note above or below
> in the staff.   Thus I need to ask the question, which line/space is the
> given note on?  What note would correspond to the line/space above or below
> (or two above or two below) the given note?  Those questions should take
> into account already the key signature, and any accidentals which are
> pending within the measure to the left of the given note.
> 
> 
> 
> --
> View this message in context: 
> http://dev-list.musescore.org/ISO-version-of-diatonicUpDown-which-understands-accidentals-tp7579271p7579275.html
>  
> <http://dev-list.musescore.org/ISO-version-of-diatonicUpDown-which-understands-accidentals-tp7579271p7579275.html>
> Sent from the MuseScore Developer mailing list archive at Nabble.com.
> 
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y 
> <http://ad.doubleclick.net/ddm/clk/290420510;117567292;y>
> _______________________________________________
> Mscore-developer mailing list
> [hidden email] <x-msg://2/user/SendEmail.jtp?type=node&node=7579277&i=1>
> https://lists.sourceforge.net/lists/listinfo/mscore-developer 
> <https://lists.sourceforge.net/lists/listinfo/mscore-developer>
> 
> 
> 
> -- 
> Marc Sabatella
> [hidden email] <x-msg://2/user/SendEmail.jtp?type=node&node=7579277&i=2>
> 
> ------------------------------------------------------------------------------
>  
> One dashboard for servers and applications across Physical-Virtual-Cloud 
> Widest out-of-the-box monitoring support with 50+ applications 
> Performance metrics, stats and reports that give you Actionable Insights 
> Deep dive visibility with transaction tracing using APM Insight. 
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y 
> <http://ad.doubleclick.net/ddm/clk/290420510;117567292;y>
> _______________________________________________ 
> Mscore-developer mailing list 
> [hidden email] <x-msg://2/user/SendEmail.jtp?type=node&node=7579277&i=3> 
> https://lists.sourceforge.net/lists/listinfo/mscore-developer 
> <https://lists.sourceforge.net/lists/listinfo/mscore-developer>
> 
> 
> If you reply to this email, your message will be added to the discussion 
> below:
> http://dev-list.musescore.org/ISO-version-of-diatonicUpDown-which-understands-accidentals-tp7579271p7579277.html
>  
> <http://dev-list.musescore.org/ISO-version-of-diatonicUpDown-which-understands-accidentals-tp7579271p7579277.html>
> To unsubscribe from ISO version of diatonicUpDown which understands 
> accidentals, click here 
> <http://dev-list.musescore.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=7579271&code=amlta2EuaXNzeUBnbWFpbC5jb218NzU3OTI3MXwxMTEzNjI0NTI5>.
> NAML 
> <http://dev-list.musescore.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>




--
View this message in context: 
http://dev-list.musescore.org/ISO-version-of-diatonicUpDown-which-understands-accidentals-tp7579271p7579278.html
Sent from the MuseScore Developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Mscore-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mscore-developer

Reply via email to