Files
Matt Spencer c8ef3df460 Add audio nodes to the patch bay
Also make the patch bay responsive.
2026-03-26 08:47:47 +00:00

61 lines
1.5 KiB
TOML

[package]
name = "synth-visualiser"
version = "0.1.0"
edition = "2021"
description = "Browser-based visualiser for the synthesiser (WASM)"
publish = false
[lib]
crate-type = ["cdylib", "rlib"]
[features]
default = ["console-panic"]
console-panic = ["dep:console_error_panic_hook"]
[dependencies]
synth-core = { path = "../synth-core" }
wasm-bindgen = { workspace = true }
wasm-bindgen-futures = { workspace = true }
js-sys = { workspace = true }
serde = { workspace = true }
console_error_panic_hook = { workspace = true, optional = true }
[dependencies.web-sys]
version = "0.3"
features = [
"Window",
"Document",
"Element",
"HtmlElement",
"HtmlCanvasElement",
"CanvasRenderingContext2d",
"AudioContext",
"AudioContextOptions",
"AnalyserNode",
"GainNode",
"OscillatorNode",
"OscillatorType",
"AudioWorkletNode",
"AudioWorkletNodeOptions",
"AudioBuffer",
"AudioBufferSourceNode",
"Event",
"EventTarget",
"MouseEvent",
"PointerEvent",
"WheelEvent",
"Performance",
"Worker",
"MessageEvent",
"AudioNode",
"AudioDestinationNode",
]
[dev-dependencies]
wasm-bindgen-test = "0.3"
# Tell wasm-pack's bundled wasm-opt to accept the bulk-memory and SIMD
# instructions that rustc emits for wasm32-unknown-unknown.
[package.metadata.wasm-pack.profile.release]
wasm-opt = ["-O4", "--enable-bulk-memory", "--enable-simd", "--enable-nontrapping-float-to-int"]