-
Notifications
You must be signed in to change notification settings - Fork 306
Add ref and amin argument in dbscale
#1779
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
Conversation
`amin` will avoid -inf for zero inputs and `ref` will provide more flexibility
ref and amin argumentref and amin argument in dbscale
|
cc: @terrytangyuan |
terrytangyuan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add some tests?
|
Sure, I am working on it. |
|
@terrytangyuan I have added the tests, please approve the workflow. |
|
@terrytangyuan there was linting issue with |
|
@awsaf49 @terrytangyuan the windows failure is unrelated - you can ignore it for now. |
|
@yongtang In that case, I think we're good to go....... |
* Add `ref` and `amin` argument `amin` will avoid -inf for zero inputs and `ref` will provide more flexibility * Added test for `ref` & `amin` in `dbscale` * Fix for `black` lint --------- Co-authored-by: Yong Tang <yong.tang.github@outlook.com>
This PR will add two parameters
refandaminintfio.audio.dbscale(), similar to librosapower_to_dbfunction.aminwill avoidrefwill provide more flexibility as many user usenp.maxas ref.