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

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

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

revision 2922 by schoenebeck, Sun Jun 8 19:00:30 2014 UTC revision 2923 by schoenebeck, Sat May 21 08:54:32 2016 UTC
# Line 377  void PrintRegions(gig::Instrument* instr Line 377  void PrintRegions(gig::Instrument* instr
377      }      }
378  }  }
379    
380    template<typename T_int>
381    static void printIntArray(T_int* array, int size) {
382        printf("{");
383        for (int i = 0; i < size; ++i)
384            printf("[%d]=%d,", i, array[i]);
385        printf("}");
386        fflush(stdout);
387    }
388    
389  void PrintDimensionRegions(gig::Region* rgn) {  void PrintDimensionRegions(gig::Region* rgn) {
390      int dimensionRegions = 0;      int dimensionRegions = 0;
391      gig::DimensionRegion* pDimensionRegion;      gig::DimensionRegion* pDimensionRegion;
# Line 420  void PrintDimensionRegions(gig::Region* Line 429  void PrintDimensionRegions(gig::Region*
429                  cout << "UNKNOWN - please report this !";                  cout << "UNKNOWN - please report this !";
430          }          }
431          cout << ", VelocityResponseDepth=" << (int) pDimensionRegion->VelocityResponseDepth << ", VelocityResponseCurveScaling=" << (int) pDimensionRegion->VelocityResponseCurveScaling << endl;          cout << ", VelocityResponseDepth=" << (int) pDimensionRegion->VelocityResponseDepth << ", VelocityResponseCurveScaling=" << (int) pDimensionRegion->VelocityResponseCurveScaling << endl;
432            cout << "                VelocityUpperLimit=" << (int) pDimensionRegion->VelocityUpperLimit << " DimensionUpperLimits[]=" << flush;
433            printIntArray(pDimensionRegion->DimensionUpperLimits, 8);
434            cout << endl;
435    #if 0 // requires access to protected member VelocityTable, so commented out for now
436            if (pDimensionRegion->VelocityTable) {
437                cout << "                VelocityTable[]=" << flush;
438                printIntArray(pDimensionRegion->VelocityTable, 127);
439                cout << endl;
440            }
441    #endif
442          cout << "                Pan=" << (int) pDimensionRegion->Pan << endl;          cout << "                Pan=" << (int) pDimensionRegion->Pan << endl;
443    
444          dimensionRegions++;          dimensionRegions++;

Legend:
Removed from v.2922  
changed lines
  Added in v.2923

  ViewVC Help
Powered by ViewVC