Hi Joe.

<<Message: 8

Date: Sun, 3 Mar 2002 19:27:00 -0800

From: "monz" <joemonz@yahoo.com>

Subject: help with ratio/vector algorithm

...

ratio r = 2^p * 3^q

if q < 0

then p = int((log(3^abs(q)) / log(2)) + 0.5)

else p = (int((log(3^abs(q)) / log(2)) + 1.5)) * -1

end if

>>

Why not just have a list n^m/d where d = 2^int(log(n^m)/log(2)) and a list

n/d^m where n = 2^(int(log(d^m)/log(2))+1) That's is what I use. But I

don't think I understand what you're trying to do.

Aaron

hi Robert and Aaron,

> From: <pitchcolor@aol.com>

> To: <tuning-math@yahoogroups.com>

> Sent: Monday, March 04, 2002 12:38 PM

> Subject: [tuning-math] monz spreadsheet

>

> [me, monz]

>

> > ratio r = 2^p * 3^q

> >

> > if q < 0

> > then p = int((log(3^abs(q)) / log(2)) + 0.5)

> > else p = (int((log(3^abs(q)) / log(2)) + 1.5)) * -1

> > end if

> >

thanks for the suggestions on that topic, but Graham

has already given me the solution which works correctly:

mod((log(3^abs(q))/log(2)),1) - (log(3^abs(q))/log(2))

-monz

_________________________________________________________

Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com