@marmooo/midy 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/midy-GM1.d.ts +6 -43
- package/esm/midy-GM1.d.ts.map +1 -1
- package/esm/midy-GM1.js +38 -32
- package/esm/midy-GM2.d.ts +41 -102
- package/esm/midy-GM2.d.ts.map +1 -1
- package/esm/midy-GM2.js +130 -61
- package/esm/midy-GMLite.d.ts +4 -39
- package/esm/midy-GMLite.d.ts.map +1 -1
- package/esm/midy-GMLite.js +34 -32
- package/esm/midy.d.ts +41 -124
- package/esm/midy.d.ts.map +1 -1
- package/esm/midy.js +130 -65
- package/package.json +1 -1
- package/script/midy-GM1.d.ts +6 -43
- package/script/midy-GM1.d.ts.map +1 -1
- package/script/midy-GM1.js +38 -32
- package/script/midy-GM2.d.ts +41 -102
- package/script/midy-GM2.d.ts.map +1 -1
- package/script/midy-GM2.js +130 -61
- package/script/midy-GMLite.d.ts +4 -39
- package/script/midy-GMLite.d.ts.map +1 -1
- package/script/midy-GMLite.js +34 -32
- package/script/midy.d.ts +41 -124
- package/script/midy.d.ts.map +1 -1
- package/script/midy.js +130 -65
package/script/midy-GMLite.d.ts
CHANGED
|
@@ -37,25 +37,7 @@ export class MidyGMLite {
|
|
|
37
37
|
notePromises: any[];
|
|
38
38
|
audioContext: any;
|
|
39
39
|
masterGain: any;
|
|
40
|
-
channels:
|
|
41
|
-
scheduledNotes: Map<any, any>;
|
|
42
|
-
gainL: any;
|
|
43
|
-
gainR: any;
|
|
44
|
-
expression: number;
|
|
45
|
-
modulation: number;
|
|
46
|
-
sustainPedal: boolean;
|
|
47
|
-
rpnMSB: number;
|
|
48
|
-
rpnLSB: number;
|
|
49
|
-
pitchBendRange: number;
|
|
50
|
-
volume: number;
|
|
51
|
-
pan: number;
|
|
52
|
-
bank: number;
|
|
53
|
-
dataMSB: number;
|
|
54
|
-
dataLSB: number;
|
|
55
|
-
program: number;
|
|
56
|
-
pitchBend: number;
|
|
57
|
-
modulationDepthRange: number;
|
|
58
|
-
}[];
|
|
40
|
+
channels: any[];
|
|
59
41
|
initSoundFontTable(): any[];
|
|
60
42
|
addSoundFont(soundFont: any): void;
|
|
61
43
|
loadSoundFont(soundFontUrl: any): Promise<void>;
|
|
@@ -63,26 +45,9 @@ export class MidyGMLite {
|
|
|
63
45
|
setChannelAudioNodes(audioContext: any): {
|
|
64
46
|
gainL: any;
|
|
65
47
|
gainR: any;
|
|
48
|
+
merger: any;
|
|
66
49
|
};
|
|
67
|
-
createChannels(audioContext: any):
|
|
68
|
-
scheduledNotes: Map<any, any>;
|
|
69
|
-
gainL: any;
|
|
70
|
-
gainR: any;
|
|
71
|
-
expression: number;
|
|
72
|
-
modulation: number;
|
|
73
|
-
sustainPedal: boolean;
|
|
74
|
-
rpnMSB: number;
|
|
75
|
-
rpnLSB: number;
|
|
76
|
-
pitchBendRange: number;
|
|
77
|
-
volume: number;
|
|
78
|
-
pan: number;
|
|
79
|
-
bank: number;
|
|
80
|
-
dataMSB: number;
|
|
81
|
-
dataLSB: number;
|
|
82
|
-
program: number;
|
|
83
|
-
pitchBend: number;
|
|
84
|
-
modulationDepthRange: number;
|
|
85
|
-
}[];
|
|
50
|
+
createChannels(audioContext: any): any[];
|
|
86
51
|
createNoteBuffer(instrumentKey: any, isSF3: any): Promise<any>;
|
|
87
52
|
createNoteBufferNode(instrumentKey: any, isSF3: any): Promise<any>;
|
|
88
53
|
convertToFloat32Array(uint8Array: any): Float32Array;
|
|
@@ -105,7 +70,7 @@ export class MidyGMLite {
|
|
|
105
70
|
currentTime(): number;
|
|
106
71
|
getActiveNotes(channel: any, time: any): Map<any, any>;
|
|
107
72
|
getActiveNote(noteList: any, time: any): any;
|
|
108
|
-
|
|
73
|
+
connectEffects(channel: any, gainNode: any): void;
|
|
109
74
|
cbToRatio(cb: any): number;
|
|
110
75
|
centToHz(cent: any): number;
|
|
111
76
|
calcSemitoneOffset(channel: any): number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"midy-GMLite.d.ts","sourceRoot":"","sources":["../src/midy-GMLite.js"],"names":[],"mappings":"AAqBA;IAmBE;;;;;;;;;MASE;IAEF;;;;;;;MAOE;IAEF,+BAMC;IA5CD,qBAAmB;IACnB,kBAAc;IACd,0BAAwB;IACxB,kBAAc;IACd,mBAAiB;IACjB,kBAAc;IACd,mBAAe;IACf,kBAAgB;IAChB,sBAA2C;IAC3C,mBAAkB;IAClB,mBAAkB;IAClB,kBAAiB;IACjB,oBAAmB;IACnB,mBAAkB;IAClB,gBAAc;IACd,mBAAiB;IACjB,oBAAkB;IAuBhB,kBAAgC;IAChC,gBAA4C;IAE5C
|
|
1
|
+
{"version":3,"file":"midy-GMLite.d.ts","sourceRoot":"","sources":["../src/midy-GMLite.js"],"names":[],"mappings":"AAqBA;IAmBE;;;;;;;;;MASE;IAEF;;;;;;;MAOE;IAEF,+BAMC;IA5CD,qBAAmB;IACnB,kBAAc;IACd,0BAAwB;IACxB,kBAAc;IACd,mBAAiB;IACjB,kBAAc;IACd,mBAAe;IACf,kBAAgB;IAChB,sBAA2C;IAC3C,mBAAkB;IAClB,mBAAkB;IAClB,kBAAiB;IACjB,oBAAmB;IACnB,mBAAkB;IAClB,gBAAc;IACd,mBAAiB;IACjB,oBAAkB;IAuBhB,kBAAgC;IAChC,gBAA4C;IAE5C,gBAAiD;IAInD,4BAMC;IAED,mCASC;IAED,gDAMC;IAED,sCASC;IAED;;;;MAcC;IAED,yCAUC;IAED,+DAyBC;IAED,mEAWC;IAED,qDAOC;IAED,2EA+CC;IAED,mCAOC;IAED,0BA+CC;IAED,uDAEC;IAED,wDAEC;IAED;;;MA8DC;IAED,4BAsBC;IAED,uBAKC;IAED,aAGC;IAED,cAKC;IAED,wBAIC;IAED,0BAKC;IAED,wBAOC;IAED,sBAGC;IAED,uDASC;IAED,6CAQC;IAED,kDAGC;IAED,2BAEC;IAED,4BAEC;IAED,yCAEC;IAED,mFAGC;IAED,iDAiBC;IAED,iDAiCC;IAED,0DAmBC;IAED,wHA6BC;IAED,kGA6BC;IAED,0EAGC;IAED,sIA8CC;IAED,0FAGC;IAED,kEAeC;IAED,wFAiBC;IAED,4DAGC;IAED,qEAGC;IAED,uDAOC;IAED,mFA+BC;IAED,qCAcC;IAED,yDAIC;IACD,iDAIC;IAED;;;MAMC;IAED,2CAIC;IAED,yDAIC;IAED,mDAGC;IAED,sCAUC;IAED,sDAMC;IAED,oCAYC;IAED,gDAEC;IAED,gDAEC;IAED,mDAGC;IAED,oDAUC;IAED,kDAKC;IAED,iEAOC;IAED,uCAoBC;IAED,8CAEC;IAED,uCAoBC;IAED,4DAgBC;IAED,oBAQC;IAED,yDAaC;IAED,yCAGC;IAED,mCAQC;IAED,wCAEC;IAED,6BASC;IAED,0DAUC;CACF;AAn/BD;IAOE,gFAKC;IAXD,kBAAa;IACb,cAAS;IACT,gBAAW;IACX,YAAO;IACP,gBAAW;IAGT,gBAA4B;IAC5B,cAAwB;IACxB,eAA0B;IAC1B,mBAAkC;CAErC"}
|
package/script/midy-GMLite.js
CHANGED
|
@@ -186,23 +186,23 @@ class MidyGMLite {
|
|
|
186
186
|
this.totalTime = this.calcTotalTime();
|
|
187
187
|
}
|
|
188
188
|
setChannelAudioNodes(audioContext) {
|
|
189
|
-
const { gainLeft, gainRight } = this.panToGain(
|
|
189
|
+
const { gainLeft, gainRight } = this.panToGain(this.constructor.channelSettings.pan);
|
|
190
190
|
const gainL = new GainNode(audioContext, { gain: gainLeft });
|
|
191
191
|
const gainR = new GainNode(audioContext, { gain: gainRight });
|
|
192
192
|
const merger = new ChannelMergerNode(audioContext, { numberOfInputs: 2 });
|
|
193
193
|
gainL.connect(merger, 0, 0);
|
|
194
194
|
gainR.connect(merger, 0, 1);
|
|
195
|
-
merger.connect(this.masterGain);
|
|
196
195
|
return {
|
|
197
196
|
gainL,
|
|
198
197
|
gainR,
|
|
198
|
+
merger,
|
|
199
199
|
};
|
|
200
200
|
}
|
|
201
201
|
createChannels(audioContext) {
|
|
202
202
|
const channels = Array.from({ length: 16 }, () => {
|
|
203
203
|
return {
|
|
204
|
-
...
|
|
205
|
-
...
|
|
204
|
+
...this.constructor.channelSettings,
|
|
205
|
+
...this.constructor.effectSettings,
|
|
206
206
|
...this.setChannelAudioNodes(audioContext),
|
|
207
207
|
scheduledNotes: new Map(),
|
|
208
208
|
};
|
|
@@ -494,9 +494,9 @@ class MidyGMLite {
|
|
|
494
494
|
}
|
|
495
495
|
return noteList[0];
|
|
496
496
|
}
|
|
497
|
-
|
|
498
|
-
gainNode.connect(channel.
|
|
499
|
-
|
|
497
|
+
connectEffects(channel, gainNode) {
|
|
498
|
+
gainNode.connect(channel.merger);
|
|
499
|
+
merger.connect(this.masterGain);
|
|
500
500
|
}
|
|
501
501
|
cbToRatio(cb) {
|
|
502
502
|
return Math.pow(10, cb / 200);
|
|
@@ -562,7 +562,7 @@ class MidyGMLite {
|
|
|
562
562
|
startModulation(channel, note, time) {
|
|
563
563
|
const { instrumentKey } = note;
|
|
564
564
|
note.modLFOGain = new GainNode(this.audioContext, {
|
|
565
|
-
gain: this.cbToRatio(instrumentKey.modLfoToVolume
|
|
565
|
+
gain: this.cbToRatio(instrumentKey.modLfoToVolume + channel.modulation),
|
|
566
566
|
});
|
|
567
567
|
note.modLFO = new OscillatorNode(this.audioContext, {
|
|
568
568
|
frequency: this.centToHz(instrumentKey.freqModLFO),
|
|
@@ -601,7 +601,7 @@ class MidyGMLite {
|
|
|
601
601
|
if (!instrumentKey)
|
|
602
602
|
return;
|
|
603
603
|
const note = await this.createNote(channel, instrumentKey, noteNumber, velocity, startTime, isSF3);
|
|
604
|
-
this.
|
|
604
|
+
this.connectEffects(channel, note.gainNode);
|
|
605
605
|
const scheduledNotes = channel.scheduledNotes;
|
|
606
606
|
if (scheduledNotes.has(noteNumber)) {
|
|
607
607
|
scheduledNotes.get(noteNumber).push(note);
|
|
@@ -620,39 +620,41 @@ class MidyGMLite {
|
|
|
620
620
|
return;
|
|
621
621
|
if (!channel.scheduledNotes.has(noteNumber))
|
|
622
622
|
return;
|
|
623
|
-
const
|
|
624
|
-
for (let i = 0; i <
|
|
625
|
-
const
|
|
626
|
-
if (!
|
|
623
|
+
const scheduledNotes = channel.scheduledNotes.get(noteNumber);
|
|
624
|
+
for (let i = 0; i < scheduledNotes.length; i++) {
|
|
625
|
+
const note = scheduledNotes[i];
|
|
626
|
+
if (!note)
|
|
627
627
|
continue;
|
|
628
|
-
if (
|
|
628
|
+
if (note.ending)
|
|
629
629
|
continue;
|
|
630
|
-
const { bufferSource, filterNode, gainNode, modLFO, modLFOGain, instrumentKey, } = targetNote;
|
|
631
630
|
const velocityRate = (velocity + 127) / 127;
|
|
632
|
-
const volEndTime = stopTime +
|
|
633
|
-
|
|
634
|
-
gainNode.gain
|
|
631
|
+
const volEndTime = stopTime +
|
|
632
|
+
note.instrumentKey.volRelease * velocityRate;
|
|
633
|
+
note.gainNode.gain
|
|
634
|
+
.cancelScheduledValues(stopTime)
|
|
635
|
+
.linearRampToValueAtTime(0, volEndTime);
|
|
635
636
|
const maxFreq = this.audioContext.sampleRate / 2;
|
|
636
|
-
const baseFreq = this.centToHz(instrumentKey.initialFilterFc);
|
|
637
|
+
const baseFreq = this.centToHz(note.instrumentKey.initialFilterFc);
|
|
637
638
|
const adjustedBaseFreq = Math.min(maxFreq, baseFreq);
|
|
638
|
-
const modEndTime = stopTime +
|
|
639
|
-
|
|
639
|
+
const modEndTime = stopTime +
|
|
640
|
+
note.instrumentKey.modRelease * velocityRate;
|
|
641
|
+
note.filterNode.frequency
|
|
640
642
|
.cancelScheduledValues(stopTime)
|
|
641
643
|
.linearRampToValueAtTime(adjustedBaseFreq, modEndTime);
|
|
642
|
-
|
|
644
|
+
note.ending = true;
|
|
643
645
|
this.scheduleTask(() => {
|
|
644
|
-
bufferSource.loop = false;
|
|
646
|
+
note.bufferSource.loop = false;
|
|
645
647
|
}, stopTime);
|
|
646
648
|
return new Promise((resolve) => {
|
|
647
|
-
bufferSource.onended = () => {
|
|
648
|
-
|
|
649
|
-
bufferSource.disconnect(
|
|
650
|
-
filterNode.disconnect(
|
|
651
|
-
gainNode.disconnect(
|
|
652
|
-
if (modLFOGain)
|
|
653
|
-
modLFOGain.disconnect(
|
|
654
|
-
if (modLFO)
|
|
655
|
-
modLFO.stop();
|
|
649
|
+
note.bufferSource.onended = () => {
|
|
650
|
+
scheduledNotes[i] = null;
|
|
651
|
+
note.bufferSource.disconnect();
|
|
652
|
+
note.filterNode.disconnect();
|
|
653
|
+
note.gainNode.disconnect();
|
|
654
|
+
if (note.modLFOGain)
|
|
655
|
+
note.modLFOGain.disconnect();
|
|
656
|
+
if (note.modLFO)
|
|
657
|
+
note.modLFO.stop();
|
|
656
658
|
resolve();
|
|
657
659
|
};
|
|
658
660
|
bufferSource.stop(volEndTime);
|
package/script/midy.d.ts
CHANGED
|
@@ -40,7 +40,14 @@ export class Midy {
|
|
|
40
40
|
lfoFilterDepth: number;
|
|
41
41
|
lfoAmplitudeDepth: number;
|
|
42
42
|
};
|
|
43
|
-
constructor(audioContext: any
|
|
43
|
+
constructor(audioContext: any, options?: {
|
|
44
|
+
reverbAlgorithm: (audioContext: any) => {
|
|
45
|
+
input: any;
|
|
46
|
+
output: any;
|
|
47
|
+
dryGain: any;
|
|
48
|
+
wetGain: any;
|
|
49
|
+
};
|
|
50
|
+
});
|
|
44
51
|
ticksPerBeat: number;
|
|
45
52
|
totalTime: number;
|
|
46
53
|
reverbFactor: number;
|
|
@@ -63,69 +70,25 @@ export class Midy {
|
|
|
63
70
|
timeline: any[];
|
|
64
71
|
instruments: any[];
|
|
65
72
|
notePromises: any[];
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
sostenutoNotes: Map<any, any>;
|
|
71
|
-
polyphonicKeyPressure: {
|
|
72
|
-
pitchControl: number;
|
|
73
|
-
filterCutoffControl: number;
|
|
74
|
-
amplitudeControl: number;
|
|
75
|
-
lfoPitchDepth: number;
|
|
76
|
-
lfoFilterDepth: number;
|
|
77
|
-
lfoAmplitudeDepth: number;
|
|
78
|
-
};
|
|
79
|
-
channelPressure: {
|
|
80
|
-
pitchControl: number;
|
|
81
|
-
filterCutoffControl: number;
|
|
82
|
-
amplitudeControl: number;
|
|
83
|
-
lfoPitchDepth: number;
|
|
84
|
-
lfoFilterDepth: number;
|
|
85
|
-
lfoAmplitudeDepth: number;
|
|
86
|
-
};
|
|
87
|
-
gainL: any;
|
|
88
|
-
gainR: any;
|
|
89
|
-
reverbEffect: {
|
|
90
|
-
convolverNode: any;
|
|
73
|
+
defaultOptions: {
|
|
74
|
+
reverbAlgorithm: (audioContext: any) => {
|
|
75
|
+
input: any;
|
|
76
|
+
output: any;
|
|
91
77
|
dryGain: any;
|
|
92
78
|
wetGain: any;
|
|
93
79
|
};
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
80
|
+
};
|
|
81
|
+
audioContext: any;
|
|
82
|
+
options: {
|
|
83
|
+
reverbAlgorithm: (audioContext: any) => {
|
|
84
|
+
input: any;
|
|
85
|
+
output: any;
|
|
86
|
+
dryGain: any;
|
|
87
|
+
wetGain: any;
|
|
99
88
|
};
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
portamento: boolean;
|
|
104
|
-
sostenutoPedal: boolean;
|
|
105
|
-
softPedal: number;
|
|
106
|
-
rpnMSB: number;
|
|
107
|
-
rpnLSB: number;
|
|
108
|
-
pitchBendRange: number;
|
|
109
|
-
currentBufferSource: null;
|
|
110
|
-
volume: number;
|
|
111
|
-
pan: number;
|
|
112
|
-
portamentoTime: number;
|
|
113
|
-
reverb: number;
|
|
114
|
-
chorus: number;
|
|
115
|
-
vibratoRate: number;
|
|
116
|
-
vibratoDepth: number;
|
|
117
|
-
vibratoDelay: number;
|
|
118
|
-
bank: number;
|
|
119
|
-
bankMSB: number;
|
|
120
|
-
bankLSB: number;
|
|
121
|
-
dataMSB: number;
|
|
122
|
-
dataLSB: number;
|
|
123
|
-
program: number;
|
|
124
|
-
pitchBend: number;
|
|
125
|
-
fineTuning: number;
|
|
126
|
-
coarseTuning: number;
|
|
127
|
-
modulationDepthRange: number;
|
|
128
|
-
}[];
|
|
89
|
+
};
|
|
90
|
+
masterGain: any;
|
|
91
|
+
channels: any[];
|
|
129
92
|
initSoundFontTable(): any[];
|
|
130
93
|
addSoundFont(soundFont: any): void;
|
|
131
94
|
loadSoundFont(soundFontUrl: any): Promise<void>;
|
|
@@ -133,8 +96,10 @@ export class Midy {
|
|
|
133
96
|
setChannelAudioNodes(audioContext: any): {
|
|
134
97
|
gainL: any;
|
|
135
98
|
gainR: any;
|
|
99
|
+
merger: any;
|
|
136
100
|
reverbEffect: {
|
|
137
|
-
|
|
101
|
+
input: any;
|
|
102
|
+
output: any;
|
|
138
103
|
dryGain: any;
|
|
139
104
|
wetGain: any;
|
|
140
105
|
};
|
|
@@ -143,69 +108,10 @@ export class Midy {
|
|
|
143
108
|
lfoGain: any;
|
|
144
109
|
delayNodes: any[];
|
|
145
110
|
chorusGains: any[];
|
|
111
|
+
output: any;
|
|
146
112
|
};
|
|
147
113
|
};
|
|
148
|
-
createChannels(audioContext: any):
|
|
149
|
-
scheduledNotes: Map<any, any>;
|
|
150
|
-
sostenutoNotes: Map<any, any>;
|
|
151
|
-
polyphonicKeyPressure: {
|
|
152
|
-
pitchControl: number;
|
|
153
|
-
filterCutoffControl: number;
|
|
154
|
-
amplitudeControl: number;
|
|
155
|
-
lfoPitchDepth: number;
|
|
156
|
-
lfoFilterDepth: number;
|
|
157
|
-
lfoAmplitudeDepth: number;
|
|
158
|
-
};
|
|
159
|
-
channelPressure: {
|
|
160
|
-
pitchControl: number;
|
|
161
|
-
filterCutoffControl: number;
|
|
162
|
-
amplitudeControl: number;
|
|
163
|
-
lfoPitchDepth: number;
|
|
164
|
-
lfoFilterDepth: number;
|
|
165
|
-
lfoAmplitudeDepth: number;
|
|
166
|
-
};
|
|
167
|
-
gainL: any;
|
|
168
|
-
gainR: any;
|
|
169
|
-
reverbEffect: {
|
|
170
|
-
convolverNode: any;
|
|
171
|
-
dryGain: any;
|
|
172
|
-
wetGain: any;
|
|
173
|
-
};
|
|
174
|
-
chorusEffect: {
|
|
175
|
-
lfo: any;
|
|
176
|
-
lfoGain: any;
|
|
177
|
-
delayNodes: any[];
|
|
178
|
-
chorusGains: any[];
|
|
179
|
-
};
|
|
180
|
-
expression: number;
|
|
181
|
-
modulation: number;
|
|
182
|
-
sustainPedal: boolean;
|
|
183
|
-
portamento: boolean;
|
|
184
|
-
sostenutoPedal: boolean;
|
|
185
|
-
softPedal: number;
|
|
186
|
-
rpnMSB: number;
|
|
187
|
-
rpnLSB: number;
|
|
188
|
-
pitchBendRange: number;
|
|
189
|
-
currentBufferSource: null;
|
|
190
|
-
volume: number;
|
|
191
|
-
pan: number;
|
|
192
|
-
portamentoTime: number;
|
|
193
|
-
reverb: number;
|
|
194
|
-
chorus: number;
|
|
195
|
-
vibratoRate: number;
|
|
196
|
-
vibratoDepth: number;
|
|
197
|
-
vibratoDelay: number;
|
|
198
|
-
bank: number;
|
|
199
|
-
bankMSB: number;
|
|
200
|
-
bankLSB: number;
|
|
201
|
-
dataMSB: number;
|
|
202
|
-
dataLSB: number;
|
|
203
|
-
program: number;
|
|
204
|
-
pitchBend: number;
|
|
205
|
-
fineTuning: number;
|
|
206
|
-
coarseTuning: number;
|
|
207
|
-
modulationDepthRange: number;
|
|
208
|
-
}[];
|
|
114
|
+
createChannels(audioContext: any): any[];
|
|
209
115
|
createNoteBuffer(instrumentKey: any, isSF3: any): Promise<any>;
|
|
210
116
|
createNoteBufferNode(instrumentKey: any, isSF3: any): Promise<any>;
|
|
211
117
|
convertToFloat32Array(uint8Array: any): Float32Array;
|
|
@@ -228,8 +134,18 @@ export class Midy {
|
|
|
228
134
|
currentTime(): number;
|
|
229
135
|
getActiveNotes(channel: any, time: any): Map<any, any>;
|
|
230
136
|
getActiveNote(noteList: any, time: any): any;
|
|
231
|
-
|
|
137
|
+
createConvolutionReverb(audioContext: any, options?: {}): {
|
|
138
|
+
input: any;
|
|
139
|
+
output: any;
|
|
140
|
+
dryGain: any;
|
|
141
|
+
wetGain: any;
|
|
232
142
|
convolverNode: any;
|
|
143
|
+
};
|
|
144
|
+
createCombFilter(audioContext: any, input: any, delay: any, feedback: any): any;
|
|
145
|
+
createAllpassFilter(audioContext: any, input: any, delay: any, feedback: any): any;
|
|
146
|
+
createSchroederReverb(audioContext: any, options?: {}): {
|
|
147
|
+
input: any;
|
|
148
|
+
output: any;
|
|
233
149
|
dryGain: any;
|
|
234
150
|
wetGain: any;
|
|
235
151
|
};
|
|
@@ -238,8 +154,9 @@ export class Midy {
|
|
|
238
154
|
lfoGain: any;
|
|
239
155
|
delayNodes: any[];
|
|
240
156
|
chorusGains: any[];
|
|
157
|
+
output: any;
|
|
241
158
|
};
|
|
242
|
-
|
|
159
|
+
connectEffects(channel: any, gainNode: any): void;
|
|
243
160
|
cbToRatio(cb: any): number;
|
|
244
161
|
centToHz(cent: any): number;
|
|
245
162
|
calcSemitoneOffset(channel: any): any;
|
package/script/midy.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"midy.d.ts","sourceRoot":"","sources":["../src/midy.js"],"names":[],"mappings":"AAuBA;IAwBE;;;;;;;;;;;;;;;;;;;;MAoBE;IAEF;;;;;;;;;;;MAWE;IAEF;;;;;;;MAOE;
|
|
1
|
+
{"version":3,"file":"midy.d.ts","sourceRoot":"","sources":["../src/midy.js"],"names":[],"mappings":"AAuBA;IAwBE;;;;;;;;;;;;;;;;;;;;MAoBE;IAEF;;;;;;;;;;;MAWE;IAEF;;;;;;;MAOE;IASF;;;;;;;OAOC;IAjFD,qBAAmB;IACnB,kBAAc;IACd,qBAAmB;IACnB,yBAAqB;IACrB,2BAAuB;IACvB,cAAa;IACb,cAAa;IACb,0BAAwB;IACxB,kBAAc;IACd,mBAAiB;IACjB,kB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