Thanks. That is a helpful document.
Note the sentence from the document:

The Segment object (segment.h) is perhaps the most important data structure to 
understand in MuseScore. 


> On 03 May 2015, at 19:07, Marc Sabatella [via MuseScore Developer] 
> <ml-node+s685061n7579284...@n2.nabble.com> wrote:
> 
> Oh, sorry, I didn't realize that.  Segment is a very fundamental concept in 
> MuseScore - it refers to a vertical time slice of the score.  See 
> https://docs.google.com/document/d/1BmjPqk9j4-zSFaiFsUjYSURDk98MHSgrHjfhMJ1Q9gg/edit?usp=sharing
>  
> <https://docs.google.com/document/d/1BmjPqk9j4-zSFaiFsUjYSURDk98MHSgrHjfhMJ1Q9gg/edit?usp=sharing>
>  for information on these sort of basics.
> 
> On Sun, May 3, 2015 at 12:55 PM, Jim Newton <[hidden email] 
> <x-msg://8/user/SendEmail.jtp?type=node&node=7579284&i=0>> wrote:
> Yes thanks, it is making more and more sense.
> But I still haven’t understood what a segment is.
> I see a way of getting it of this and that object, but I still don’t know 
> what it represents.
> 
> 
> > On 03 May 2015, at 18:52, Marc Sabatella [via MuseScore Developer] <[hidden 
> > email] <x-msg://8/user/SendEmail.jtp?type=node&node=7579284&i=1>> wrote:
> >
> > On Sun, May 3, 2015 at 11:59 AM, Jim Newton <[hidden email] 
> > <x-msg://4/user/SendEmail.jtp?type=node&node=7579281&i=0>> wrote:
> > 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?
> >
> > Are you looking at the code?  It's a simple integer.  0 for the top line of 
> > the staff, then it counts space, line, space, line etc. from there.
> >
> > 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).
> >
> > Right, and this is what I meant about not having enough context.  You can't 
> > know the key or accidental  state of a note until you know what segment it 
> > belongs to.  I assume everything you are doing is in rendermidi, so that 
> > shouldn't be a problem.  The notes are already added to chords, which are 
> > already added to segments, which are already added to measures, long before 
> > we trying to deal with playback.
> >
> > Marc
> >
> > ------------------------------------------------------------------------------
> > 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> 
> > <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://4/user/SendEmail.jtp?type=node&node=7579281&i=1>
> > https://lists.sourceforge.net/lists/listinfo/mscore-developer 
> > <https://lists.sourceforge.net/lists/listinfo/mscore-developer> 
> > <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-tp7579271p7579281.html
> >  
> > <http://dev-list.musescore.org/ISO-version-of-diatonicUpDown-which-understands-accidentals-tp7579271p7579281.html>
> >  
> > <http://dev-list.musescore.org/ISO-version-of-diatonicUpDown-which-understands-accidentals-tp7579271p7579281.html
> >  
> > <http://dev-list.musescore.org/ISO-version-of-diatonicUpDown-which-understands-accidentals-tp7579271p7579281.html>>
> > To unsubscribe from ISO version of diatonicUpDown which understands 
> > accidentals, click here < > NAML < 
> > <applewebdata://4F66BF34-7F49-4CDE-9A75-81CE2B195D0B>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
> >  
> > <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-tp7579271p7579282.html
>  
> <http://dev-list.musescore.org/ISO-version-of-diatonicUpDown-which-understands-accidentals-tp7579271p7579282.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://8/user/SendEmail.jtp?type=node&node=7579284&i=2>
> https://lists.sourceforge.net/lists/listinfo/mscore-developer 
> <https://lists.sourceforge.net/lists/listinfo/mscore-developer>
> 
> 
> 
> -- 
> Marc Sabatella
> [hidden email] <x-msg://8/user/SendEmail.jtp?type=node&node=7579284&i=3>
> 
> ------------------------------------------------------------------------------
>  
> 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://8/user/SendEmail.jtp?type=node&node=7579284&i=4> 
> 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-tp7579271p7579284.html
>  
> <http://dev-list.musescore.org/ISO-version-of-diatonicUpDown-which-understands-accidentals-tp7579271p7579284.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-tp7579271p7579287.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
Mscore-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mscore-developer

Reply via email to