|
|
MakeMusic Forum > Public Forums > Plug-In Development - FORUM HAS MOVED! > Note/Entry coordinates | Forum Quick Jump
|
| dml Registered Member
Date Joined Jul 2004 Total Posts : 5 | Posted 7/5/2004 1:55 PM (GMT -6) | | 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 | |
| dml Registered Member
Date Joined Jul 2004 Total Posts : 5 | Posted 7/20/2004 9:41 AM (GMT -6) | | 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
Date Joined Jul 2004 Total Posts : 5 | Posted 7/20/2004 7:32 PM (GMT -6) | | |
| dml Registered Member
Date Joined Jul 2004 Total Posts : 5 | Posted 8/29/2004 1:24 PM (GMT -6) | | 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 | | 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
|
Forum powered by dotNetBB v2.42EC SP3 dotNetBB © 2000-2023 |
|
|