@@ -46,8 +46,8 @@ void InstrumentView::onInstrumentChange() {
4646 T_SimpleList<UIField>::Empty () ;
4747
4848 InstrumentType it=getInstrumentType () ;
49-
50- switch (it) {
49+
50+ switch (it) {
5151 case IT_MIDI:
5252 fillMidiParameters () ;
5353 break ;
@@ -77,7 +77,7 @@ void InstrumentView::fillSampleParameters() {
7777 I_Instrument *instr=bank->GetInstrument (i) ;
7878 SampleInstrument *instrument=(SampleInstrument *)instr ;
7979 GUIPoint position=GetAnchor () ;
80-
80+
8181// position._y+=View::fieldSpaceHeight_;
8282 Variable *v=instrument->FindVariable (SIP_SAMPLE) ;
8383 SamplePool *sp=SamplePool::GetInstance () ;
@@ -90,11 +90,11 @@ void InstrumentView::fillSampleParameters() {
9090 f1 = new UIIntVarField (position, *v, " %s" , 0 , 3 , 1 , 2 );
9191 T_SimpleList<UIField>::Insert (f1) ;
9292
93- position._x += 8 ;
93+ position._x += 7 ;
9494 v = instrument->FindVariable (SIP_IR_WET);
9595 f1 = new UIIntVarField (position, *v, " wet:%d%%" , 0 , 100 , 1 , 10 );
9696 T_SimpleList<UIField>::Insert (f1);
97- position._x += 8 ;
97+ position._x += 9 ;
9898
9999 v = instrument->FindVariable (SIP_IR_PAD);
100100 f1 = new UIIntVarField (position, *v, " pad:%dms" , 0 , 5000 , 5 , 100 );
@@ -105,8 +105,8 @@ void InstrumentView::fillSampleParameters() {
105105 v=instrument->FindVariable (SIP_VOLUME) ;
106106 f1=new UIIntVarField (position,*v," volume: %d [%2.2X]" ,0 ,255 ,1 ,10 ) ;
107107 T_SimpleList<UIField>::Insert (f1) ;
108-
109- position._y +=1 ;
108+
109+ position._y +=1 ;
110110 v=instrument->FindVariable (SIP_PAN) ;
111111 f1=new UIIntVarField (position,*v," pan: %2.2X" ,0 ,0xFE ,1 ,0x10 ) ;
112112 T_SimpleList<UIField>::Insert (f1) ;
@@ -188,8 +188,8 @@ void InstrumentView::fillSampleParameters() {
188188 v=instrument->FindVariable (SIP_INTERPOLATION) ;
189189 f1=new UIIntVarField (position,*v," interpolation: %s" ,0 ,1 ,1 ,1 ) ;
190190 T_SimpleList<UIField>::Insert (f1) ;
191-
192- position._y +=1 ;
191+
192+ position._y +=1 ;
193193 v=instrument->FindVariable (SIP_LOOPMODE) ;
194194 f1=new UIIntVarField (position,*v," loop mode: %s" ,0 ,SILM_LAST-1 ,1 ,1 ) ;
195195 T_SimpleList<UIField>::Insert (f1) ;
@@ -347,12 +347,12 @@ void InstrumentView::ProcessButtonMask(unsigned short mask,bool pressed) {
347347 }
348348
349349 FieldView::ProcessButtonMask (mask) ;
350-
351- Player *player=Player::GetInstance () ;
350+
351+ Player *player=Player::GetInstance () ;
352352 // B Modifier
353353
354- if (mask& EPBM_B) {
355- if (mask&EPBM_LEFT) warpToNext (-1 ) ;
354+ if (mask & EPBM_B) {
355+ if (mask&EPBM_LEFT) warpToNext (-1 ) ;
356356 if (mask&EPBM_RIGHT) warpToNext (+1 );
357357 if (mask&EPBM_DOWN) warpToNext (-16 ) ;
358358 if (mask&EPBM_UP) warpToNext (+16 );
@@ -382,21 +382,21 @@ void InstrumentView::ProcessButtonMask(unsigned short mask,bool pressed) {
382382 if (mask&EPBM_L) {
383383 viewMode_=VM_CLONE ;
384384 } ;
385- } else {
385+ } else {
386386
387- // A modifier
387+ // A modifier
388388
389- if (mask== EPBM_A) {
390- FourCC varID=((UIIntVarField *)GetFocus ())->GetVariableID () ;
389+ if (mask == EPBM_A) {
390+ FourCC varID=((UIIntVarField *)GetFocus ())->GetVariableID () ;
391391 if ((varID==SIP_TABLE)||(varID==MIP_TABLE)||(varID==SIP_SAMPLE)) {
392392 viewMode_=VM_NEW ;
393393 } ;
394- } else {
394+ } else {
395395
396- // R Modifier
396+ // R Modifier
397397
398- if (mask& EPBM_R) {
399- if (mask&EPBM_LEFT) {
398+ if (mask & EPBM_R) {
399+ if (mask&EPBM_LEFT) {
400400 ViewType vt=VT_PHRASE;
401401 ViewEvent ve (VET_SWITCH_VIEW,&vt) ;
402402 SetChanged ();
@@ -436,18 +436,17 @@ void InstrumentView::ProcessButtonMask(unsigned short mask,bool pressed) {
436436 if (mask&EPBM_START) {
437437 player->OnStartButton (PM_PHRASE,viewData_->songX_ ,true ,viewData_->chainRow_ ) ;
438438 }
439- } else {
439+ } else {
440440 // No modifier
441441 if (mask&EPBM_START) {
442442 player->OnStartButton (PM_PHRASE,viewData_->songX_ ,false ,viewData_->chainRow_ ) ;
443443 }
444- }
445- }
446-
447- }
444+ }
445+ }
446+ }
448447
449- UIIntVarField *field= (UIIntVarField *)GetFocus () ;
450- if (field) {
448+ UIIntVarField *field = (UIIntVarField *)GetFocus ();
449+ if (field) {
451450 lastFocusID_=field->GetVariableID () ;
452451 }
453452
@@ -465,19 +464,16 @@ void InstrumentView::DrawView() {
465464
466465 char title[20 ];
467466 SetColor (CD_NORMAL) ;
468- sprintf (title," Instrument %2.2X" ,viewData_->currentInstrument_ ) ;
469- DrawString (pos._x ,pos._y ,title,props) ;
467+ sprintf (title, " Instrument %2.2X" , viewData_->currentInstrument_ );
468+ DrawString (pos._x , pos._y , title, props);
470469
471- // Draw fields
470+ // Draw fields
472471
473- FieldView::Redraw () ;
474- drawMap () ;
472+ FieldView::Redraw ();
473+ drawMap () ;
475474} ;
476475
477- void InstrumentView::OnFocus () {
478- onInstrumentChange () ;
479- }
480-
476+ void InstrumentView::OnFocus () { onInstrumentChange (); }
481477
482478void InstrumentView::Update (Observable &o,I_ObservableData *d) {
483479 onInstrumentChange () ;
0 commit comments