Published
Edited
Feb 16, 2018
2 forks
Importers
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
triggerKickDrum = (now, volume = 1) => {
const gain = context.createGain()
gain.gain.setValueAtTime(volume, now)
gain.gain.exponentialRampToValueAtTime(0.01, now + 0.5)
gain.connect(output)

const oscillator = context.createOscillator()
oscillator.frequency.setValueAtTime(150, now)
oscillator.frequency.exponentialRampToValueAtTime(0.01, now + 0.5)
oscillator.connect(gain)
oscillator.start(now)
oscillator.stop(now + 0.5)
}
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.
Learn more