lilyvanoekel/percupuff

Implement "Electric Bass Drum" aka "kick2" (midi note 36)

Aperta

#19 aperta il 22 ago 2025

 (3 commenti) (0 reazioni) (1 assegnatario)TypeScript (10 fork)auto 404
area:dspcmajor:mediumcomplexity:2hacktoberfestpriority:mediumstatus:readytype:feature

Metriche repository

Star
 (22 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Feature Description

Please implement the Electric Bass Drum sound:

  • This sound by default should trigger on midi note 36
  • This is configurable using kick2Midi
  • Parameters already exist (this task should be only or mostly Cmajor code)
  • Create a new file dps/drums/ElectricBassDrum.cmajor
  • Base it on the common pattern you can see from other sounds
    • Use the same envelope as most other drum sounds are using
    • Basic variable and parameter handling for midiNotePitch, outputLevel, panning)
    • Same triggerVelocity
  • Link in the new file in Percupuff.cmajor
  • Design the sound
    • Use a Sine Wave oscillator (exists in the codebase)
    • Set the Sine wave to an arbitrary low frequency, maybe start with 200 or so
    • Apply the envelope to the gain of the output of the oscillator
    • Apply the envelope also to the pitch of the oscillator (something like osc.frequencyModIn <- gain * 0.01f;)
    • The goal is a sort of "pew" sound 😅

Motivation / Use Case

Getting familiar with Cmajor

Alternatives Considered

No response

Additional Context

Guida contributor