Page 1 of 1

Strange spectrogram colors on selection

Posted: Sat Apr 14, 2018 5:56 am
by Piotr Grochowski
Look at the purple area circled by the thin, huge letter O: https://i.imgur.com/MpyG11m.png

Where did these colors come from? They're not from ImageCache.png.

Re: Strange spectrogram colors on selection

Posted: Sat Apr 14, 2018 9:46 am
by steve
The colour of a selection is a modification of the underlying colour. The non-selected colour comes from the image cache, and the colour of the selected region is a "shifted" version of that colour. In the case of "spectral selection", the colour values are "rotated". The colour transform is not currently a user option. A "transformation" is used rather than absolute colours so as to support multiple track colours. Track colour options are likely to be extended further in future versions of Audacity.

Re: Strange spectrogram colors on selection

Posted: Sat Apr 14, 2018 12:01 pm
by Piotr Grochowski
What do you mean by "Multiple Track Colours" for spectrograms? Will you implement more ways to render the selection, like using a transformation picture pair where the color of each pixel in the picture B is mapped to the colour of pixel at the same position in the picture A? That would be a universal solution that handles any color with customization.

Re: Strange spectrogram colors on selection

Posted: Sat Apr 14, 2018 12:14 pm
by steve
Piotr Grochowski wrote:What do you mean by "Multiple Track Colours" for spectrograms?
Currently Audacity supports a selection of track colours for waveform views: http://manual.audacityteam.org/man/audi ... tml#colors
For spectrogram view, the choice is currently colour (one option) or grayscale (one option).
More colour options are likely to be added in the future.

Re: Strange spectrogram colors on selection

Posted: Sat Apr 14, 2018 12:18 pm
by Piotr Grochowski
steve wrote:
Piotr Grochowski wrote:What do you mean by "Multiple Track Colours" for spectrograms?
Currently Audacity supports a selection of track colours for waveform views: http://manual.audacityteam.org/man/audi ... tml#colors
For spectrogram view, the choice is currently colour (one option) or grayscale (one option).
More colour options are likely to be added in the future.
That's 5 selection colors for colored view and 2 selection colors for grayscale view. There definitely is space for 7 more slots in ImageCache.png. It may slowly+surely pollute ImageCache.png with each colour option added though.