/[svn]/linuxsampler/trunk/src/engines/gig/Engine.h
ViewVC logotype

Contents of /linuxsampler/trunk/src/engines/gig/Engine.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2600 - (show annotations) (download) (as text)
Sat Jun 7 00:16:03 2014 UTC (9 years, 10 months ago) by schoenebeck
File MIME type: text/x-c++hdr
File size: 4114 byte(s)
* Implemented built-in instrument script function "set_controller()".
* Fixed built-in script functions "ignore_event()" and
  "ignore_controller()".
* Added extended instrument script VM for the Gigasampler/GigaStudio format
  sampler engine, which extends the general instrument script VM with Giga
  format specific variables and functions.
* Giga format instrument scripts: added built-in script int constant
  variables $GIG_DIM_CHANNEL, $GIG_DIM_LAYER, $GIG_DIM_VELOCITY,
  $GIG_DIM_AFTERTOUCH, $GIG_DIM_RELEASE, $GIG_DIM_KEYBOARD,
  $GIG_DIM_ROUNDROBIN, $GIG_DIM_RANDOM, $GIG_DIM_SMARTMIDI,
  $GIG_DIM_ROUNDROBINKEY, $GIG_DIM_MODWHEEL, $GIG_DIM_BREATH,
  $GIG_DIM_FOOT, $GIG_DIM_PORTAMENTOTIME, $GIG_DIM_EFFECT1,
  $GIG_DIM_EFFECT2, $GIG_DIM_GENPURPOSE1, $GIG_DIM_GENPURPOSE2,
  $GIG_DIM_GENPURPOSE3, $GIG_DIM_GENPURPOSE4, $GIG_DIM_SUSTAIN,
  $GIG_DIM_PORTAMENTO, $GIG_DIM_SOSTENUTO, $GIG_DIM_SOFT,
  $GIG_DIM_GENPURPOSE5, $GIG_DIM_GENPURPOSE6, $GIG_DIM_GENPURPOSE7,
  $GIG_DIM_GENPURPOSE8, $GIG_DIM_EFFECT1DEPTH, $GIG_DIM_EFFECT2DEPTH,
  $GIG_DIM_EFFECT3DEPTH, $GIG_DIM_EFFECT4DEPTH, $GIG_DIM_EFFECT5DEPTH.
* Giga format instrument scripts: Implemented built-in script function
  "gig_set_dim_zone(event_id, dimension, zone)", which allows to override
  dimension zone(s) for new voices.
* Bumped version (1.0.0.svn45).

1 /***************************************************************************
2 * *
3 * LinuxSampler - modular, streaming capable sampler *
4 * *
5 * Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck *
6 * Copyright (C) 2005-2008 Christian Schoenebeck *
7 * Copyright (C) 2009-2010 Christian Schoenebeck and Grigor Iliev *
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 * This program is distributed in the hope that it will be useful, *
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
17 * GNU General Public License for more details. *
18 * *
19 * You should have received a copy of the GNU General Public License *
20 * along with this program; if not, write to the Free Software *
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, *
22 * MA 02111-1307 USA *
23 ***************************************************************************/
24
25 #ifndef __LS_GIG_ENGINE_H__
26 #define __LS_GIG_ENGINE_H__
27
28 #include "DiskThread.h"
29 #include "../EngineBase.h"
30 #include "Voice.h"
31 #include <gig.h>
32
33 namespace LinuxSampler { namespace gig {
34
35 class Engine: public LinuxSampler::EngineBase<Voice, ::gig::Region, ::gig::DimensionRegion, DiskThread, InstrumentResourceManager, ::gig::Instrument> {
36 public:
37 Engine() { }
38 virtual ~Engine() { }
39 // implementation of abstract methods derived from class 'LinuxSampler::Engine'
40 virtual bool DiskStreamSupported();
41 virtual String Description();
42 virtual String Version();
43
44 virtual Format GetEngineFormat();
45
46 virtual void ProcessControlChange (
47 LinuxSampler::EngineChannel* pEngineChannel,
48 Pool<Event>::Iterator& itControlChangeEvent
49 ) OVERRIDE;
50 virtual void ProcessChannelPressure(LinuxSampler::EngineChannel* pEngineChannel, Pool<Event>::Iterator& itChannelPressureEvent) OVERRIDE;
51 virtual void ProcessPolyphonicKeyPressure(LinuxSampler::EngineChannel* pEngineChannel, Pool<Event>::Iterator& itNotePressureEvent) OVERRIDE;
52 virtual LinuxSampler::InstrumentScriptVM* CreateInstrumentScriptVM() OVERRIDE;
53 friend class Voice;
54
55 protected:
56 virtual DiskThread* CreateDiskThread();
57
58 virtual Pool<Voice>::Iterator LaunchVoice (
59 LinuxSampler::EngineChannel* pEngineChannel,
60 Pool<Event>::Iterator& itNoteOnEvent,
61 int iLayer,
62 bool ReleaseTriggerVoice,
63 bool VoiceStealing,
64 bool HandleKeyGroupConflicts
65 );
66
67 virtual void TriggerNewVoices (
68 LinuxSampler::EngineChannel* pEngineChannel,
69 RTList<Event>::Iterator& itNoteOnEvent,
70 bool HandleKeyGroupConflicts
71 );
72
73 void TriggerReleaseVoices (
74 LinuxSampler::EngineChannel* pEngineChannel,
75 RTList<Event>::Iterator& itNoteOffEvent
76 );
77 };
78
79 }} // namespace LinuxSampler::gig
80
81 #endif /* __LS_GIG_ENGINE_H__ */
82

  ViewVC Help
Powered by ViewVC