Skip to content

Commit c5d4315

Browse files
authored
Merge pull request #23 from ryohey/fix-export
Fix export
2 parents cabbef8 + 12ba879 commit c5d4315

File tree

6 files changed

+5365
-2475
lines changed

6 files changed

+5365
-2475
lines changed

example/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@
1212
"license": "ISC",
1313
"private": true,
1414
"dependencies": {
15-
"midifile-ts": "^1.5.1",
15+
"midifile-ts": "^1.5.2",
1616
"wav-encoder": "^1.3.0"
1717
},
1818
"devDependencies": {
19-
"@guanghechen/rollup-plugin-copy": "^5.0.12",
20-
"@rollup/plugin-commonjs": "^26.0.1",
21-
"@rollup/plugin-node-resolve": "^15.2.3",
22-
"@rollup/plugin-typescript": "^11.1.6",
19+
"@guanghechen/rollup-plugin-copy": "^6.0.9",
20+
"@rollup/plugin-commonjs": "^29.0.0",
21+
"@rollup/plugin-node-resolve": "^16.0.3",
22+
"@rollup/plugin-typescript": "^12.3.0",
2323
"@types/wav-encoder": "^1.3.3",
24-
"rollup": "^4.21.2",
25-
"rollup-plugin-serve": "^2.0.2",
26-
"tslib": "^2.7.0",
27-
"typescript": "^5.6.2"
24+
"rollup": "^4.57.1",
25+
"rollup-plugin-serve": "^3.0.0",
26+
"tslib": "^2.8.1",
27+
"typescript": "^5.9.3"
2828
}
2929
}

lib/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ryohey/wavelet",
3-
"version": "0.7.5",
3+
"version": "0.7.6",
44
"description": "A wavetable synthesizer that never stops the UI thread created by AudioWorklet.",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
@@ -14,18 +14,18 @@
1414
"license": "MIT",
1515
"dependencies": {
1616
"@ryohey/sf2parser": "^1.2.1",
17-
"midifile-ts": "^1.5.1"
17+
"midifile-ts": "^1.5.2"
1818
},
1919
"devDependencies": {
20-
"@rollup/plugin-commonjs": "^26.0.1",
21-
"@rollup/plugin-node-resolve": "^15.2.3",
22-
"@rollup/plugin-typescript": "^11.1.6",
23-
"@types/audioworklet": "^0.0.60",
24-
"@types/jest": "^29.5.12",
25-
"jest": "^29.7.0",
26-
"rollup": "^4.21.2",
27-
"ts-jest": "^29.2.5",
28-
"tslib": "^2.7.0",
29-
"typescript": "^5.6.2"
20+
"@rollup/plugin-commonjs": "^29.0.0",
21+
"@rollup/plugin-node-resolve": "^16.0.3",
22+
"@rollup/plugin-typescript": "^12.3.0",
23+
"@types/audioworklet": "^0.0.94",
24+
"@types/jest": "^30.0.0",
25+
"jest": "^30.2.0",
26+
"rollup": "^4.57.1",
27+
"ts-jest": "^29.4.6",
28+
"tslib": "^2.8.1",
29+
"typescript": "^5.9.3"
3030
}
3131
}

lib/src/processor/AmplitudeEnvelope.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ export class AmplitudeEnvelope {
144144
}
145145

146146
getAmplitude(bufferSize: number): number {
147+
const { sampleRate } = this
147148
const value = this.calculateAmplitude(bufferSize)
148149
this.lastAmplitude = value
149150
this.phaseTime += bufferSize / sampleRate

lib/src/soundfont/loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export const getSampleEventsFromSoundFont = (
190190
([key, value]) => ({
191191
type: "loadSample",
192192
sampleID: Number(key),
193-
data: value.buffer,
193+
data: value.buffer as ArrayBuffer,
194194
})
195195
)
196196

0 commit comments

Comments
 (0)