Skip to content

Procedural Drum Synthesis & DSP Refinement#55

Open
Pitrat-wav wants to merge 1 commit intomainfrom
procedural-drums-dsp-refinement-12961982388368200162
Open

Procedural Drum Synthesis & DSP Refinement#55
Pitrat-wav wants to merge 1 commit intomainfrom
procedural-drums-dsp-refinement-12961982388368200162

Conversation

@Pitrat-wav
Copy link
Copy Markdown
Owner

This PR implements a full procedural synthesis engine for TR-808 and TR-909 drum sounds based on the provided DSP research.

Key changes:

  1. Instrument Models:
    • TR808Kick: Emulates Bridged-T Network with accurate 2.5x pitch sweep and velocity scaling.
    • TR909Kick: Uses triangle oscillator with smoothing LPF, 4.7x pitch sweep (duration-controlled), and noise click layer.
    • TR808Snare / TR909Snare: Implements dual-oscillator tonal bodies and high-passed noise 'snappy' layers.
    • TR808HiHat: Features a 6-oscillator Schmitt trigger matrix with parallel bandpass filtering.
    • TR808Clap: Triple-attack 'snap' envelope with filtered noise.
  2. DSP Enhancements:
    • Master saturation (DRIVE) knob using a mathematical soft-clipping curve.
    • Micro-randomization on pitch, filter cutoff, and decay times to simulate analog drift.
    • Velocity-sensitive triggers with per-hit variance.
  3. Engine & UI:
    • Updated DrumMachine to manage new parameters and routing.
    • Added DRIVE control to DrumsView.
    • Optimized memory management by unifying node disposal logic.
  4. Fixes:
    • Independent volume control for Open Hi-Hats.
    • Corrected Euclidean pattern defaults in the store.

PR created automatically by Jules for task 12961982388368200162 started by @Pitrat-wav

- Refined TR-808 and TR-909 Kick, Snare, Hi-Hat, and Clap synthesis models with accurate pitch sweeps, filtering, and micro-randomization.
- Added velocity sensitivity and per-hit randomization (0.7-1.0) to the drum sequencer.
- Implemented master saturation (DRIVE) using Tone.WaveShaper with a soft-clipping tanh curve.
- Fixed memory leaks by ensuring explicit Tone.js node disposal across all drum models.
- Centralized Open Hi-Hat routing for independent volume control.
- Updated default Euclidean patterns for an immediate 'drum party' experience.

Co-authored-by: Pitrat-wav <255843145+Pitrat-wav@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant