// ====================================================== USER OPTIONS =========================================================
// Set this to false if you do not want the volume of samples to be proportional to how hard you press the big buttons. When this is false, the sampler buttons will play the samplers at whatever volume the sample deck is set to.
ElectrixTweaker.samplerVelocityAsVolume = true
// The higher this is, the less hard you have to strike the sample pads to play samples loudly (when ElectrixTweaker.samplerVelocityAsVolume is true).
ElectrixTweaker.samplerSensitivity = 4
// Adjust sensitivity of EQs (range 1-7, only use integers)
ElectrixTweaker.eqSensitivity = 6
// Set these to true to enable vinyl mode for that deck on startup. This will also enable vinyl control on startup.
ElectrixTweaker.vinylMode = {'[Channel1]': false, '[Channel2]': false, '[Channel3]': false, '[Channel4]': false}
/**
* Electrix Tweaker controller script 1.1.1 for Mixxx 1.12
* Copyright (C) 2015 Be <be.0@gmx.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
See http://mixxx.org/wiki/doku.php/electrix_tweaker for instructions on how to use this mapping
**/
// ==================================================== GLOBAL VARIABLES =======================================================
function ElectrixTweaker() {}
ElectrixTweaker.colorCodes = {
'off': 0,
'green': 1,
'red': 4,
'yellow': 8,
'blue': 16,
'cyan': 32,
'magenta': 64,
'white': 127
}
ElectrixTweaker.deckColor = {
'[Channel1]': ElectrixTweaker.colorCodes['blue'],
'[Channel2]': ElectrixTweaker.colorCodes['blue'],
'[Channel3]': ElectrixTweaker.colorCodes['magenta'],
'[Channel4]': ElectrixTweaker.colorCodes['magenta']
}
ElectrixTweaker.hotcueColors = [
ElectrixTweaker.colorCodes['cyan'],
ElectrixTweaker.colorCodes['green'],
ElectrixTweaker.colorCodes['red'],
ElectrixTweaker.colorCodes['white']
]
ElectrixTweaker.encoders = {
'[Channel1]': {
'High': {
'cc': 57,
'ring': 79,
'button': 45
},
'Mid': {
'cc': 58,
'ring': 80,
'button': 46
},
'Low': {
'cc': 59,
'ring': 81,
'button': 47
}
},
'[Channel2]': {
'High': {
'cc': 60,
'ring': 82,
'button': 48
},
'Mid': {
'cc': 61,
'ring': 83,
'button': 49
},
'Low': {
'cc': 62,
'ring': 84,
'button': 50
}
}
}
ElectrixTweaker.encoders['[Channel3]'] = ElectrixTweaker.encoders['[Channel1]']
ElectrixTweaker.encoders['[Channel4]'] = ElectrixTweaker.encoders['[Channel2]']
// each consecutive value in this array sets the encoder ring LEDs to the show the next LED
ElectrixTweaker.encoderRingSteps = [0, 10, 25, 35, 50, 60, 64, 75, 85, 95, 105, 115, 127]
ElectrixTweaker.encoderRingStepsFill = [0, 1, 20, 30, 40, 50, 60, 64, 75, 85, 95, 105, 120, 127]