Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.68 KB | None | 0 0
  1. //  //  –––––––––––––––––––  //  –––––––––––––––––––  //  –––––––––––––––––––  //  –––––––––––––––––––  //  –––––––––––––––––––  //
  2.  
  3. void Volt::ProcessMidiMsg(IMidiMsg* pMsg){
  4.  
  5.     if ( flag3 ==1 && autoMute == false && (pMsg->StatusMsg()==(IMidiMsg::kPitchWheel)) ) {
  6.        
  7.         /*double*/ wheelamount=(pMsg->PitchWheel())+0.5;
  8.         if ( wheelamount == 0.0){
  9.             wheelamount = 0.000001;
  10.         }
  11.     //  printf ("wheelamount = %0.16f \n", wheelamount );
  12.         //..dostuff with wheelamount...
  13.        
  14.     //  if (wheelamount != 0.5  ){
  15.             //theShuttle = wheelamount;
  16.             GetGUI()->SetParameterFromGUI(kShuttle96,wheelamount);
  17.            
  18.             theShuttle = wheelamount+0.5;
  19.            
  20.             //redoStatus = 1;  // enables buggy redo
  21.            
  22.             for ( int j = 0; j < 15; j++){
  23.                 GetGUI()->GrayOutControl(j, true);     
  24.             }
  25.            
  26.             GetGUI()->GrayOutControl(19, true);  //24 kDiv
  27.             GetGUI()->GrayOutControl(20, true);  //25 kMult
  28.            
  29.             GetGUI()->SetControlFromPlug(mCerOverlay , 0);
  30.            
  31.             GetGUI()->GetControl(mDoor)->Hide(true);
  32.             GetGUI()->GetControl(mHor)->Hide(false);
  33.             GetGUI()->GetControl(mWisk)->Hide(false);
  34.             GetGUI()->GetControl(mLegend)->Hide(false);        
  35.             GetGUI()->SetControlFromPlug(mLightMask, 1.0);    // set the light mask to 1           
  36.             GetGUI()->SetParameterFromGUI(15, 0.0);           // unity/mute button
  37.     //      shuttleStatus = 1;
  38.            
  39.             writeUndo = 1.0;  /// undo only
  40.            
  41.     //      GetGUI()->SetControlFromPlug(mClipLight_L, 0.0);
  42.     //      GetGUI()->SetControlFromPlug(mClipLight_R, 0.0);
  43.     //  }      
  44.         if (wheelamount == 0.5){
  45.             //writeUndo = 1.0; // no
  46.             //specialFlag = 1;
  47.             for ( int j = 0; j < 15; j++){
  48.                 GetGUI()->GrayOutControl(j, false);        
  49.             }
  50.             GetGUI()->GrayOutControl(19, false);  //24 kDiv
  51.             GetGUI()->GrayOutControl(20, false);  //25 kMult
  52.            
  53.             GetGUI()->GetControl(mDoor)->Hide(false);
  54.             GetGUI()->GetControl(mHor)->Hide(true);
  55.             GetGUI()->GetControl(mWisk)->Hide(true);
  56.             GetGUI()->GetControl(mLegend)->Hide(true);
  57.             GetGUI()->SetControlFromPlug(mLightMask, 0.0);    // set the light mask to 0
  58.             shuttleStatus = 0;         
  59. //          undoStatus = 0;        
  60. //          GetGUI()->SetControlFromPlug(mClipLight_L, 0.0);
  61. //          GetGUI()->SetControlFromPlug(mClipLight_R, 0.0);
  62. //          writeUndo = 1.0;  // no
  63.         }
  64.        
  65. //      if ( autoMute == true && wheelamount != 0.5 ){    //   11/17  inneffective
  66. //      GetGUI()->SetParameterFromGUI(kShuttle96,0.5); 
  67. //      }
  68. //      writeUndo = 1.0; /// undo only
  69.     }
  70. //  writeUndo = 1.0; /// undo only
  71. //  else{  //nope
  72. //  //  shuttleStatus = 0;
  73. //      GetGUI()->GetControl(mLegend)->Hide(true);
  74. //  }
  75. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement