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; |
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; |
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 |
|
|