/[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 235 by schoenebeck, Thu Sep 9 18:37:22 2004 UTC revision 334 by schoenebeck, Mon Jan 3 00:53:42 2005 UTC
# Line 131  void PrintRegions(gig::Instrument* instr Line 131  void PrintRegions(gig::Instrument* instr
131              cout << "<NO_VALID_SAMPLE_REFERENCE> ";              cout << "<NO_VALID_SAMPLE_REFERENCE> ";
132          }          }
133          cout << "            KeyRange=" << pRegion->KeyRange.low << "-" << pRegion->KeyRange.high << ", ";          cout << "            KeyRange=" << pRegion->KeyRange.low << "-" << pRegion->KeyRange.high << ", ";
134          cout << "VelocityRange=" << pRegion->VelocityRange.low << "-" << pRegion->VelocityRange.high << ", Layer=" << pRegion->Layer << endl;          cout << "VelocityRange=" << pRegion->VelocityRange.low << "-" << pRegion->VelocityRange.high << ", Layers=" << pRegion->Layers << endl;
135          cout << "            Loops=" << pRegion->SampleLoops << endl;          cout << "            Loops=" << pRegion->SampleLoops << endl;
136          cout << "            Dimensions=" << pRegion->Dimensions << endl;          cout << "            Dimensions=" << pRegion->Dimensions << endl;
137          for (int iDimension = 0; iDimension < pRegion->Dimensions; iDimension++) {          for (int iDimension = 0; iDimension < pRegion->Dimensions; iDimension++) {
# Line 233  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 257  void PrintDimensionRegions(gig::Region* Line 271  void PrintDimensionRegions(gig::Region*
271              if (pSample->pInfo->Name != "") {              if (pSample->pInfo->Name != "") {
272                  cout << "\"" << pSample->pInfo->Name << "\", ";                  cout << "\"" << pSample->pInfo->Name << "\", ";
273              }              }
274              cout << pSample->SamplesPerSecond << "Hz, " << endl;              cout << pSample->SamplesPerSecond << "Hz, ";
275                cout << "UnityNote=" << (int) pDimensionRegion->UnityNote << ", FineTune=" << (int) pDimensionRegion->FineTune << endl;
276          }          }
277          else {          else {
278              cout << "                Sample: <NO_VALID_SAMPLE_REFERENCE> " << endl;              cout << "                Sample: <NO_VALID_SAMPLE_REFERENCE> " << endl;
# Line 284  void PrintDimensionRegions(gig::Region* Line 299  void PrintDimensionRegions(gig::Region*
299                  cout << "UNKNOWN - please report this !";                  cout << "UNKNOWN - please report this !";
300          }          }
301          cout << ", VelocityResponseDepth=" << (int) pDimensionRegion->VelocityResponseDepth << ", VelocityResponseCurveScaling=" << (int) pDimensionRegion->VelocityResponseCurveScaling << endl;          cout << ", VelocityResponseDepth=" << (int) pDimensionRegion->VelocityResponseDepth << ", VelocityResponseCurveScaling=" << (int) pDimensionRegion->VelocityResponseCurveScaling << endl;
302            cout << "                Pan=" << (int) pDimensionRegion->Pan << endl;
303    
304          dimensionRegions++;          dimensionRegions++;
305      }      }

Legend:
Removed from v.235  
changed lines
  Added in v.334

  ViewVC Help
Powered by ViewVC