Skip to content

Commit

Permalink
Better Snare and Roll Back Overload on Kick
Browse files Browse the repository at this point in the history
  • Loading branch information
lacostenycoder committed Jan 3, 2017
1 parent 2c5352d commit e9c9e06
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/synth/drumModules/bassDrum.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ export default function (audioCtx, destination, time, {level, tone, decay}) {
vca.amplitude.value = 0;

const outputVCA = new VCA(audioCtx);
outputVCA.amplitude.value = outputLevel + 0.4;
outputVCA.amplitude.value = outputLevel + 0.2;

const softClipper = new SoftClipper(0.9, audioCtx);
const softClipper = new SoftClipper(0.7, audioCtx);

// envelopes
const oscEnv = new ADGenerator(EXPONENTIAL, 0.12, decayTime, START_FREQ, FREQ_AMT);
Expand Down
6 changes: 3 additions & 3 deletions src/synth/drumModules/snareDrum.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const lowOscFreq = 238;
export default function (audioCtx, destination, time, { level, tone, snappy }) {
// parameters
const outputLevel = equalPower(level);
const noiseVCFFreq = (tone * 100) + 800;
const snappyEnvAmt = snappy / 200;
const noiseVCFFreq = (tone * 100) + 500;
const snappyEnvAmt = snappy / 180;

// audio modules
const highOsc = new VCO(SINE, audioCtx);
Expand All @@ -32,7 +32,7 @@ export default function (audioCtx, destination, time, { level, tone, snappy }) {
outputVCA.amplitude.value = outputLevel;

// envelopes
const noiseEnv = new ADGenerator(LINEAR, 0.1, 75, 0, 0.5);
const noiseEnv = new ADGenerator(LINEAR, 0.1, 160, 0, 0.9);
const snappyEnv = new ADGenerator(LINEAR, 0.1, 50, 0, snappyEnvAmt);

// module routing
Expand Down

0 comments on commit e9c9e06

Please sign in to comment.