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

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

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

revision 3731 by schoenebeck, Sat Feb 1 15:35:07 2020 UTC revision 3799 by schoenebeck, Sat Jul 25 09:28:56 2020 UTC
# Line 5696  namespace { Line 5696  namespace {
5696       * still being able to fine tune certain aspects of the script for each       * still being able to fine tune certain aspects of the script for each
5697       * instrument individually.       * instrument individually.
5698       *       *
5699         * @note This is an own format extension which did not exist i.e. in the
5700         * GigaStudio 4 software. It will currently only work with LinuxSampler and
5701         * Gigedit.
5702         *
5703       * @param slot - script slot index of the variable to be retrieved       * @param slot - script slot index of the variable to be retrieved
5704       * @param variable - name of the 'patch' variable in that script       * @param variable - name of the 'patch' variable in that script
5705       */       */
# Line 5727  namespace { Line 5731  namespace {
5731       * still being able to fine tune certain aspects of the script for each       * still being able to fine tune certain aspects of the script for each
5732       * instrument individually.       * instrument individually.
5733       *       *
5734         * @note This is an own format extension which did not exist i.e. in the
5735         * GigaStudio 4 software. It will currently only work with LinuxSampler and
5736         * Gigedit.
5737         *
5738       * @param slot - script slot index of the variable to be retrieved       * @param slot - script slot index of the variable to be retrieved
5739       */       */
5740      std::map<String,String> Instrument::GetScriptPatchVariables(int slot) {      std::map<String,String> Instrument::GetScriptPatchVariables(int slot) {
# Line 5754  namespace { Line 5762  namespace {
5762       * still being able to fine tune certain aspects of the script for each       * still being able to fine tune certain aspects of the script for each
5763       * instrument individually.       * instrument individually.
5764       *       *
5765         * @note This is an own format extension which did not exist i.e. in the
5766         * GigaStudio 4 software. It will currently only work with LinuxSampler and
5767         * Gigedit.
5768         *
5769       * @param slot - script slot index of the variable to be retrieved       * @param slot - script slot index of the variable to be retrieved
5770       * @param variable - name of the 'patch' variable in that script       * @param variable - name of the 'patch' variable in that script
5771       */       */
# Line 5774  namespace { Line 5786  namespace {
5786       * still being able to fine tune certain aspects of the script for each       * still being able to fine tune certain aspects of the script for each
5787       * instrument individually.       * instrument individually.
5788       *       *
5789         * @note This is an own format extension which did not exist i.e. in the
5790         * GigaStudio 4 software. It will currently only work with LinuxSampler and
5791         * Gigedit.
5792         *
5793       * @param slot - script slot index of the variable to be set       * @param slot - script slot index of the variable to be set
5794       * @param variable - name of the 'patch' variable in that script       * @param variable - name of the 'patch' variable in that script
5795       * @param value - overridden initial value for that script variable       * @param value - overridden initial value for that script variable
# Line 5814  namespace { Line 5830  namespace {
5830       * still being able to fine tune certain aspects of the script for each       * still being able to fine tune certain aspects of the script for each
5831       * instrument individually.       * instrument individually.
5832       *       *
5833         * @note This is an own format extension which did not exist i.e. in the
5834         * GigaStudio 4 software. It will currently only work with LinuxSampler and
5835         * Gigedit.
5836         *
5837       * @param slot - script slot index of the variable to be unset       * @param slot - script slot index of the variable to be unset
5838       * @param variable - name of the 'patch' variable in that script       * @param variable - name of the 'patch' variable in that script
5839       */       */
# Line 5938  namespace { Line 5958  namespace {
5958          PianoReleaseMode = orig->PianoReleaseMode;          PianoReleaseMode = orig->PianoReleaseMode;
5959          DimensionKeyRange = orig->DimensionKeyRange;          DimensionKeyRange = orig->DimensionKeyRange;
5960          scriptPoolFileOffsets = orig->scriptPoolFileOffsets;          scriptPoolFileOffsets = orig->scriptPoolFileOffsets;
5961          pScriptRefs = orig->pScriptRefs;          // deep copy of pScriptRefs required (to avoid undefined behaviour)
5962            if (pScriptRefs) delete pScriptRefs;
5963            pScriptRefs = new std::vector<_ScriptPooolRef>;
5964            if (orig->pScriptRefs)
5965                *pScriptRefs = *orig->pScriptRefs;
5966          scriptVars = orig->scriptVars;          scriptVars = orig->scriptVars;
5967                    
5968          // free old midi rules          // free old midi rules

Legend:
Removed from v.3731  
changed lines
  Added in v.3799

  ViewVC Help
Powered by ViewVC