GMFaderMultiSlider:
Filter:
GraphicalModule/Classes (extension) | GUI > Graphical Module

GMFaderMultiSlider
ExtensionExtension

A multi slider class that supports sequencer utilities

Description

GMFaderMultiSlider is an easy to use customisable multi slider.

It inherits from the GMZZMultiSlider class, and is only responsible for graphical specifications. See GMZZSlider and GMZZMultiSlider for non-graphical properties settings.

A note about this documentation

This class is an extension of the GMFaderSlider class. It retains the same principle, but for several values instead of one. As such, you should read the GMFaderSlider class documentation first, as only differences between those two classes are documented here.

Sequencer interface

This class has been designed to be used, if needed, as a sequencer control.

First, it is possible to highlight some values so one can distinguish important times at first glance. Those highlights are specified using an array of float between 0 and 1, that should be the size of the values. The higher the value is, the bigger and opaque the highlight will be.

A 4/4 signature highlight :

A 6/8 signature highlight :

In addition, specifying a beat property will also highlight the associated slider. One can use a Routine (or any TempoClock based algorithm) to dynamically display the current beat. The graphical update is internally deferred.

See the examples below for a complete sequencer setup.

Class Methods

.new

Creates a new instance of GMFaderMultiSlider.

By default, its graphical properties are defined by its associated GMStyle. This means that creating multi sliders with different colors implies creating multiples GMStyle. The sliders color corresponds to the mainColor property. The font color of the displayed value corresponds to the valueFontColor property.

Returns:

a GMFaderMultiSlider instance.

Instance Methods

.beat

Sets or gets the displayed beat. Set to -1 to disable. This will internally defer the graphical update.

.displayHighlights

Sets or gets wether the highlights should be displayed.

.drawHighlights

Deprecated method. Use displayHighlights instead.

.highlightRatio

Sets or gets the highlights maximum ratio relative to the sliders available space.

.highlights

Sets or gets the highlights weights. A weight of 1 will cause the highlight to be drawn at the maximum ratio, using the GMStyle highlightColor alpha value. Lower values will linearily decrease both the ratio and the alpha values (see examples).

GMFaderSlider Methods

See the GMFaderSlider class documentation for those methods.

.minAlpha

.slidersRatio

.displayValues

.centerValues

.roundValue

.displayFunction

.fontRatio

.drawHelpers

.displayHelpers

.helpersStyle

.helpersRatio

.centerHelpers

Internal Methods

.draw

.prDrawSliders

.prDrawHighlights

.prDrawValues

Examples

A simple interface that allows to shape the harmonics value of a continuous sound :

Used as a sequencer parameter :