audio

@audio/synth-drum2.0.2

Drum synthesis

Drum synthesis — membrane kick, metal cymbal, noise snare (Tone.js class)

Status
calibrated
Updated
Family
synth, 20 packages under it
Category
synthesis
Licence
MIT
Dependencies
none
Downloads
2,312 last month
Tests
94 in audiojs/synth's CI, passed at f613513,

Listen

audio.from(0.6).kick()

Plugins

cymbal

  • generator
  • whole signal
freq
200 Hz
100 to 800 Hz
amp
0.5
0 to 1

kick

  • generator
  • whole signal
freq
55 Hz
30 to 120 Hz
drop
3
1 to 8
amp
0.9
0 to 1

snare

  • generator
  • whole signal
amp
0.7
0 to 1
seed
9
1 to 65536

Membrane (pitch-drop kick) / metal (inharmonic cymbal) / noiseDrum (snare/hat)

import membrane, { metal, noiseDrum } from '@audio/synth-drum'

Three drum-synthesis kernels, the Tone.js MembraneSynth/MetalSynth/NoiseSynth class: membrane is a sine whose pitch drops exponentially (kick), metal sums six inharmonic square-ish partials (cymbal — classic FM-bell ratio set), noiseDrum is decaying seeded band noise (snare/hat). membrane and metal are pitched — (freq, opts); noiseDrum is unpitched — (opts).

membrane(55, { drop: 3, duration: 0.5 })    // kick
metal(200, { duration: 0.6 })               // cymbal
noiseDrum({ duration: 0.25, seed: 9 })      // snare/hat
Param Default Applies to
freq 55 / 200 membrane / metal Hz (positional)
drop 3 membrane pitch-drop multiplier
duration 0.5 / 0.6 / 0.25 all seconds
amp 0.9 / 0.5 / 0.7 all peak amplitude
seed 9 noiseDrum PRNG seed
fs 44100 all sample rate

Use when: synthetic drum hits — membrane for kicks, metal for cymbals/bells, noiseDrum for snare/hat layers.


Part of @audio/synth — the synth family umbrella.

MIT © audiojs