modularScale.d.ts 615 B

1234567891011121314151617181920212223242526272829
  1. import { ModularScaleRatio } from '../types/modularScaleRatio';
  2. declare const ratioNames: {
  3. minorSecond: 1.067;
  4. majorSecond: 1.125;
  5. minorThird: 1.2;
  6. majorThird: 1.25;
  7. perfectFourth: 1.333;
  8. augFourth: 1.414;
  9. perfectFifth: 1.5;
  10. minorSixth: 1.6;
  11. goldenSection: 1.618;
  12. majorSixth: 1.667;
  13. minorSeventh: 1.778;
  14. majorSeventh: 1.875;
  15. octave: 2;
  16. majorTenth: 2.5;
  17. majorEleventh: 2.667;
  18. majorTwelfth: 3;
  19. doubleOctave: 4;
  20. };
  21. declare function modularScale(
  22. steps: number,
  23. base?: number | string,
  24. ratio?: ModularScaleRatio,
  25. ): string;
  26. export { ratioNames };
  27. export default modularScale;