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

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

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

revision 2836 by persson, Sun Aug 23 05:57:18 2015 UTC revision 3048 by schoenebeck, Fri Nov 25 18:34:45 2016 UTC
# Line 214  inline string parseNumberRange(const str Line 214  inline string parseNumberRange(const str
214      stripWhiteSpace(w);      stripWhiteSpace(w);
215      stripLeftOrRightMarkerAtEnd(w);      stripLeftOrRightMarkerAtEnd(w);
216      string result = parseNumberRangeAtEnd(w, from, to);      string result = parseNumberRangeAtEnd(w, from, to);
217      if (result == w) return s; // parse error occured, return original input s      if (result == w) return s; // parse error occurred, return original input s
218      stripWhiteSpace(result);      stripWhiteSpace(result);
219      return result;      return result;
220  }  }
# Line 508  static void loadKorgFile(const string& f Line 508  static void loadKorgFile(const string& f
508          exit(EXIT_FAILURE);          exit(EXIT_FAILURE);
509      } catch (...) {      } catch (...) {
510          cerr << "Failed opening input file '" << filename << "':" << endl;          cerr << "Failed opening input file '" << filename << "':" << endl;
511          cerr << "Unknown exception occured while trying to access input file." << endl;          cerr << "Unknown exception occurred while trying to access input file." << endl;
512          exit(EXIT_FAILURE);          exit(EXIT_FAILURE);
513      }      }
514  }  }
# Line 755  int main(int argc, char *argv[]) { Line 755  int main(int argc, char *argv[]) {
755                          dimRgn->DimensionUpperLimits[iVelocityDimensionIndex] = velRange.high; // gig v3 and above                          dimRgn->DimensionUpperLimits[iVelocityDimensionIndex] = velRange.high; // gig v3 and above
756                      }                      }
757    
758                        dimRgn->FineTune = kmpRegion->Tune;
759    
760                      // assign the respective gig sample to this dimension region                      // assign the respective gig sample to this dimension region
761                      gig::Sample* gigSample = findOrCreateGigSampleForKSFRegion(kmpRegion);                      gig::Sample* gigSample = findOrCreateGigSampleForKSFRegion(kmpRegion);
762                      dimRgn->pSample = gigSample; // might be NULL (if Korg sample had zero size, or if the original instrument's internal samples were used)                      dimRgn->pSample = gigSample; // might be NULL (if Korg sample had zero size, or if the original instrument's internal samples were used)

Legend:
Removed from v.2836  
changed lines
  Added in v.3048

  ViewVC Help
Powered by ViewVC