/[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 437 by persson, Wed Mar 9 22:02:40 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 144  void PrintRegions(gig::Instrument* instr Line 144  void PrintRegions(gig::Instrument* instr
144                  case gig::dimension_samplechannel: // If used sample has more than one channel (thus is not mono).                  case gig::dimension_samplechannel: // If used sample has more than one channel (thus is not mono).
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                    }
152                  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).
153                      cout << "VELOCITY";                      cout << "VELOCITY";
154                      break;                      break;
# Line 159  void PrintRegions(gig::Instrument* instr Line 161  void PrintRegions(gig::Instrument* instr
161                  case gig::dimension_keyboard: // Key Position                  case gig::dimension_keyboard: // Key Position
162                      cout << "KEYBOARD";                      cout << "KEYBOARD";
163                      break;                      break;
164                    case gig::dimension_roundrobin: // Different samples triggered each time a note is played, dimension regions selected in sequence
165                        cout << "ROUNDROBIN";
166                        break;
167                    case gig::dimension_random: // Different samples triggered each time a note is played, random order
168                        cout << "RANDOM";
169                        break;
170                  case gig::dimension_modwheel: // Modulation Wheel (MIDI Controller 1)                  case gig::dimension_modwheel: // Modulation Wheel (MIDI Controller 1)
171                      cout << "MODWHEEL";                      cout << "MODWHEEL";
172                      break;                      break;
# Line 232  void PrintRegions(gig::Instrument* instr Line 240  void PrintRegions(gig::Instrument* instr
240                      cout << "UNKNOWN - please report this !";                      cout << "UNKNOWN - please report this !";
241                      break;                      break;
242              }              }
243              cout << ", Bits=" << (uint) DimensionDef.bits << ", Zones=" << (uint) DimensionDef.zones << endl;              cout << ", Bits=" << (uint) DimensionDef.bits << ", Zones=" << (uint) DimensionDef.zones;
244                cout << ", SplitType=";
245                switch (DimensionDef.split_type) {
246                    case gig::split_type_normal:
247                        cout << "NORMAL" << endl;
248                        break;
249                    case gig::split_type_customvelocity:
250                        cout << "CUSTOMVELOCITY" << endl;
251                        break;
252                    case gig::split_type_bit:
253                        cout << "BIT" << endl;
254                        break;
255                    default:
256                        cout << "UNKNOWN" << endl;
257                }
258          }          }
259    
260          PrintDimensionRegions(pRegion);          PrintDimensionRegions(pRegion);
# Line 256  void PrintDimensionRegions(gig::Region* Line 278  void PrintDimensionRegions(gig::Region*
278              if (pSample->pInfo->Name != "") {              if (pSample->pInfo->Name != "") {
279                  cout << "\"" << pSample->pInfo->Name << "\", ";                  cout << "\"" << pSample->pInfo->Name << "\", ";
280              }              }
281              cout << pSample->SamplesPerSecond << "Hz, " << endl;              cout << pSample->SamplesPerSecond << "Hz, ";
282                cout << "UnityNote=" << (int) pDimensionRegion->UnityNote << ", FineTune=" << (int) pDimensionRegion->FineTune << ", Gain=" << (-pDimensionRegion->Gain / 655360.0) << "dB, SampleStartOffset=" << pDimensionRegion->SampleStartOffset << endl;
283          }          }
284          else {          else {
285              cout << "                Sample: <NO_VALID_SAMPLE_REFERENCE> " << endl;              cout << "                Sample: <NO_VALID_SAMPLE_REFERENCE> " << endl;
# Line 267  void PrintDimensionRegions(gig::Region* Line 290  void PrintDimensionRegions(gig::Region*
290          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;
291          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;
292          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;
293            cout << "                VelocityResponseCurve=";
294            switch (pDimensionRegion->VelocityResponseCurve) {
295                case gig::curve_type_nonlinear:
296                    cout << "NONLINEAR";
297                    break;
298                case gig::curve_type_linear:
299                    cout << "LINEAR";
300                    break;
301                case gig::curve_type_special:
302                    cout << "SPECIAL";
303                    break;
304                case gig::curve_type_unknown:
305                default:
306                    cout << "UNKNOWN - please report this !";
307            }
308            cout << ", VelocityResponseDepth=" << (int) pDimensionRegion->VelocityResponseDepth << ", VelocityResponseCurveScaling=" << (int) pDimensionRegion->VelocityResponseCurveScaling << endl;
309            cout << "                Pan=" << (int) pDimensionRegion->Pan << endl;
310    
311          dimensionRegions++;          dimensionRegions++;
312      }      }

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

  ViewVC Help
Powered by ViewVC