hoch / canopy

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

Labels for each graph #87

Open rtoy opened 6 years ago

rtoy commented 6 years ago

Currently, there is no label (on the y-axis) for what the graph represents. It would be nice if a label could be attached to each graph. This is useful if there are more than just a couple of graphs.

Perhaps the default could be just 'graph n' for the n'th graph. But it would also be nice if the user could give an appropriate label. Maybe in the comment section where the channels and sampleRate are given, we could add something like:

// @sampleRate 48000
// @graph0 'reference signal'
// @graph1 'test signal'
// @graph2 'diff'