mdlayher/waveform — pull request #4 by Xercoy (2014-09-15 06:21:22+00:00)
Title: waveform.go: Refactored if block which calculates scaling factor in New.

Just thought I'd make a slight change. it's idiomatic to have a switch statement in this situation where there are multiple if statements, especially since only one variable is involved. I also made sure tests passed before submitting this pull request.