abcjs
abcjs copied to clipboard
abcjs soundfont distorted
Love the sound of the new soundfont, but when I add it to my 6.0.0 beta 15 website, the sound is really distorted. Do I need to adjust the volume to be lower somehow from the default setting? Or perhaps upgrade (I want to do that, just have been focusing on other areas of the project currently). Message me for a private link to the test site if needed or just let me know how to change the default volume would work, too. Saw some references to volume in documentation but didn't see anything that appeared to be what I needed.
I have the same problem using the "editor synth" example, beta 21, distorted piano, that is the only instrument I've tried though
I did try one or two others and they are at least somewhat distorted or very loud sounding also.
The new soundfont does require at least beta.21. That has a new parameter to change the overall volume. I'm still experimenting with the defaults but the next version will be lower volume.
πΆπ
Still working on this - I didn't want to release a half-baked change. I hope to have another beta soon after I do more study.
Is beta 24 improved? A little distortion here and there now but at least seems better to me. And if I use abcjs web resource instead of the downloaded soundfont files, it sounds fine.
I plan to release a better version of this by the end of the year.
I'm still hearing some distortion with beta 33. Do you still have plans to fix this, or is there a workaround?
I do have plans to work on the soundfont as soon as I get a chance.
Is the distortion because the signal is overloaded? One thing I was planning on doing soon is lowering the volume of all the notes because when you play them together they get too loud.
You can lower the volume yourself with a parameter: https://paulrosen.github.io/abcjs/audio/synthesized-sound.html#audioparams
Let me know if that helps or if the distortion you are hearing is caused by some other problem.
If you are still hearing distortion, could you download a small sample file using this: https://paulrosen.github.io/abcjs/audio/synthesized-sound.html#download-filename and uploading it here. Please include the ABC string, too, so it is easy for me to recreate.
When I lower the volume to soundFontVolumeMultiplier: .8 within the audio parameter it does seem to help or at least make it less obvious, but even .5 doesn't remove all the distortion. I'm using the newer soundfont FluidR3-GM-- The old soundfont doesn't have distortion and is much quieter.
I'm not sure what you're wanting me to download... the link doesn't take me to a place to download something that I can see...
Here's a sample ABC. You will notice the distortion to be particularly great when two voices play the same note (related to a different post of mine where these overlapping notes create an extra-loud sound).
%%abc-charset utf-8
X:1 T:He That Liveth T:PM C:James H. Burke L:1/4 Q:1/4=120 M:4/4 K:Db %%score (S A) (T B) V:S clef=treble middle=B stem=up V:A clef=treble middle=B stem=down V:T clef=bass,, stem=up V:B clef=bass,, stem=down [V:S]F | A2>G2 | F2>E2 | D>E F B | (A>G) E2 || E2 E F | G2>B2 | B A A G | F3|| F | A2>G2 | F2>E2 | D>E F B | B2 A|| A | d2>c2 | e d c B | (A2B) c | d4|| "[Chorus]"F>G A F | E2 D E | F>B A F | E4 || E>F G B | B2 A d | c>c d B | A3|| A/A/ | d2-d/ d/d/d/ | f2-f/ d/c/d/ | B3|| B | B2-B/ B/B/B/ | e2-e/ d/B/c/ | (A2G2) || A F E D | B2 B B | c>c B A | d3 || A/A/ | f2-f/ e/ d/>F/ | B2>G2 | (F2G) E | D4 |] [V:A]D | F2>E2 | D2>C2 | D>C D D | C2 C2 || C2 C D | E2>G2 | G F E E | D3|| D | D2>D2 | D2>D2 | D>D D D | D2 D|| G | F2>A2 | G G A G | G2>G2 | F4|| D>E F D | C2 D C | D>D D D | C4 || C>D E G | G2 F F | E>E E D | C3|| G/G/ | F2-F/ F/F/F/ | A2-A/ F/F/F/ | G3|| G | =G2-G/ G/G/G/ | =G2-G/ G/G/G/ | (A2G2) || F D C D | D2 E E | E>G G G | F3 || F/F/ | A2-A/ G/ F/>F/ | G2>E2 | (D2C) C | D4 |] [V:T]A, | A,2>A,2 | A,2>A,2 | B,>A, A, G, | A,2 A,2 || A,2 A, A, | C2>C2 | C C C C | D3|| A, | F,2>B,2 | A,2>G,2 | F,>G, A, F, | G,2 A,|| A, | A,2>A,2 | B, B, E D | (C2D) E | D4 || A,>A, A, A, | A, G, F, A, | A,>G, F, A, | A,4 || A,>A, C C | D2 D A, | A,>A, =G, G, | A,3|| C/C/ | D D D D | D D D D | D D D|| D | E E E E | B, B, B, B, | C D E2 || D A, A, A, | G, A, =G, G, | A,>E D C | D3|| C/C/ | D D D D | D D D B, | A, A, A, A, | F,4 |] [V:B]D, | D,2>D,2 | D,2>G,2 | F,2 D,2 | E,4 || A,2 A, A, | A,2>A,2 | A, A, A, A, | D,3|| D, | F,2>D,2 | D,2>G,2 | F,2 D,2 | G,2 F,|| E, | D,2>F,2 | G, G, G, G, | A,2>A,2 | D,4 || D,>D, D, D, | A, G, F, A, | D,>G, F, D, | A,4 || A,>A, A, A, | D,2 D, D, | E,>E, E, E, | A,3|| A,/A,/ | D, D, D, D, | D, D, D, D, | G, G, G,|| G, | E, E, E, E, | E, E, E, E, | A, A, A,2 || D, D, E, F, | G, F, E, E, | A,>A, G, G, | D,3|| C,/C,/ | D, D, D, D, | G, G, G, G, | A, A, A, G, | F,4 |]
What exactly is the URL of the soundfont you are using? You can find out by going to the browser's dev tools and clicking the "Network" tab and finding a line that has a note for the name (for instance "C4.mp3") Can you click that and paste in the "request URL" that it reports?
Iβm using a local copy from 11/3/20 since it needs to be internal to the app. Maybe I need to go out and pull the files again if they have changed since then?
On Fri, Oct 8, 2021 at 10:17 AM Paul Rosen @.***> wrote:
What exactly is the URL of the soundfont you are using? You can find out by going to the browser's dev tools and clicking the "Network" tab and finding a line that has a note for the name (for instance "C4.mp3") Can you click that and paste in the "request URL" that it reports?
β You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/paulrosen/abcjs/issues/547#issuecomment-938724140, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIP2GHQGJPY72YOACHLYVTUF4DSHANCNFSM4TMDCVQQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
-- http://GospelRiver.com