File size: 939 Bytes
4cadbaf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

import Navigator from "./navigator";
import Node from "./node";

import {Note} from "../MusicNotation";



export interface SimpleNotationData {
	notes: Note[];
}


export interface CriterionNotationData extends SimpleNotationData {
	pitchMap: {[key: number]: Note[]};
}


declare const normalizeInterval: (interval: number) => number;
declare const makeNoteSoftIndex: (notes: Note[], index: number) => void;
declare const makeMatchNodes: (note: Note, criterion: CriterionNotationData, zeroNode?: object) => void;
declare const genNotationContext: (notation: SimpleNotationData, options?: {softIndexFactor?: number}) => void;
declare const runNavigation: (criterion: SimpleNotationData, sample: SimpleNotationData, onStep?: (i: number, navigator: Navigator) => Symbol | Promise<Symbol>) => Promise<Navigator>;



export {
	normalizeInterval,
	makeNoteSoftIndex,
	makeMatchNodes,
	genNotationContext,
	runNavigation,
	Navigator,
	Node,
};