Code Monkey home page Code Monkey logo

Comments (8)

alin23 avatar alin23 commented on August 18, 2024

@cortegedusage Sounds good!
I will prepare a PR for this if @ComlOnline is ok with it.

from librespot.

ComlOnline avatar ComlOnline commented on August 18, 2024

Yeah that would be great, the only thing I ask is that you add a compile time flag like --features "normalization" as we're discussing in other issues we plan on keeping librespot relatively slimline in its default build state and also have a proper daemon style thing with all the bells and whistles.

from librespot.

herrernst avatar herrernst commented on August 18, 2024

@ComlOnline I don't see a point hiding this few lines of code (that don't have any dependencies) behind a compile-time feature flag; also, they are not executed if the command line flag isn't added when running.

@alin23 If you don't mind waiting, I will prepare a pull request in the next days which fixes the edge cases where clipping (distortion) does occur.

from librespot.

alin23 avatar alin23 commented on August 18, 2024

@herrernst I can wait ^_^

from librespot.

ComlOnline avatar ComlOnline commented on August 18, 2024

@herrernst I see your point and you are correct. I didn't see the command line flag, my fault.
My next question is should normalization be the default function and you have to pass a flag to turn it off?
I think most people would unknowingly appreciate this.

from librespot.

herrernst avatar herrernst commented on August 18, 2024

I now consider my branch ready for merging: https://github.com/herrernst/librespot/tree/volume-normalization
I wouldn't want this feature enabled by default; the remaining problem is that I'm not able to figure out if an album is played vs. a playlist, so it only applies track-specific normalization. But that is not what you want if you play an album, because you lose inter-track dynamics, and if there are gapless transitions (like a live album), volume would change abruptly when changing tracks.

from librespot.

ComlOnline avatar ComlOnline commented on August 18, 2024

@herrernst Please could you make a PR?
And I agree about inter track dynamics, usually the album will be mixed so the tracks are complimentary.

from librespot.

sashahilton00 avatar sashahilton00 commented on August 18, 2024

Added by #162

from librespot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.