// The tone hole lattice and fingering chart, mirrored from // ../matlab/recorder_geometry.m for the 3D scene. Hole 0 is the thumb hole // (back of the instrument); 1..7 are the finger holes from the top down. // Positions are fractions of the bore length below the window. export const HOLE_FRAC = [0.3699, 0.4271, 0.464, 0.5292, 0.6204, 0.6519, 0.7424, 0.828]; export const HOLE_RAD = [0.0027, 0.0032, 0.003, 0.0029, 0.0033, 0.0026, 0.0032, 0.0025]; // 0 closed, 1 open, 0.5 pinched; rows are the fingering chart notes. export const FINGERINGS: number[][] = [ [0, 0, 0, 0, 0, 0, 0, 0], // C5 [0, 0, 0, 0, 0, 0, 0, 1], // D5 [0, 0, 0, 0, 0, 0, 1, 1], // E5 [0, 0, 0, 0, 0, 1, 0, 0], // F5 (fork) [0, 0, 0, 0, 1, 1, 1, 1], // G5 [0, 0, 0, 1, 1, 1, 1, 1], // A5 [0, 0, 1, 1, 1, 1, 1, 1], // B5 [0, 1, 0, 1, 1, 1, 1, 1], // C6 [1, 0, 0, 1, 1, 1, 1, 1], // C#6 [1, 1, 0, 1, 1, 1, 1, 1], // D6 [0.5, 0, 0, 0, 0, 0, 1, 1], // E6 [0.5, 0, 0, 0, 0, 1, 0, 1], // F6 [0.5, 0, 0, 0, 1, 1, 1, 1], // G6 [0.5, 0, 0, 1, 1, 1, 1, 1], // A6 ];