* deal with extremes by squelching to values VRFS-1319

This commit is contained in:
Seth Call 2014-03-03 18:09:27 -06:00
parent 535a0da880
commit aa62cc7d2a
2 changed files with 6 additions and 1 deletions

View File

@ -186,7 +186,7 @@
context.JK.GA.trackSessionMusicians(context.JK.GA.SessionCreationTypes.create);
},
error: function() {
app.notifyServerError(arguments0, "Unable to Create Session");
app.notifyServerError(arguments, "Unable to Create Session");
$('#btn-create-session').removeClass('button-disabled');
$('#btn-create-session').unbind('click', false);
}

View File

@ -208,6 +208,11 @@
},
convertLinearToDb: function (input) {
// deal with extremes better
if (input <= 1) { return -80; }
if (input >= 99) { return 20; }
var temp;
temp = 0.0;
// coefficients