/[svn]/libgig/trunk/src/gigdump.cpp
ViewVC logotype

Diff of /libgig/trunk/src/gigdump.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 229 by schoenebeck, Sat Aug 28 16:10:25 2004 UTC revision 240 by schoenebeck, Wed Sep 15 13:37:12 2004 UTC
# Line 145  void PrintRegions(gig::Instrument* instr Line 145  void PrintRegions(gig::Instrument* instr
145                      cout << "SAMPLECHANNEL";                      cout << "SAMPLECHANNEL";
146                      break;                      break;
147                  case gig::dimension_layer: // For layering of up to 8 instruments (and eventually crossfading of 2 or 4 layers).                  case gig::dimension_layer: // For layering of up to 8 instruments (and eventually crossfading of 2 or 4 layers).
148                      cout << "LAYER";                      gig::crossfade_t crossfade = pRegion->pDimensionRegions[iDimension]->Crossfade;
149                        cout << "LAYER (Crossfade in_start=" << (int) crossfade.in_start << ",in_end=" << (int) crossfade.in_end << ",out_start=" << (int) crossfade.out_start << ",out_end=" << (int) crossfade.out_end << ")";
150                      break;                      break;
151                  case gig::dimension_velocity: // Key Velocity (this is the only dimension where the ranges can exactly be defined).                  case gig::dimension_velocity: // Key Velocity (this is the only dimension where the ranges can exactly be defined).
152                      cout << "VELOCITY";                      cout << "VELOCITY";
# Line 232  void PrintRegions(gig::Instrument* instr Line 233  void PrintRegions(gig::Instrument* instr
233                      cout << "UNKNOWN - please report this !";                      cout << "UNKNOWN - please report this !";
234                      break;                      break;
235              }              }
236              cout << ", Bits=" << (uint) DimensionDef.bits << ", Zones=" << (uint) DimensionDef.zones << endl;              cout << ", Bits=" << (uint) DimensionDef.bits << ", Zones=" << (uint) DimensionDef.zones;
237                cout << ", SplitType=";
238                switch (DimensionDef.split_type) {
239                    case gig::split_type_normal:
240                        cout << "NORMAL" << endl;
241                        break;
242                    case gig::split_type_customvelocity:
243                        cout << "CUSTOMVELOCITY" << endl;
244                        break;
245                    case gig::split_type_bit:
246                        cout << "BIT" << endl;
247                        break;
248                    default:
249                        cout << "UNKNOWN" << endl;
250                }
251          }          }
252    
253          PrintDimensionRegions(pRegion);          PrintDimensionRegions(pRegion);
# Line 267  void PrintDimensionRegions(gig::Region* Line 282  void PrintDimensionRegions(gig::Region*
282          cout << "                EG1PreAttack=" << pDimensionRegion->EG1PreAttack << "permille, EG1Attack=" << pDimensionRegion->EG1Attack << "s, EG1Decay1=" << pDimensionRegion->EG1Decay1 << "s,  EG1Sustain=" << pDimensionRegion->EG1Sustain << "permille, EG1Release=" << pDimensionRegion->EG1Release << "s, EG1Decay2=" << pDimensionRegion->EG1Decay2 << "s, EG1Hold=" << pDimensionRegion->EG1Hold << endl;          cout << "                EG1PreAttack=" << pDimensionRegion->EG1PreAttack << "permille, EG1Attack=" << pDimensionRegion->EG1Attack << "s, EG1Decay1=" << pDimensionRegion->EG1Decay1 << "s,  EG1Sustain=" << pDimensionRegion->EG1Sustain << "permille, EG1Release=" << pDimensionRegion->EG1Release << "s, EG1Decay2=" << pDimensionRegion->EG1Decay2 << "s, EG1Hold=" << pDimensionRegion->EG1Hold << endl;
283          cout << "                EG2PreAttack=" << pDimensionRegion->EG2PreAttack << "permille, EG2Attack=" << pDimensionRegion->EG2Attack << "s, EG2Decay1=" << pDimensionRegion->EG2Decay1 << "s,  EG2Sustain=" << pDimensionRegion->EG2Sustain << "permille, EG2Release=" << pDimensionRegion->EG2Release << "s, EG2Decay2=" << pDimensionRegion->EG2Decay2 << "s" << endl;          cout << "                EG2PreAttack=" << pDimensionRegion->EG2PreAttack << "permille, EG2Attack=" << pDimensionRegion->EG2Attack << "s, EG2Decay1=" << pDimensionRegion->EG2Decay1 << "s,  EG2Sustain=" << pDimensionRegion->EG2Sustain << "permille, EG2Release=" << pDimensionRegion->EG2Release << "s, EG2Decay2=" << pDimensionRegion->EG2Decay2 << "s" << endl;
284          cout << "                VCFEnabled=" << pDimensionRegion->VCFEnabled << ", VCFType=" << pDimensionRegion->VCFType << ", VCFCutoff=" << (int) pDimensionRegion->VCFCutoff << ",  VCFResonance=" << (int) pDimensionRegion->VCFResonance << ", VCFCutoffController=" << pDimensionRegion->VCFCutoffController << endl;          cout << "                VCFEnabled=" << pDimensionRegion->VCFEnabled << ", VCFType=" << pDimensionRegion->VCFType << ", VCFCutoff=" << (int) pDimensionRegion->VCFCutoff << ",  VCFResonance=" << (int) pDimensionRegion->VCFResonance << ", VCFCutoffController=" << pDimensionRegion->VCFCutoffController << endl;
285            cout << "                VelocityResponseCurve=";
286            switch (pDimensionRegion->VelocityResponseCurve) {
287                case gig::curve_type_nonlinear:
288                    cout << "NONLINEAR";
289                    break;
290                case gig::curve_type_linear:
291                    cout << "LINEAR";
292                    break;
293                case gig::curve_type_special:
294                    cout << "SPECIAL";
295                    break;
296                case gig::curve_type_unknown:
297                default:
298                    cout << "UNKNOWN - please report this !";
299            }
300            cout << ", VelocityResponseDepth=" << (int) pDimensionRegion->VelocityResponseDepth << ", VelocityResponseCurveScaling=" << (int) pDimensionRegion->VelocityResponseCurveScaling << endl;
301    
302          dimensionRegions++;          dimensionRegions++;
303      }      }

Legend:
Removed from v.229  
changed lines
  Added in v.240

  ViewVC Help
Powered by ViewVC