-
Notifications
You must be signed in to change notification settings - Fork 206
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
adapt spl, rms & energy to work with Signal and FramedSignal #208
Conversation
4592960
to
0ae070d
Compare
3c3727b
to
da388b5
Compare
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.
I think so, yes. Just needs some docstring adaptations...
madmom/audio/signal.py
Outdated
""" | ||
Computes the root mean square of the signal. This can be used as a | ||
measurement of power. | ||
Compute the energy of the signal. | ||
|
||
Parameters | ||
---------- |
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.
Adapt Parameters docstring (signal can also be a FramedSignal
)
|
||
Parameters | ||
---------- | ||
signal : numpy array |
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.
Adapt Parameters docstring (signal can also be a FramedSignal
)
madmom/audio/signal.py
Outdated
|
||
|
||
def sound_pressure_level(signal, p_ref=None): | ||
""" | ||
Computes the sound pressure level of a signal. | ||
Compute the sound pressure level of a signal. | ||
|
||
Parameters | ||
---------- |
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.
Adapt Parameters docstring (signal can also be a FramedSignal
)
da388b5
to
27f784c
Compare
No description provided.