[question] SoundFileView - channel spacing
[email protected] Wed, 11 Apr 2018 13:32:06 -0700
| Newsgroups | gmane.comp.audio.supercollider.devel |
|---|---|
| Message-ID | <CAEBNZeCsWYjdVg2MF8Gh5-zZBCtLb_VpyqdLhsPwd11uWLZO3Q@mail.gmail.com> |
In further work on improving SoundFileView (to be able to use it for variety of plotting scenarios) I'm adding the ability to offset the view vertically, and also change the spacing between channels. Currently, SoundFileView displays (n+1) number of spaces for every (n) number of channels: https://ibb.co/dOAZ1c While I think this looks fine, it makes harder to calculate where the values on the y axis are (of course it's possible, but arguably convoluted, especially in case one wanted to superimpose a gird from sclang on top of it, or even label reference values). Also, exposing control over spacing would be awkward - either setting spacing ratio would result in automatically calculated channel height/ratio, or setting channel height would make the spaces automatically calculated (in each case the two ratios would not add up to 1). I'm thinking about making the top and bottom space half of the current value: https://ibb.co/iRQ1gc Then all the channels are equally distributed inside the view. I think it's a more "proper" approach allowing better labeling etc, but I also think it looks a little worse than the current implementation. What are your thoughts? Thanks, Marcin