hoch / canopy

Web Audio API programming/debugging suite
http://hoch.github.io/canopy/
MIT License
72 stars 7 forks source link

Auto (or selectable) y-axis scaling #88

Open rtoy opened 6 years ago

rtoy commented 6 years ago

Currently, the y-axis scale is the same for all graphs, and defaults to a range of -1 to +1. If there's only one or two graphs this is fine.

However, in some cases, the output is a difference signal where the difference is small. It would be nice if the y-axis were automatically scaled to occupy (roughly) the full height of the graph area. Then I don't have to adjust the scaling manually each time it's run or I don't have to add extra (unimportant) gain nodes to scale the output.

Of course, adding the gain node is the easy workaround.