-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preamp or loudness #37
Comments
Pizzicato is limited in the volume output of the Sound objects, but there is a workaround:
This sound object will not be automatically connected to the destination, which means you can connect it manually.
gain = Pz.context.createGain();
sound.connect(gain);
gain.connect(Pz.context.destination); You will then be able to raise the gain as much as you want. The gain node is basically a multiplier, so you can try any values to see which one fits, like: gain.gain.value = 1.5 |
Do you mean createAnalyser instead of createAnaliser? Not sure if the code is correct, I still hear the volume at the same level as 100% normal volume.
|
No need for the analyser (but thanks for pointing out the typo :) ) var a = new Pizzicato.Sound('./1.flac', function() {
options: { detached: true }
});
a.attack = 0;
a.release = .8;
gain = Pz.context.createGain();
a.connect(gain);
gain.connect(Pz.context.destination);
gain.gain.value = 2 |
There is one issue if adding convolver to
|
Is this the expected behaviour or a bug? |
It's not expected behavior, sounds like a bug. I will take a look. |
Definitely a bug. When adding a single effect to multiple sounds, the output of the effect remains connected only to the last sound added. |
I have created issue #40 for following this problem - given that this one talks mainly about preamp. |
@proyb6 There might be a workaround by creating your own audio graph. To do so, instead of adding effects using 1- Create only detached
3- Create a gain to unite all sounds and connect it to your desired effect.
4- Connect the convolver to the destination
An example of this is done here: https://jsfiddle.net/udzutzLj/2/ |
Some audio source or wave may sound tinny, are there any way to increase loudness or preamp that found in music players? Would be great for improve music quality
The text was updated successfully, but these errors were encountered: