UNPKG

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