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

Increase the volume #94

Open
nam-van-nguyen opened this issue Feb 21, 2022 · 1 comment
Open

Increase the volume #94

nam-van-nguyen opened this issue Feb 21, 2022 · 1 comment

Comments

@nam-van-nguyen
Copy link

Is it possible to get the player to play louder? Current gain settings set at 1 doesn't help. I compare the soundfont-player and sound produced from musescore and musescore produces much louder sound.

@abulka
Copy link

abulka commented May 10, 2022

Setting sustain: 3.5 seems to boost the volume quite a bit e.g.

  let envelope = tone.play(
    note,
    when,
    {
      gain: velocity,
      duration: 999,
      sustain: 3.5,    // <---
    })

Its still not as loud as e.g. the webaudiofont library gives us, but that might be because webaudiofont uses channels and effects processing etc. which probably boosts things.

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

No branches or pull requests

2 participants