TIP: Click on subject to list as thread! ANSI
echo: music_comp_101
to: MATT NATHAN
from: MATHIEU BOUCHARD
date: 1996-05-21 13:20:00
subject: rings

 MN> Neato. The first few I can verify in my head. What was your 
 MN> general approach; permute all scales, then eliminate ones 
 MN> which are in same ring? I still haven't figured a way to 
Exactly that.
 MN> calculate the number directly, without counting. I wonder 
 MN> if there actually is a way? Would you care to post your 
 MN> code? 
DEFLNG A-Z
CONST ln = 12
CONST lnn = 2048   ' lnn is 2^(ln-1)
DIM a$(2048)
n = 0
CLS
FOR t = 0 TO lnn - 1
  IF (t AND 63) = 0 THEN LOCATE 1, 1: PRINT t
  c$ = "": b = 1: k = 0
  FOR d = 0 TO ln - 1
    IF (t AND b) THEN c$ = "-" + c$ ELSE c$ = "x" + c$
    b = b + b
  NEXT d
  FOR s = 0 TO n - 1
  IF INSTR(a$(s) + a$(s), c$) THEN k = 1: EXIT FOR
  NEXT s
  IF k = 0 THEN a$(n) = c$: n = n + 1
NEXT t
PRINT n
Matju 1:243/68.1 101:163/100 34:104/103 http://www.comnet.ca/~galois/matju/
--- Terminate 3.00
---------------
* Origin: Mixolydia Point System, Hull QC (1:243/68.1)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.