Google Groups Home
Help | Sign in
Coordinate System
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post will appear after it is approved by moderators
allpowertabs@gmail.com  
View profile
 More options Aug 14 2007, 11:53 pm
From: "allpowert...@gmail.com" <allpowert...@gmail.com>
Date: Tue, 14 Aug 2007 20:53:52 -0700
Local: Tues, Aug 14 2007 11:53 pm
Subject: Coordinate System
Has anyone figured out the coordinate system for the mfc-rect? I
figured out the systems are RECT (50,y,800,y). The positions and other
elements remain a mystery to me. I would love to start writing stuff
that converts things into power tab format, but the power tabs won't
look right unless I get this right.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simone Tellini  
View profile
 More options Aug 15 2007, 6:34 am
From: Simone Tellini <simone.tell...@gmail.com>
Date: Wed, 15 Aug 2007 03:34:17 -0700
Local: Wed, Aug 15 2007 6:34 am
Subject: Re: Coordinate System

allpowert...@gmail.com wrote:
> Has anyone figured out the coordinate system for the mfc-rect? I

it's the usual (unless you're on a Mac ;-) coordinate system: (0,0) is
the top-left corrner of the screen, y increases towards the bottom of
the screen.

> figured out the systems are RECT (50,y,800,y). The positions and other

the rect components are (x,y,width,height)

Width is pretty much a constant (although I wouldn't assume it is),
the others vary according to how much stuff there is in the system.

The position of most of the other elements is not saved in the PTB
file, but it can be computed based on the many XXXSpacing attributes
and the content of the system.

--
Simone Tellini
http://www.tellini.org


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
allpowertabs@gmail.com  
View profile
 More options Aug 16 2007, 11:19 am
From: "allpowert...@gmail.com" <allpowert...@gmail.com>
Date: Thu, 16 Aug 2007 15:19:53 -0000
Local: Thurs, Aug 16 2007 11:19 am
Subject: Re: Coordinate System
Thanks Simone,

But, I think it's a little more complicated than that. The the width
and height is what I'm having issues with. The coordinate of x is
always dependent on the font height of the musical notation, the chord
names, and rhythm slashes . (which the parser doesn't calculate) I
cannot always depend on "x" being every 250 logical units, etc. I am
having the same issue with the position RECT.

On Aug 15, 6:34 am, Simone Tellini <simone.tell...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simone Tellini  
View profile
 More options Aug 20 2007, 5:14 am
From: Simone Tellini <simone.tell...@gmail.com>
Date: Mon, 20 Aug 2007 11:14:20 +0200
Local: Mon, Aug 20 2007 5:14 am
Subject: Re: Coordinate System

Il giorno 16/ago/07, alle ore 17:19, allpowert...@gmail.com ha scritto:

> But, I think it's a little more complicated than that. The the width
> and height is what I'm having issues with. The coordinate of x is

width and height of what? systems? positions?

Systems are the easy ones: system->GetRect() gives you the exact  
location and size of the rectangle containing the whole system.

The x of the positions derives from system->GetPositionSpacing(),  
which you can consider as their width. To get the first x, you need  
to consider if there's a clef at the start of the system, make room  
for time and key signatures, etc...

> always dependent on the font height of the musical notation, the chord
> names, and rhythm slashes . (which the parser doesn't calculate) I
> cannot always depend on "x" being every 250 logical units, etc. I am

as I said, the coordinates of most of the elements must be computed  
based on what's in the tab. You need to take your time to think how  
to put all the elements together: see how the pieces relate to one  
another, what hints you can get from the information in the tab and  
figure out a layout algorithm that can places everything where it  
needs to be.

It's not easy and it takes quite some time: begin playing with only a  
subset of the elements (for instance, try doing only the tablature  
first, which is the easiest part), then increase the complexity  
little by little.

Brad said that writing the drawing code starting from the parser is a  
"fairly comprehensive task". He did mean it ;-)

--
Simone Tellini
http://www.tellini.org


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google