File tree Expand file tree Collapse file tree 6 files changed +5365
-2475
lines changed
Expand file tree Collapse file tree 6 files changed +5365
-2475
lines changed Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 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" ,
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}
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments