Menu

Retrieving element from graphic

2011-01-23
2012-10-22
  • Christophe Tornieri

    Hi,

    Is it possible to retrieve the element in the AR from the element selected
    graphically ?

    Thanks,

    Chris

     
  • Christophe Tornieri

    To be more precise, I would lile to create a wysiwyg editor where you can
    directly drag-n-drop notes, modify them, ... How can I access AR objects from
    the graphical representation ?

    Thanks,

    Christophe

     
  • Dominique Fober

    Dominique Fober - 2011-01-25

    Hi Christophe,

    There is currently no way to associate a graphic position and an AR object.
    You can use the mapping API (see GUIDOScoreMap.h) to get information about the
    score graphic space but the given information is not enough to link to the AR
    representation. But that could be an opened discussion. I've already thought
    about extending the information set (actually the GuidoElementInfos struct),
    simply adding a MIDI note number could be useful for example to play a note
    when clicked but is it enough to link to the AR (?).

    Another issue is that the current AR representation is not really suitable for
    editing (but it depends also on the complexity of the features you plan to
    provide).

    --
    Dom

     

Log in to post a comment.