@grame/faust-web-component 0.2.0 → 0.2.1

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.
Files changed (2) hide show
  1. package/package.json +3 -1
  2. package/src/common.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "name": "@grame/faust-web-component",
3
- "version": "0.2.0",
3
+ "description": "Web component embedding the Faust Compiler",
4
+ "version": "0.2.1",
5
+ "module": "dist/faust-web-component.js",
4
6
  "type": "module",
5
7
  "scripts": {
6
8
  "dev": "vite",
package/src/common.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { FaustCompiler, FaustMonoDspGenerator, FaustPolyDspGenerator, FaustSvgDiagrams, LibFaust, instantiateFaustModuleFromFile } from "@grame/faustwasm"
1
+ import { IFaustMonoWebAudioNode, IFaustPolyWebAudioNode, FaustCompiler, FaustMonoDspGenerator, FaustPolyDspGenerator, FaustSvgDiagrams, LibFaust, instantiateFaustModuleFromFile } from "@grame/faustwasm"
2
2
  import jsURL from "@grame/faustwasm/libfaust-wasm/libfaust-wasm.js?url"
3
3
  import dataURL from "@grame/faustwasm/libfaust-wasm/libfaust-wasm.data?url"
4
4
  import wasmURL from "@grame/faustwasm/libfaust-wasm/libfaust-wasm.wasm?url"
@@ -76,7 +76,7 @@ export async function accessMIDIDevice(
76
76
  }
77
77
 
78
78
  // Set up MIDI input callback
79
- export const midiInputCallback = (node: IFaustPolyWebAudioNode | undefined) => {
79
+ export const midiInputCallback = (node: IFaustMonoWebAudioNode | IFaustPolyWebAudioNode) => {
80
80
  return (data) => {
81
81
 
82
82
  const cmd = data[0] >> 4;