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

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

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

revision 2019 by iliev, Tue Oct 27 18:34:06 2009 UTC revision 2020 by iliev, Fri Oct 30 16:25:27 2009 UTC
# Line 114  void PrintSamples(sf2::File* sf) { Line 114  void PrintSamples(sf2::File* sf) {
114      cout << "Samples (" << sf->GetSampleCount() << "): " << endl;      cout << "Samples (" << sf->GetSampleCount() << "): " << endl;
115      for (int i = 0; i < sf->GetSampleCount(); i++) {      for (int i = 0; i < sf->GetSampleCount(); i++) {
116          sf2::Sample* s = sf->GetSample(i);          sf2::Sample* s = sf->GetSample(i);
117          cout << "\t" << s->Name << " (" << "SampleRate: " << s->SampleRate;          cout << "\t" << s->Name << " (Depth: " << ((s->GetFrameSize() / s->GetChannelCount()) * 8);
118            cout << " SampleRate: " << s->SampleRate;
119          cout << ", Pitch: " << ((int)s->OriginalPitch);          cout << ", Pitch: " << ((int)s->OriginalPitch);
120          cout << ", Pitch Correction: " << ((int)s->PitchCorrection )<< endl;          cout << ", Pitch Correction: " << ((int)s->PitchCorrection )<< endl;
121          cout << "\t\tStart: " << s->Start << ", End: " << s->End;          cout << "\t\tStart: " << s->Start << ", End: " << s->End;
# Line 160  void PrintRegion(int idx, sf2::Region* r Line 161  void PrintRegion(int idx, sf2::Region* r
161      if (idx == -1) cout << "\t\tGlobal Region " << endl;      if (idx == -1) cout << "\t\tGlobal Region " << endl;
162      else cout << "\t\tRegion " << idx << endl;      else cout << "\t\tRegion " << idx << endl;
163      sf2::Sample* s = reg->GetSample();      sf2::Sample* s = reg->GetSample();
164      if (s != NULL) cout << "\t\t    Sample: " << s->Name << endl;      if (s != NULL) {
165            cout << "\t\t    Sample: " << s->Name << ", Fine Tune: " << reg->fineTune;
166            if (reg->coarseTune) cout  << ", Coarse Tune: " << reg->coarseTune;
167            if (reg->overridingRootKey != -1) cout  << ", Overriding Root Key: " << reg->overridingRootKey;
168            if (reg->HasLoop) {
169                cout << ", Loop Start: " << reg->LoopStart << ", Loop End: " << reg->LoopEnd;
170            }
171            cout << endl;
172        }
173      cout << "\t\t    Key range=";      cout << "\t\t    Key range=";
174      if (reg->loKey == NONE && reg->hiKey == NONE) cout << "None";      if (reg->loKey == NONE && reg->hiKey == NONE) cout << "None";
175      else cout << reg->loKey << "-" << reg->hiKey;      else cout << reg->loKey << "-" << reg->hiKey;
# Line 260  string GetControllerSource(sf2::Modulato Line 269  string GetControllerSource(sf2::Modulato
269  }  }
270    
271  string Revision() {  string Revision() {
272      string s = "$Revision: 1.1 $";      string s = "$Revision: 1.2 $";
273      return s.substr(11, s.size() - 13); // cut dollar signs, spaces and CVS macro keyword      return s.substr(11, s.size() - 13); // cut dollar signs, spaces and CVS macro keyword
274  }  }
275    

Legend:
Removed from v.2019  
changed lines
  Added in v.2020

  ViewVC Help
Powered by ViewVC