CC-2301 : automatically updating the fadein/fadeout for a track in the fadein/fadeout states.

Can enable states on a per track basis.
This commit is contained in:
Naomi 2013-04-26 15:57:02 -04:00
parent 628af95325
commit a4731d4af2
6 changed files with 162 additions and 123 deletions

View file

@ -15,6 +15,7 @@ var Config = function(params) {
resolution: 4096, //resolution - samples per pixel to draw.
timeFormat: 'hh:mm:ss.uuu',
mono: true, //whether to draw multiple channels or combine them.
fadeType: 'logarithmic',
timescale: false, //whether or not to include the time measure.
@ -64,6 +65,10 @@ var Config = function(params) {
return params.timescale;
};
that.getFadeType = function getFadeType() {
return params.fadeType;
};
that.isDisplayMono = function isDisplayMono() {
return params.mono;
};
@ -141,6 +146,10 @@ var Config = function(params) {
params.timeFormat = format;
};
that.setFadeType = function setFadeType(type) {
params.fadeType = type;
};
that.setDisplayMono = function setDisplayMono(bool) {
params.mono = bool;
};