/[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 24 by schoenebeck, Fri Dec 26 16:15:31 2003 UTC revision 231 by schoenebeck, Sun Sep 5 00:46:28 2004 UTC
# Line 2  Line 2 
2   *                                                                         *   *                                                                         *
3   *   libgig - C++ cross-platform Gigasampler format file loader library    *   *   libgig - C++ cross-platform Gigasampler format file loader library    *
4   *                                                                         *   *                                                                         *
5   *   Copyright (C) 2003 by Christian Schoenebeck                           *   *   Copyright (C) 2003, 2004 by Christian Schoenebeck                     *
6   *                         <cuse@users.sourceforge.net>                    *   *                               <cuse@users.sourceforge.net>              *
7   *                                                                         *   *                                                                         *
8   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
9   *   it under the terms of the GNU General Public License as published by  *   *   it under the terms of the GNU General Public License as published by  *
# Line 133  void PrintRegions(gig::Instrument* instr Line 133  void PrintRegions(gig::Instrument* instr
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 << ", Layer=" << pRegion->Layer << endl;
135          cout << "            Loops=" << pRegion->SampleLoops << endl;          cout << "            Loops=" << pRegion->SampleLoops << endl;
136            cout << "            Dimensions=" << pRegion->Dimensions << endl;
137            for (int iDimension = 0; iDimension < pRegion->Dimensions; iDimension++) {
138                cout << "            Dimension[" << iDimension << "]: Type=";
139                gig::dimension_def_t DimensionDef = pRegion->pDimensionDefinitions[iDimension];
140                switch (DimensionDef.dimension) {
141                    case gig::dimension_none:
142                        cout << "NONE";
143                        break;
144                    case gig::dimension_samplechannel: // If used sample has more than one channel (thus is not mono).
145                        cout << "SAMPLECHANNEL";
146                        break;
147                    case gig::dimension_layer: // For layering of up to 8 instruments (and eventually crossfading of 2 or 4 layers).
148                        cout << "LAYER";
149                        break;
150                    case gig::dimension_velocity: // Key Velocity (this is the only dimension where the ranges can exactly be defined).
151                        cout << "VELOCITY";
152                        break;
153                    case gig::dimension_channelaftertouch: // Channel Key Pressure
154                        cout << "AFTERTOUCH";
155                        break;
156                    case gig::dimension_releasetrigger: // Special dimension for triggering samples on releasing a key.
157                        cout << "RELEASETRIGGER";
158                        break;
159                    case gig::dimension_keyboard: // Key Position
160                        cout << "KEYBOARD";
161                        break;
162                    case gig::dimension_modwheel: // Modulation Wheel (MIDI Controller 1)
163                        cout << "MODWHEEL";
164                        break;
165                    case gig::dimension_breath: // Breath Controller (Coarse, MIDI Controller 2)
166                        cout << "BREATH";
167                        break;
168                    case gig::dimension_foot: // Foot Pedal (Coarse, MIDI Controller 4)
169                        cout << "FOOT";
170                        break;
171                    case gig::dimension_portamentotime: // Portamento Time (Coarse, MIDI Controller 5)
172                        cout << "PORTAMENTOTIME";
173                        break;
174                    case gig::dimension_effect1: // Effect Controller 1 (Coarse, MIDI Controller 12)
175                        cout << "EFFECT1";
176                        break;
177                    case gig::dimension_effect2: // Effect Controller 2 (Coarse, MIDI Controller 13)
178                        cout << "EFFECT2";
179                        break;
180                    case gig::dimension_genpurpose1: // General Purpose Controller 1 (Slider, MIDI Controller 16)
181                        cout << "GENPURPOSE1";
182                        break;
183                    case gig::dimension_genpurpose2: // General Purpose Controller 2 (Slider, MIDI Controller 17)
184                        cout << "GENPURPOSE2";
185                        break;
186                    case gig::dimension_genpurpose3: // General Purpose Controller 3 (Slider, MIDI Controller 18)
187                        cout << "GENPURPOSE3";
188                        break;
189                    case gig::dimension_genpurpose4: // General Purpose Controller 4 (Slider, MIDI Controller 19)
190                        cout << "GENPURPOSE4";
191                        break;
192                    case gig::dimension_sustainpedal: // Sustain Pedal (MIDI Controller 64)
193                        cout << "SUSTAINPEDAL";
194                        break;
195                    case gig::dimension_portamento: // Portamento (MIDI Controller 65)
196                        cout << "PORTAMENTO";
197                        break;
198                    case gig::dimension_sostenutopedal: // Sostenuto Pedal (MIDI Controller 66)
199                        cout << "SOSTENUTOPEDAL";
200                        break;
201                    case gig::dimension_softpedal: // Soft Pedal (MIDI Controller 67)
202                        cout << "SOFTPEDAL";
203                        break;
204                    case gig::dimension_genpurpose5: // General Purpose Controller 5 (Button, MIDI Controller 80)
205                        cout << "GENPURPOSE5";
206                        break;
207                    case gig::dimension_genpurpose6: // General Purpose Controller 6 (Button, MIDI Controller 81)
208                        cout << "GENPURPOSE6";
209                        break;
210                    case gig::dimension_genpurpose7: // General Purpose Controller 7 (Button, MIDI Controller 82)
211                        cout << "GENPURPOSE7";
212                        break;
213                    case gig::dimension_genpurpose8: // General Purpose Controller 8 (Button, MIDI Controller 83)
214                        cout << "GENPURPOSE8";
215                        break;
216                    case gig::dimension_effect1depth: // Effect 1 Depth (MIDI Controller 91)
217                        cout << "EFFECT1DEPTH";
218                        break;
219                    case gig::dimension_effect2depth: // Effect 2 Depth (MIDI Controller 92)
220                        cout << "EFFECT2DEPTH";
221                        break;
222                    case gig::dimension_effect3depth: // Effect 3 Depth (MIDI Controller 93)
223                        cout << "EFFECT3DEPTH";
224                        break;
225                    case gig::dimension_effect4depth: // Effect 4 Depth (MIDI Controller 94)
226                        cout << "EFFECT4DEPTH";
227                        break;
228                    case gig::dimension_effect5depth:  // Effect 5 Depth (MIDI Controller 95)
229                        cout << "EFFECT5DEPTH";
230                        break;
231                    default:
232                        cout << "UNKNOWN - please report this !";
233                        break;
234                }
235                cout << ", Bits=" << (uint) DimensionDef.bits << ", Zones=" << (uint) DimensionDef.zones << endl;
236            }
237    
238          PrintDimensionRegions(pRegion);          PrintDimensionRegions(pRegion);
239    
240          pRegion = instr->GetNextRegion();          pRegion = instr->GetNextRegion();
# Line 165  void PrintDimensionRegions(gig::Region* Line 267  void PrintDimensionRegions(gig::Region*
267          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;
268          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;
269          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;
270            cout << "                VelocityResponseCurve=";
271            switch (pDimensionRegion->VelocityResponseCurve) {
272                case gig::curve_type_nonlinear:
273                    cout << "NONLINEAR";
274                    break;
275                case gig::curve_type_linear:
276                    cout << "LINEAR";
277                    break;
278                case gig::curve_type_special:
279                    cout << "SPECIAL";
280                    break;
281                case gig::curve_type_unknown:
282                default:
283                    cout << "UNKNOWN - please report this !";
284            }
285            cout << ", VelocityResponseDepth=" << (int) pDimensionRegion->VelocityResponseDepth << ", VelocityResponseCurveScaling=" << (int) pDimensionRegion->VelocityResponseCurveScaling << endl;
286    
287          dimensionRegions++;          dimensionRegions++;
288      }      }

Legend:
Removed from v.24  
changed lines
  Added in v.231

  ViewVC Help
Powered by ViewVC