Platform
Resources
Pricing
Sign in
Get started
maddie lim ✨
aka DJ Bouche
Workspace
Fork
Published
Low Level Stuff
By
maddie lim ✨
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.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
module
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
ascript
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
aswat
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
textForm
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML