Published
Edited
Jan 6, 2022
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
module.midiNoteToFreq(72)
Insert cell
Insert cell
ascript = simpleTemplate((code) => {
const el = ts(code);
const compiled = asc.compileString(code, {
optimizeLevel: 3
});
return WebAssembly.instantiate(compiled.binary, {}).then((res) => {
el.value = res.instance.exports;
return el;
});
})
Insert cell
## WASM output literal
Insert cell
Insert cell
viewof textForm = aswat`
export function add(a: f64, b: f64): f64 {
return a + b;
}
`
Insert cell
Insert cell
Insert cell
import { simpleTemplate } from "@maddievision/helpers"
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more