~miko-kiiski/mixxx/auto-expand

« back to all changes in this revision

Viewing changes to mixxx/res/midi/Stanton-SCS3d-scripts.js

  • Committer: Sean M. Pappalardo
  • Date: 2010-03-06 21:46:14 UTC
  • mfrom: (2182.2.292 release-1.6.2)
  • Revision ID: pegasus@renegadetech.com-20100306214614-z7c9wosz3sgsluno
- Merged from 1.7 (SCS.3d fix & madjester's script.absSlider fix)
- SCS.3d scratch bug fix for 1.8
- Prevent upgrade.cpp from complaining about no upgrade function when there's no version # in the config file
- Changed version to 1.8.0~beta2-pre to avoid confusion

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/****************************************************************/
2
 
/*      Stanton SCS.3d MIDI controller script v1.41             */
 
2
/*      Stanton SCS.3d MIDI controller script v1.42             */
3
3
/*          Copyright (C) 2009-2010, Sean M. Pappalardo         */
4
4
/*      but feel free to tweak this to your heart's content!    */
5
5
/*      For Mixxx version 1.8.x                                 */
664
664
    StantonSCS3d.connectSurfaceSignals(channel,true);  // Disconnect previous ones
665
665
    StantonSCS3d.softButtonsColor(channel,0x02);  // Make the soft buttons blue
666
666
    switch (currentMode) {    // Special recovery from certain modes
 
667
        case "vinyl":
 
668
        case "vinyl2":
 
669
            // So we don't get stuck at some strange speed when switching from a scratching mode
 
670
            engine.setValue("[Channel"+StantonSCS3d.deck+"]","scratch", 0);
 
671
            if (StantonSCS3d.scratch["wasPlaying"]) {   // to avoid getting stuck stopped
 
672
                engine.setValue("[Channel"+StantonSCS3d.deck+"]","play",1);
 
673
                StantonSCS3d.scratch["wasPlaying"] = false;
 
674
            }
 
675
            break;
667
676
        case "loop2":
668
677
        case "loop3":
669
678
        case "trig":
846
855
    StantonSCS3d.modifier["deck"]=0;   // Clear button modifier flag
847
856
    StantonSCS3d.connectSurfaceSignals(channel,true);   // Disconnect surface signals & turn off surface LEDs
848
857
    StantonSCS3d.mode_store["[Channel"+StantonSCS3d.deck+"]"] = StantonSCS3d.state["deckPrev"];
849
 
    
 
858
    engine.setValue("[Channel"+StantonSCS3d.deck+"]","scratch", 0); // To avoid getting stuck at a weird speed
 
859
    if (StantonSCS3d.scratch["wasPlaying"]) {   // to avoid the deck stopping
 
860
        engine.setValue("[Channel"+StantonSCS3d.deck+"]","play",1);
 
861
        StantonSCS3d.scratch["wasPlaying"] = false;
 
862
    }
850
863
    var newMode;
851
864
    // In default multiple-deck mode, 
852
865
    //      If the button's been held down for longer than the specified time, stay on the current deck.