common-hid-packet-parser.js
// scratchRampOnDisable     If 'ramp' is used when disabling scratch
scratchRampOnDisable     If 'ramp' is used when disabling scratch
scratchRampOnDisable If ' ramp ' is used when disabling scratch
function HIDController () {
    this.initialized = false;
    this.activeDeck = undefined;
    this.InputPackets = new Object();
    this.OutputPackets = new Object();
    this.defaultPacket = "control";
    this.disconnectDeck = undefined;
    this.connectDeck = undefined;
    this.isScratchEnabled = false;
    this.scratchintervalsPerRev = 128;
    this.scratchRPM = 33+1/3;
    this.scratchAlpha = 1.0/8;
    this.scratchBeta = this.scratchAlpha /32;
    this.scratchRampOnEnable = false;
    this.scratchRampOnDisable = false;
    this.buttonStates = { released: 0, pressed: 1};
    this.LEDColors = {off: 0x0, on: 0x7f};
    this.toggleButtons = [ "play", "pfl", "keylock", "quantize", "reverse", "slip_enabled",
                           "group_[Channel1]_enable", "group_[Channel2]_enable",
                           "group_[Channel3]_enable", "group_[Channel4]_enable" ];
    this.deckOutputColors = {1: "on", 2: "on", 3: "on", 4: "on"};
    this.virtualDecks = ["deck","deck1","deck2","deck3","deck4"];
    this.deckSwitchMap = { 1: 2, 2: 1, 3: 4, 4: 3, undefined: 1 };
    this.valid_groups = [
    "[Channel1]","[Channel2]","[Channel3]","[Channel4]",
    "[Sampler1]","[Sampler2]","[Sampler3]","[Sampler4]",
    "[Sampler5]","[Sampler6]","[Sampler7]","[Sampler8]",
    "[Master]", "[PreviewDeck1]", "[Effects]","[Playlist]","[Flanger]",
    "[Microphone]", "[EffectRack1_EffectUnit1]", "[EffectRack1_EffectUnit2]",
    "[EffectRack1_EffectUnit3]", "[EffectRack1_EffectUnit4]",
    "[InternalClock]" ];
    this.OutputUpdateInterval = undefined;
    this.modifiers = new HIDModifierList();
    this.scalers = new Object();
    this.timers = new Object();
    this.auto_repeat_interval = 100;
}
function HIDController ( ) { this . initialized = false ; this . activeDeck = undefined ; this . InputPackets = new Object ( ) ; this . OutputPackets = new Object ( ) ; this . defaultPacket = "control" ; this . disconnectDeck = undefined ; this . connectDeck = undefined ; this . isScratchEnabled = false ; this . scratchintervalsPerRev = 128 ; this . scratchRPM = 33 + 1 / 3 ; this . scratchAlpha = 1.0 / 8 ; this . scratchBeta = this . scratchAlpha / 32 ; this . scratchRampOnEnable = false ; this . scratchRampOnDisable = false ; this . buttonStates = { released : 0 , pressed : 1 } ; this . LEDColors = { off : 0x0 , on : 0x7f } ; this . toggleButtons = [ "play" , "pfl" , "keylock" , "quantize" , "reverse" , "slip_enabled" , "group_[Channel1]_enable" , "group_[Channel2]_enable" , "group_[Channel3]_enable" , "group_[Channel4]_enable" ] ; this . deckOutputColors = { 1 : "on" , 2 : "on" , 3 : "on" , 4 : "on" } ; this . virtualDecks = [ "deck" , "deck1" , "deck2" , "deck3" , "deck4" ] ; this . deckSwitchMap = { 1 : 2 , 2 : 1 , 3 : 4 , 4 : 3 , undefined : 1 } ; this . valid_groups = [ "[Channel1]" , "[Channel2]" , "[Channel3]" , "[Channel4]" , "[Sampler1]" , "[Sampler2]" , "[Sampler3]" , "[Sampler4]" , "[Sampler5]" , "[Sampler6]" , "[Sampler7]" , "[Sampler8]" , "[Master]" , "[PreviewDeck1]" , "[Effects]" , "[Playlist]" , "[Flanger]" , "[Microphone]" , "[EffectRack1_EffectUnit1]" , "[EffectRack1_EffectUnit2]" , "[EffectRack1_EffectUnit3]" , "[EffectRack1_EffectUnit4]" , "[InternalClock]" ] ; this . OutputUpdateInterval = undefined ; this . modifiers = new HIDModifierList ( ) ; this . scalers = new Object ( ) ; this . timers = new Object ( ) ; this . auto_repeat_interval = 100 ; }
scratchRampOnDisable     If 'ramp' is used when disabling scratch
scratchRampOnDisable If ' ramp ' is used when disabling scratch
// Default input control packet name: can be modified for controllers // which can swap modes (wiimote for example) // Callback functions called by deck switching. Undefined by default // Scratch parameter defaults for this.scratchEnable function // override for custom control // Button states available // Output color values to send // Toggle buttons // Override to set specific colors for multicolor button Output per deck // Mapping of automatic deck switching with deckSwitch function // Standard target groups available in mixxx. This is used by // HID packet parser to recognize group parameters we should // try sending to mixxx. // Set to value in ms to update Outputs periodically