Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // // ––––––––––––––––––– // ––––––––––––––––––– // ––––––––––––––––––– // ––––––––––––––––––– // ––––––––––––––––––– //
- void Volt::ProcessMidiMsg(IMidiMsg* pMsg){
- if ( flag3 ==1 && autoMute == false && (pMsg->StatusMsg()==(IMidiMsg::kPitchWheel)) ) {
- /*double*/ wheelamount=(pMsg->PitchWheel())+0.5;
- if ( wheelamount == 0.0){
- wheelamount = 0.000001;
- }
- // printf ("wheelamount = %0.16f \n", wheelamount );
- //..dostuff with wheelamount...
- // if (wheelamount != 0.5 ){
- //theShuttle = wheelamount;
- GetGUI()->SetParameterFromGUI(kShuttle96,wheelamount);
- theShuttle = wheelamount+0.5;
- //redoStatus = 1; // enables buggy redo
- for ( int j = 0; j < 15; j++){
- GetGUI()->GrayOutControl(j, true);
- }
- GetGUI()->GrayOutControl(19, true); //24 kDiv
- GetGUI()->GrayOutControl(20, true); //25 kMult
- GetGUI()->SetControlFromPlug(mCerOverlay , 0);
- GetGUI()->GetControl(mDoor)->Hide(true);
- GetGUI()->GetControl(mHor)->Hide(false);
- GetGUI()->GetControl(mWisk)->Hide(false);
- GetGUI()->GetControl(mLegend)->Hide(false);
- GetGUI()->SetControlFromPlug(mLightMask, 1.0); // set the light mask to 1
- GetGUI()->SetParameterFromGUI(15, 0.0); // unity/mute button
- // shuttleStatus = 1;
- writeUndo = 1.0; /// undo only
- // GetGUI()->SetControlFromPlug(mClipLight_L, 0.0);
- // GetGUI()->SetControlFromPlug(mClipLight_R, 0.0);
- // }
- if (wheelamount == 0.5){
- //writeUndo = 1.0; // no
- //specialFlag = 1;
- for ( int j = 0; j < 15; j++){
- GetGUI()->GrayOutControl(j, false);
- }
- GetGUI()->GrayOutControl(19, false); //24 kDiv
- GetGUI()->GrayOutControl(20, false); //25 kMult
- GetGUI()->GetControl(mDoor)->Hide(false);
- GetGUI()->GetControl(mHor)->Hide(true);
- GetGUI()->GetControl(mWisk)->Hide(true);
- GetGUI()->GetControl(mLegend)->Hide(true);
- GetGUI()->SetControlFromPlug(mLightMask, 0.0); // set the light mask to 0
- shuttleStatus = 0;
- // undoStatus = 0;
- // GetGUI()->SetControlFromPlug(mClipLight_L, 0.0);
- // GetGUI()->SetControlFromPlug(mClipLight_R, 0.0);
- // writeUndo = 1.0; // no
- }
- // if ( autoMute == true && wheelamount != 0.5 ){ // 11/17 inneffective
- // GetGUI()->SetParameterFromGUI(kShuttle96,0.5);
- // }
- // writeUndo = 1.0; /// undo only
- }
- // writeUndo = 1.0; /// undo only
- // else{ //nope
- // // shuttleStatus = 0;
- // GetGUI()->GetControl(mLegend)->Hide(true);
- // }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement