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

Change getPeaks baseline to zero #682

Merged
merged 1 commit into from
Mar 26, 2016
Merged

Conversation

nathansnider
Copy link
Contributor

The getPeaks function was using the first sample in each channel to initialize the min and max values, causing files that start above or below zero to be drawn with persistent offsets. Initializing the min and max to 0 fixes this.

The getPeaks function was using the first sample in each channel to initialize the min and max values, causing files that start above or below zero to be drawn with persistent offsets. Initializing the min and max to 0 fixes this.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 4.236% when pulling 46e6edd on nathansnider:patch-1 into 8917e18 on katspaugh:master.

@katspaugh
Copy link
Owner

Very good catch! Silence in the beginning was a bad assumption. Thanks!

@katspaugh katspaugh merged commit d906fca into katspaugh:master Mar 26, 2016
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.

3 participants