paulrosen / abcjs

javascript for rendering abc music notation
Other
1.9k stars 281 forks source link

Add effect to sounds #867

Open ehsansh opened 1 year ago

ehsansh commented 1 year ago

Hi I replaced my own mp3 files instead of the files in FluidR3_GM folder. The problem is that my files sound is clear and nice but when abcjs plays my mp3 files the sound is distorted. How could I fix that?

paulrosen commented 1 year ago

I guess that means that your sounds are louder? You can test that by putting !ppp! at the beginning of an ABC string and seeing if that helps. In the place where you specify soundFontUrl you can also specify soundFontVolumeMultiplier. That has a default value of one. Try putting 0.5 in and seeing what that does.

ehsansh commented 1 year ago

Sorry that I didn't explain well. I am not talking about volume of the sound. I mean the kind of sound that abcjs produces is different from the original mp3 files. The kind of sound that I hear from abcjs library is like a artificial musical instrument. I don't know which property of the sound changes after rendering to look not real and unusual instrument sound.

Describing sound of the musical instruments is difficult. Imagine we have two pianos one of them has crystal nice sound which players love it the other one is not enjoyable to play and its sound does not feel good.