Finale SmartMusic
  Home | Log In | Register | Search | Help
   
MakeMusic Forum > Public Forums > Plug-In Development - FORUM HAS MOVED! > Note/Entry coordinates  Forum Quick Jump
 
You cannot post new topics in this forum. You cannot reply to topics in this forum. Printable Version
[ << Previous Thread | Next Thread >> | Show Newest Post First ]

dml
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailableSend a Private Message to dmlAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2004
Total Posts : 5
 
   Posted 7/5/2004 1:55 PM (GMT -6)    Quote This PostAlert An Admin About This Post.
Is there a way with the PDK to determine the closest EXNOTE/EXENTRY to a given screen/document coordinate?

Ideally, I'd like something like "EXENTRY* getClosest(int x, int y)", but any of the following suffice:

- Return the bounding box coordinates of a measure
- Return the bounding box coordinates of a note
- etc.

As you can see, I just need some mapping between what the API generally has (measures, notes, etc.) and actual coordinates.

Does anyone know of any way to do this within a plug-in?

Thanks in advance.

-Dave
Back to Top

Michael Good
MusicXML Maven



Email Address Not AvailableClick to visit Michael Good's website.Send a Private Message to Michael GoodAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined May 2000
Total Posts : 1299
 
   Posted 7/6/2004 1:33 PM (GMT -6)    Quote This PostAlert An Admin About This Post.
Hi Dave,

I don't know of any hit test / bounding box functions in the PDK. You might be able to fake it with entry metrics, but that would probably be both slow and complex.

It sure would make a nice addition to a future version of the PDK!


Michael Good
Recordare LLC
 

Back to Top

dml
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailableSend a Private Message to dmlAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2004
Total Posts : 5
 
   Posted 7/20/2004 9:41 AM (GMT -6)    Quote This PostAlert An Admin About This Post.
Hi Michael,

Thanks for the reply. I have since tried to use Entry Metrics but to no avail.

FX_GetEntryMetrics and FX_GetTGFEntryMetrics seem to always fail (i.e. return NO) even when I am quite sure that the arguments I give it are correct.

Have you used them before? Can you provide any insight?

Thanks.

-Dave
Back to Top

dml
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailableSend a Private Message to dmlAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2004
Total Posts : 5
 
   Posted 7/20/2004 7:32 PM (GMT -6)    Quote This PostAlert An Admin About This Post.
Nevermind; I got it now.
 
-Dave
Back to Top

dml
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailableSend a Private Message to dmlAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2004
Total Posts : 5
 
   Posted 8/29/2004 1:24 PM (GMT -6)    Quote This PostAlert An Admin About This Post.
For anyone interested, I have written code to determine what entries are in a given bounding box.

I can make the code accessible if anyone's interested.

-Dave
Back to Top

Jari Williamsson
Registered Member

Click to send Jari Williamsson email.Click to visit Jari Williamsson's website.Send a Private Message to Jari WilliamssonAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Dec 1998
Total Posts : 3246
 
   Posted 9/7/2004 4:52 PM (GMT -6)    Quote This PostAlert An Admin About This Post.
dml said...
For anyone interested, I have written code to determine what entries are in a given bounding box.

I can make the code accessible if anyone's interested.


Sounds interesting! Could you post in on the finpdk group's file space? I guess there are more developers there who are interested in seeing it!


Jari Williamsson

Windows XP, Pentium 4
2.40 GHz, 1 GB RAM

Back to Top
You cannot post new topics in this forum. You cannot reply to topics in this forum. Printable Version
   
Forum Information
Currently it is Tuesday, December 19, 2023 8:21 PM (GMT -6)
There are a total of 403,820 posts in 58,165 threads.
In the last 3 days there were 0 new threads and 0 reply posts. View Active Threads