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

ResidentSf2Synth: Error playing French Horn #32

Open
notator opened this issue Jun 16, 2017 · 0 comments
Open

ResidentSf2Synth: Error playing French Horn #32

notator opened this issue Jun 16, 2017 · 0 comments

Comments

@notator
Copy link
Owner

notator commented Jun 16, 2017

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...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant