Commit graph

13 commits

Author SHA1 Message Date
Jordan Eldredge
91499b5550 More spline cleanup 2018-11-04 21:37:39 -08:00
Jordan Eldredge
b6c26f6e68 Make names more verbose 2018-11-04 21:37:39 -08:00
Jordan Eldredge
7156488f3e Don't reset i 2018-11-04 21:37:39 -08:00
Jordan Eldredge
09c0673759 Inline getY 2018-11-04 21:37:39 -08:00
Jordan Eldredge
94476eedc4 Get all y values in one go 2018-11-04 21:37:39 -08:00
Jordan Eldredge
3b7f2d51ac Make spline a curried function 2018-11-04 21:37:39 -08:00
Jordan Eldredge
c03d575f4f Cleanup spline to make eslint happy 2018-11-04 15:22:31 -08:00
Jordan Eldredge
491c7591d0 Use morganherlocker/cubic-spline for spline
This allows us to do a simpler line interpolation which is closer to
what Winamp actually does:

1. Derive a Y value for every column
2. Draw a pixel at the Y value for the first column
3. For each successive column:
3a. Draw a vertical line from the previous Y value to the current Y value
2018-11-04 15:21:22 -08:00
Jordan Eldredge
5afac9652f Fix let/const in spline 2018-11-03 21:59:34 -07:00
Jordan Eldredge
802571cb4f Inline parse function 2018-11-03 21:58:22 -07:00
Jordan Eldredge
f931d6ecf9 Use default args for spline 2018-11-03 21:55:34 -07:00
Jordan Eldredge
c8163244d7 Remove "close" option from spline 2018-11-03 21:54:52 -07:00
Jordan Eldredge
683cd69582 Draw eq graph as pixels 2018-11-03 21:14:14 -07:00