Platform
Resources
Pricing
Sign in
Contact us
ndry #RussiaIsATerroristState
🧪 Indie software researcher & developer 👾 React game developer
Workspace
Fork
Public
Index
By
ndry
Edited
Feb 20, 2023
4 stars
Index
Procedural (stateless, declarative) particles on GPU using geometry instancing
Demo of pseudo-continuous generation of stateless particles, interpolated trail
Inertial solo byproduction
Explorative art portfolio
Emergent procedural content generation
Cellular automata navigator
Observable notebook to Cloudflare worker
FFT usage and result interpretation / plotting (npm:fft.js)
Use rxjs operators for iterable
Vector Voronoi
Smooth a Svg path with cubic bezier curves
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
signal
=
Array
.
from
(
{
length
:
2
**
10
}
,
(
_
,
i
)
=>
40
*
Math
.
sin
(
(
i
*
Math
.
PI
*
2
)
/
freq2
)
+
70
*
Math
.
sin
(
(
i
*
Math
.
PI
*
2
)
/
freq1
)
)
Insert cell
fft
=
new
FFT
(
signal
.
length
)
Insert cell
fftOutput
=
{
const
fftOutput
=
[
]
;
fft
.
realTransform
(
fftOutput
,
signal
)
;
fft
.
completeSpectrum
(
fftOutput
)
;
return
fftOutput
;
}
Insert cell
frequencies
=
signal
.
map
(
(
v
,
i
)
=>
[
signal
.
length
/
(
i
||
1e-10
)
,
(
1
/
signal
.
length
)
*
Math
.
hypot
(
fftOutput
[
i
*
2
]
,
fftOutput
[
i
*
2
+
1
]
)
]
)
Insert cell
signalReconstructed
=
{
const
signalReconstructed
=
[
]
;
fft
.
inverseTransform
(
signalReconstructed
,
fftOutput
)
;
return
signalReconstructed
;
}
Insert cell
Insert cell
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
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
freq1
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
freq2
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
signal
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
fft
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
fftOutput
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
frequencies
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
signalReconstructed
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
FFT
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
line
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML