Skip to content

Commit

Permalink
Add filter resonance to flutes, strings, drums
Browse files Browse the repository at this point in the history
  • Loading branch information
jonikorpi committed Dec 20, 2024
1 parent b879fca commit 91f7f90
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion instrumentPresets.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ export const flute = {
lowPassFrequency: 2349.312,

lowPassPitchTracking: 0.618,
lowPassQ: 3.0,
lowPassQ: 2.0,
highPassQ: 2.0,

vibratoEffectOnLowPass: 500.0,
peakingFilters: [{ frequency: 810, gain: 2.0, Q: 2.0 }],
Expand Down Expand Up @@ -597,6 +598,9 @@ export const violin = {
highPassFrequency: 196.0,
lowPassFrequency: 3520.0,

lowPassQ: 2.0,
highPassQ: 2.0,

vibratoEffectOnPitch: 30,
peakingFilters: [
{ frequency: 300, gain: 3, Q: 3.5 },
Expand Down Expand Up @@ -820,6 +824,9 @@ export const piano = {
sustain: 0.0,
release: 0.0,

highPassQ: 2.0,
lowPassQ: 2.0,

highPassPitchTracking: -2.5, // strings don't really emit fundamentals under 100 hz
lowPassPitchTracking: 2.0,
};
Expand Down Expand Up @@ -877,6 +884,9 @@ export const hammeredDulcimer = {
sustain: 0.0,
release: 0.0,

highPassQ: 2.0,
lowPassQ: 2.0,

highPassFrequency: 73.42,
lowPassFrequency: 1244.51 * 2.0,
highPassPitchTracking: -0.333333, // strings don't really emit fundamentals under 100 hz
Expand Down Expand Up @@ -930,6 +940,9 @@ export const taikoDrum = {
sustain: 0.0,
release: 0.0,

highPassQ: 2.0,
lowPassQ: 2.0,

highPassFrequency: 27.5,
lowPassFrequency: 2200.0,
};
Expand Down Expand Up @@ -984,6 +997,9 @@ const makePlucked = (instrument) => {
release: 0.0,
filterRelease: 0.0,

highPassQ: 2.618,
lowPassQ: 2.618,

vibratoEffectOnPitch: 20.0,
vibratoEffectOnVolume: 0.0,
vibratoEffectOnLowpass: 0.0,
Expand Down

0 comments on commit 91f7f90

Please sign in to comment.