Skip to content

Reverb not working as expected? #8

@sevgit

Description

@sevgit

Hey, I've been toying around with this for a presentation, but I can't seem to make the reverb work even after trying a couple of different IR files (.wav).

Since I've been implementing most of the stuff myself, the only thing I'm using form the lib are the effects (particularly Distortion, Tremolo and Reverb), meaning I'm manually handling the connections and I'm not using the Output or Input classes provided by the lib.

class Mixer {
public reverb: IEffect;

    constructor() {
        this.reverb = { status: false, effect: new Reverb(this.audioContext) };
        fetch('./src/ir-files/baptist-church-nashville.wav')
            .then(response => response.arrayBuffer())
            .then(audioBuffer => this.reverb.effect.buffer = audioBuffer);
        this.reverb.effect.wet = 1;
        this.reverb.effect.level = 1;

...

I'm guessing the decoding of the arrayBuffer is not needed as the Reverb.js file seems to have it sorted on the setter, should I also omit making it an arrayBuffer in the first place?

The lib is a bit old but I got here after watching your live presentation and it has inspired some ideas for mine. Hope you can share some thoughts on how to solve this issue. Cheers!

Edit: as an extra bit of info, the sound does come out, only the Reverb doesn't work. I've tested using some Anechoic audio files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions