File size: 632 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

import {MidiData} from "./MIDI/midi";
import {Note, NotationEvent} from "./MusicNotation";



declare const sliceMidi: (midi: MidiData, startTick: number, endTick: number) => MidiData;


interface NotationToEncode {
	microsecondsPerBeat?: number;

	notes: Note[];
	events?: NotationEvent[];
}


type EncoderOptions = {startTime?: number, unclosedNoteDuration?: number};

declare const encodeToMIDIData: (notation: NotationToEncode, options?: EncoderOptions) => MidiData;
declare const encodeToMIDI: (notation: NotationToEncode, options?: EncoderOptions) => ArrayBuffer;



export {
	sliceMidi,
	encodeToMIDIData,
	encodeToMIDI,
};