/[svn]/linuxsampler/trunk/src/engines/sfz/EngineChannel.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/sfz/EngineChannel.cpp

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

revision 3732 by schoenebeck, Wed Jan 18 14:52:31 2017 UTC revision 3733 by schoenebeck, Sat Feb 1 18:11:20 2020 UTC
# Line 3  Line 3 
3   *   LinuxSampler - modular, streaming capable sampler                     *   *   LinuxSampler - modular, streaming capable sampler                     *
4   *                                                                         *   *                                                                         *
5   *   Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck    *   *   Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck    *
6   *   Copyright (C) 2005-2009 Christian Schoenebeck                         *   *   Copyright (C) 2005 - 2020 Christian Schoenebeck                       *
7   *   Copyright (C) 2009 - 2012 Christian Schoenebeck and Grigor Iliev      *   *   Copyright (C) 2009 - 2012 Grigor Iliev                                *
8   *   Copyright (C) 2012 - 2016 Christian Schoenebeck and Andreas Persson   *   *   Copyright (C) 2012 - 2016 Andreas Persson                             *
9   *                                                                         *   *                                                                         *
10   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
11   *   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 132  namespace LinuxSampler { namespace sfz { Line 132  namespace LinuxSampler { namespace sfz {
132              ::sfz::Script* script = (!newInstrument->scripts.empty()) ? &newInstrument->scripts[0] : NULL;              ::sfz::Script* script = (!newInstrument->scripts.empty()) ? &newInstrument->scripts[0] : NULL;
133              if (script) {              if (script) {
134                  String sourceCode = script->GetSourceCode();                  String sourceCode = script->GetSourceCode();
135                  LoadInstrumentScript(sourceCode);                  std::map<String,String> patchVars; //TODO: we need to invent some new sfz opcode(s) for 'patch' script variables
136                    LoadInstrumentScript(sourceCode, patchVars);
137              }              }
138          }          }
139          catch (InstrumentManagerException e) {          catch (InstrumentManagerException e) {

Legend:
Removed from v.3732  
changed lines
  Added in v.3733

  ViewVC Help
Powered by ViewVC