Skip to content
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

PannerNode fixes: volume, stereo-to-stereo and clipping of rolloff #393

Merged
merged 5 commits into from
Nov 19, 2023

Conversation

orottier
Copy link
Owner

@orottier orottier commented Nov 19, 2023

Relates to #386 #241

*output = input.clone();
let mut overall_gain_correction = 1.;
if output.number_of_channels() == 2 {
overall_gain_correction *= 2.; // stereo-to-stereo panning typically doubles volume
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overall_gain_correction = 2.; 

This is bit confusing and appear arbitrary, would be nice to have a bit more explanation

@b-ma
Copy link
Collaborator

b-ma commented Nov 19, 2023

Except my small comment, looks good to me! (...as far as a not big user of this node can tell :)

@orottier orottier merged commit 1667635 into main Nov 19, 2023
3 checks passed
@orottier orottier deleted the feature/pannernode-fixes branch November 19, 2023 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants