Created
June 17, 2019 19:45
-
-
Save vitaliy-bobrov/a4ab8f3f548e91ce1bd03ccc88c21c4c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const bassNode = new BiquadFilterNode(context, { | |
type: 'lowshelf', | |
frequency: 500 | |
}); | |
const midNode = new BiquadFilterNode(context, { | |
type: 'peaking', | |
Q: Math.SQRT1_2, | |
frequency: 1500 | |
}); | |
const trebleNode = new BiquadFilterNode(context, { | |
type: 'highshelf', | |
frequency: 3000 | |
}); | |
// Decreasing bass level by 10 dB. | |
bassNode.gain.value = -10; | |
// Increasing middle level by 15 dB. | |
midNode.gain.value = 15; | |
// No boost. | |
trebleNode.gain.value = 0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment