This file is indexed.

/usr/share/mixxx/controllers/Pioneer-CDJ-350-scripts.js is in mixxx-data 2.0.0~dfsg-4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
function PioneerCDJ350() {}

PioneerCDJ350.playlistMode = false;

PioneerCDJ350.init = function(id) {}
PioneerCDJ350.shutdown = function(id) {}

PioneerCDJ350.jog_wheel = function(channel, control, value, status, group)
{
    // CCW:  00 -> 3f = [x0.5, x1)
    // STOP: 40       = [x1]
    // CW:   41 -> 7f = (x1, x4]
    
    newValue = (value - 0x40) / 5.0; // was too sensitive
    engine.setValue(group, "jog", newValue);
};

PioneerCDJ350.select_turn = function(channel, control, value, status, group)
{
    // CCW:  98 -> 127
    // CW:    1 ->  30
    
    if (value > 64)
    {
        value -= 128;
    }
    
    if (PioneerCDJ350.playlistMode) // playlist
    {
        engine.setValue("[Playlist]", "SelectTrackKnob", value);
    }
    else // tree
    {
        if (value > 0)
        {
            engine.setValue("[Playlist]", "SelectNextPlaylist", 1);
        }
        else if (value < 0)
        {
            engine.setValue("[Playlist]", "SelectPrevPlaylist", 1);
        }
    }
};

PioneerCDJ350.select_push = function(channel, control, value, status, group)
{
    if (value == 0x00)
    {
        return;
    }
    
    if (PioneerCDJ350.playlistMode) // playlist
    {
        engine.setValue(group, "LoadSelectedTrack", 1);
    }
    else // tree
    {
        PioneerCDJ350.playlistMode = true;
    }
};

PioneerCDJ350.exit_playlist = function(channel, control, value, status, group)
{
    PioneerCDJ350.playlistMode = false;
};


PioneerCDJ350.toggle_playlist = function(channel, control, value, status, group)
{
    if (value == 0x00)
    {
        return;
    }
    PioneerCDJ350.playlistMode = !PioneerCDJ350.playlistMode;
};
PioneerCDJ350.tempo_btn = function(channel, control, value, status, group)
{
    if (value == 0x00)
    {
        return;
    }
    
    oldValue = engine.getValue(group, "rateRange");
    newValue = 0.06;
    
    if (oldValue > 0.11)
    {
        newValue = 0.03;
    }
    else if (oldValue > 0.05)
    {
        newValue = 0.12;
    }
    
    engine.setValue(group, "rateRange", newValue);
};

PioneerCDJ350.loop_end_minus = function(channel, control, value, status, group)
{
    if (value == 0x00)
    {
        return;
    }
    engine.setValue(group, "loop_end_position", engine.getValue(group, "loop_end_position") - 256);
};
PioneerCDJ350.loop_end_plus = function(channel, control, value, status, group)
{
    if (value == 0x00)
    {
        return;
    }
    engine.setValue(group, "loop_end_position", engine.getValue(group, "loop_end_position") + 256);
};