We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22ebcc7 commit fe3c09cCopy full SHA for fe3c09c
src/scripts/cars/Car.js
@@ -408,9 +408,8 @@ export default class Car {
408
*/
409
_createHonk() {
410
// Honk sfx
411
- const dist = new Tone.Distortion(0.8).toDestination();
412
this.honk = new Tone.Synth({
413
- "volume": -12,
+ "volume": 0,
414
"detune": 50,
415
"portamento": 1,
416
"envelope": {
@@ -482,8 +481,7 @@ export default class Car {
482
481
}).toDestination();
483
484
// Connect to gain node to control proximity audio
485
- dist.connect(this.gainNode);
486
- this.honk.connect(dist);
+ this.honk.connect(this.gainNode);
487
488
// Honk with space
489
window.addEventListener('keydown', (e) => {
0 commit comments