/[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 2584 by schoenebeck, Sat May 31 20:54:39 2014 UTC revision 2593 by schoenebeck, Wed Jun 4 01:59:56 2014 UTC
# Line 4610  namespace { Line 4610  namespace {
4610          scriptPoolFileOffsets.clear();          scriptPoolFileOffsets.clear();
4611      }      }
4612    
4613      /** @brief Add new instrument script slot (gig format extension)      /** @brief Get instrument script (gig format extension).
4614         *
4615         * Returns the real-time instrument script of instrument script slot
4616         * @a index.
4617         *
4618         * @note This is an own format extension which did not exist i.e. in the
4619         * GigaStudio 4 software. It will currently only work with LinuxSampler and
4620         * gigedit.
4621         *
4622         * @param index - instrument script slot index
4623         * @returns script or NULL if index is out of bounds
4624         */
4625        Script* Instrument::GetScriptOfSlot(uint index) {
4626            LoadScripts();
4627            if (index >= pScriptRefs->size()) return NULL;
4628            return pScriptRefs->at(index).script;
4629        }
4630    
4631        /** @brief Add new instrument script slot (gig format extension).
4632       *       *
4633       * Add the given real-time instrument script reference to this instrument,       * Add the given real-time instrument script reference to this instrument,
4634       * which shall be executed by the sampler for for this instrument. The       * which shall be executed by the sampler for for this instrument. The

Legend:
Removed from v.2584  
changed lines
  Added in v.2593

  ViewVC Help
Powered by ViewVC