Public
Edited
Sep 7, 2024
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
# Imports & whatnot
Insert cell
Insert cell
viewof mute = html`<input type='checkbox' />`
Insert cell
Volume = new Tone.Volume(volume)
Insert cell
Insert cell
{ Volume.mute = mute }
Insert cell
Tone = require('tone')
Insert cell
Insert cell
notes = [...Array(15).keys()]
.map(i => ["C", "E", "G"][i % 3] + (i%5+1))
.sort(
(a,b) => Number.parseInt(a[1]) - Number.parseInt(b[1]) === 0
? a[0].localeCompare(b[0])
: Number.parseInt(a[1]) - Number.parseInt(b[1])
)
.map(x => ({
name: x,
frequency: Tone.Frequency(x).toFrequency()
}))
.flatMap(x => caps.map(
c => ({
...x,
reactance: c.X_c(x.frequency),
"capacitor uF": c.micro
})
))
Insert cell
Insert cell
# Resources

https://www.electronics-tutorials.ws/filter/filter_1.html
https://observablehq.com/@tmcw/playing-with-tone-js
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more