[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GMG-Devel] Spectrogram colors

From: Joar Wandborg
Subject: Re: [GMG-Devel] Spectrogram colors
Date: Fri, 11 Oct 2013 12:18:39 +0200

I and Tumulte went through the code yesterday:

In the class SpectrogramImage in mediagoblin/media_types/audio/, in the definition of "colors" you can modify the definition to fit your needs.

The "colors" variable has to be of the format colors = [(r, g, b, a), (r, g, b, a),  ...]

Where the first rgba tuple is the color of the lower intensities and the last tuple is the color of the higher intensities. It can be any number of rgba tuples and they will be distributed evenly over the spectrum.

This is a hack that works today, hopefully in the future we will have it configurable from the main MediaGoblin configuration.

On Oct 9, 2013 2:55 PM, <address@hidden> wrote:
Hey !

I just want to achieve a simple thing : having a grayscale spectum instead
of this green/orange colors that don't fit my design.

I've toyed with avery parameters, trying to follow the workflow of a
spectrogram creation. Changed drastically quite a lot of parameters, but
only ended up with to results : "nothing" or "same"

The comments don't really help "# TODO: What does this do?" so, I can use
some how to here :)

How to change those colors ?


devel mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]