#!/bin/sh
awk '
END {
  print "Yamaha TX81Z/DX11 ideal pitch ratios"
  print
  print "Rows marked with \"-\" are coarse val-"
  print "ues. Columns show the fine values"
  print "reachable from the associated coarse"
  print "value."
  print
  for(i=8; i<16*16; i++) {
    blockstart=(i==8 || i%16==0) ? "-" : " "
    printf "%6.3f %s %6.3f %s %6.3f %s %6.3f\n",
      i/16,
      blockstart, i/16*sqrt(2),
      blockstart, i/16*3.141592654/2,
      blockstart, i/16*sqrt(3)
  }
}
' /dev/null
