Skip to content
This repository was archived by the owner on May 2, 2022. It is now read-only.
This repository was archived by the owner on May 2, 2022. It is now read-only.

ResidentSf2Synth: Error playing French Horn #32

Description

@notator

From WebMIDISynthHost issue #8:

Sending the default noteOn to
ensemble 1 / 000:060 French Horn results in the following error message in the console:

"Uncaught TypeError: Failed to execute 'setValueAtTime' on 'AudioParam': The provided float value is non-finite."

The French Horn works fine in the Arachno soundfont when used elsewhere, so I think this is a bug in the Sf2Synth1 code.
.......
I seem to have fixed this. See soundFontSynthNote.js lines 200-205.
The original line crashed, not unexpectedly, when initialFilterQ > 0 (which was the case in the French Horn preset)
The fix seems to work, but is it really correct?
........
Is this related to issue #1 in SimpleSoundFontSynthHost?

I changed the soundfont from "Arachno1.0selection-grand piano.sf2" to "TimGM6mb.sf2", which is a full GM soundfont. However, the program only finds patch 60 (French Horns) to patch 127 (Gun Shot) in bank 0; in other words, patches 0 - 59 are missing. Probably there are some errors in the parser?

French Horns...

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions