Skip to search.
tuning-math

Group Information

  • Members: 191
  • Category: Mathematics
  • Founded: May 21, 2001
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

  Messages Help
Advanced
Re: coordinates from unison-vectors   Message List  
Reply Message #2332 of 20696 |

A plea to all who understand matrix math:


A week ago, I posted the pseudo-code for the formulas
in my Excel spreadsheet which calculates the coordinates
of a 2-dimensional periodicity-block from a given pair
of unison-vectors. It's quoted below, with some additional
comments inserted.

The algorithm sometimes calculates the proper coordinates,
but not always. I've tried to work from Paul's _Gentle
Introduction to Fokker Periodicity Blocks, part 3_
<http://www.ixpres.com/interval/td/erlich/intropblock3.htm>,
but I'm just not getting it.

I am *begging* someone who knows how to do this to have
a look at my algorithm and correct it.


The two big problems:

1)
I find that sometimes in order to get the correct periodicity-block,
I have to enter one or both pairs of the unison-vector exponents
with the signs (=/-) reversed.

2)
Sometimes the blocks are centered on 1/1, as I intend
for them to be ... but sometimes they're not, with 1/1 being
plotted at a corner.


Also, it seems that sometimes the order in which I list the
unison-vectors makes a difference. Is it supposed to?
(I don't think so...)


The code within the "LOOP" is the part that needs fixing.


Thanks in advance for any help received!


-monz



> ----- Original Message -----
>
> > From: monz <joemonz@...>
> > To: <tuning-math@yahoogroups.com>
> > Sent: Sunday, December 23, 2001 12:28 AM
> > Subject: Re: [tuning-math] coordinates from unison-vectors (was: 55-tET)
> >
> >
> >
> > Here's the pseudo-code for the formulas in my spreadsheet.
> > Please feel free to correct any errors or to make the code
> > more elegant.
> >
> >
> >
> > unison-vectors =
> >
> > (3^a) * (5^b)
> > (3^c) * (5^d)
> >
> >
> >
> > unison-vector matrix =
> >
> > (a b)
> > (c d)
> >
> >
> >
> > determinant n of the matrix :
> >
> > n = (a*d) - (c*b)
> >
> >
> >
> > inverse of the matrix =
> >
> > ( d -b)
> > (-c a)
> > -------
> > n
> >
> >
> >
> > inverse coordinates p, q :
> >
> >
> > p = 0, q = 0
> >
> >
> > LOOP
> >
> > '-- This part finds the values p,q which fit into the unit-cube
> >
> > if ABS(p+d) > (ABS(n)/2)
> >
> > then p = MOD(p+d, ABS(n)) - ABS(n)
> >
> > else p = p + d
> >
> > end if
> >
> >
> >
> > if ABS(q-b) > (ABS(n)/2)
> >
> > then q = MOD(q-b, ABS(n)) - ABS(n)
> >
> > else q = q - b
> >
> > end if
> >
> >
> >
> > lattice coordinates x, y :
> >
> > '-- This part transforms back to the original space
> >
> > x = ( (q*c) + (p*a) ) / n
> >
> > y = ( (q*d) + (p*b) ) / n
> >
> >
> >
> > END LOOP
> >
> >
>
>









_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




Mon Dec 31, 2001 4:07 am

joemonz
Offline Offline
Send Email Send Email

Message #2332 of 20696 |
Expand Messages Author Sort by Date

A plea to all who understand matrix math: A week ago, I posted the pseudo-code for the formulas in my Excel spreadsheet which calculates the coordinates of a...
monz
joemonz Offline Send Email
Dec 31, 2001
4:06 am

... _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com...
monz
joemonz Offline Send Email
Dec 31, 2001
4:37 am

Wow... big, *BIG* Oops!... my bad! > From: monz <joemonz@...> > To: <tuning-math@yahoogroups.com> > Sent: Sunday, December 30, 2001 8:38 PM > Subject:...
monz
joemonz Offline Send Email
Dec 31, 2001
6:14 am

... _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com...
monz
joemonz Offline Send Email
Dec 31, 2001
9:08 am

Hi Dave (Keenan), Aren't you the current resident Excel-meister? (suggestive evidence: your tumbling dekany) I've posted my Periodicity-Block Calculator...
monz
joemonz Offline Send Email
Dec 31, 2001
10:15 am

... Sorry Monz, I'm preparing to go away with my family in a few days to camp for two weeks on an coral island. (Lady Musgrave Island, southern end of the...
dkeenanuqnetau Offline Send Email Dec 31, 2001
10:56 pm

Here's my Matlab code for doing this. I arbitrarily start with a 101- by-101 square of lattice points. Rye is the 2-by-2 matrix of unison vectors. t is the set...
paulerlich Offline Send Email Jan 4, 2002
5:37 am

... _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com...
monz
joemonz Offline Send Email
Dec 31, 2001
10:43 am

... J Gill: So your (dynamite presentation!) XLS Spreadsheet will allow determination of mean-tone "coefficients" which "best fit" any 5-limit periodicity...
unidala Offline Send Email Dec 31, 2001
4:05 pm

... _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com...
monz
joemonz Offline Send Email
Dec 31, 2001
10:54 am

... _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com...
monz
joemonz Offline Send Email
Dec 31, 2001
11:22 am

... _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com...
monz
joemonz Offline Send Email
Dec 31, 2001
11:30 am

Hi J! > From: unidala <JGill99@...> > To: <tuning-math@yahoogroups.com> > Sent: Monday, December 31, 2001 8:05 AM > Subject: [tuning-math] Re:...
monz
joemonz Offline Send Email
Dec 31, 2001
8:51 pm

Hey Dave, > From: dkeenanuqnetau <d.keenan@...> > To: <tuning-math@yahoogroups.com> > Sent: Monday, December 31, 2001 2:56 PM > Subject: [tuning-math]...
monz
joemonz Offline Send Email
Dec 31, 2001
11:34 pm

... _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com...
monz
joemonz Offline Send Email
Jan 4, 2002
6:21 am
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help