2 |
* * |
* * |
3 |
* LinuxSampler - modular, streaming capable sampler * |
* LinuxSampler - modular, streaming capable sampler * |
4 |
* * |
* * |
5 |
* Copyright (C) 2003 by Benno Senoner and Christian Schoenebeck * |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
6 |
* * |
* * |
7 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
8 |
* 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 * |
34 |
#include "../../common/ConditionServer.h" |
#include "../../common/ConditionServer.h" |
35 |
#include "../common/Engine.h" |
#include "../common/Engine.h" |
36 |
#include "../common/Event.h" |
#include "../common/Event.h" |
37 |
|
#include "../common/BiquadFilter.h" |
38 |
#include "../../lib/fileloader/libgig/gig.h" |
#include "../../lib/fileloader/libgig/gig.h" |
39 |
#include "InstrumentResourceManager.h" |
#include "InstrumentResourceManager.h" |
40 |
#include "../../network/lscp.h" |
#include "../../network/lscp.h" |
41 |
|
|
42 |
#define PITCHBEND_SEMITONES 12 |
#define PITCHBEND_SEMITONES 12 |
43 |
#define MAX_AUDIO_VOICES 64 |
#define MAX_AUDIO_VOICES 128 |
44 |
|
|
45 |
namespace LinuxSampler { namespace gig { |
namespace LinuxSampler { namespace gig { |
46 |
|
|
81 |
virtual String DiskStreamBufferFillPercentage(); |
virtual String DiskStreamBufferFillPercentage(); |
82 |
virtual String Description(); |
virtual String Description(); |
83 |
virtual String Version(); |
virtual String Version(); |
84 |
|
virtual String EngineName(); |
85 |
|
virtual String InstrumentFileName(); |
86 |
|
virtual int InstrumentIndex(); |
87 |
|
|
88 |
// abstract methods derived from interface class 'InstrumentConsumer' |
// abstract methods derived from interface class 'InstrumentConsumer' |
89 |
virtual void ResourceToBeUpdated(::gig::Instrument* pResource, void*& pUpdateArg); |
virtual void ResourceToBeUpdated(::gig::Instrument* pResource, void*& pUpdateArg); |
112 |
RTEList<Event>* pCCEvents; ///< All control change events for the current audio fragment. |
RTEList<Event>* pCCEvents; ///< All control change events for the current audio fragment. |
113 |
RTEList<Event>* pSynthesisEvents[Event::destination_count]; ///< Events directly affecting synthesis parameter (like pitch, volume and filter). |
RTEList<Event>* pSynthesisEvents[Event::destination_count]; ///< Events directly affecting synthesis parameter (like pitch, volume and filter). |
114 |
float* pSynthesisParameters[Event::destination_count]; ///< Matrix with final synthesis parameters for the current audio fragment which will be used in the main synthesis loop. |
float* pSynthesisParameters[Event::destination_count]; ///< Matrix with final synthesis parameters for the current audio fragment which will be used in the main synthesis loop. |
115 |
|
biquad_param_t* pBasicFilterParameters; ///< Biquad parameters of the basic bandpass filter. |
116 |
|
biquad_param_t* pMainFilterParameters; ///< Main biquad parameters of the individual filter (lowpass / bandpass / highpass). |
117 |
RIFF::File* pRIFF; |
RIFF::File* pRIFF; |
118 |
::gig::File* pGig; |
::gig::File* pGig; |
119 |
::gig::Instrument* pInstrument; |
::gig::Instrument* pInstrument; |
124 |
int ActiveVoiceCountMax; ///< the maximum voice usage since application start |
int ActiveVoiceCountMax; ///< the maximum voice usage since application start |
125 |
bool SuspensionRequested; |
bool SuspensionRequested; |
126 |
ConditionServer EngineDisabled; |
ConditionServer EngineDisabled; |
127 |
|
String InstrumentFile; |
128 |
|
int InstrumentIdx; |
129 |
|
|
130 |
void ProcessNoteOn(Event* pNoteOnEvent); |
void ProcessNoteOn(Event* pNoteOnEvent); |
131 |
void ProcessNoteOff(Event* pNoteOffEvent); |
void ProcessNoteOff(Event* pNoteOffEvent); |
143 |
friend class VCOManipulator; |
friend class VCOManipulator; |
144 |
friend class InstrumentResourceManager; |
friend class InstrumentResourceManager; |
145 |
private: |
private: |
|
//static void AllocateSynthesisParametersMatrix(); |
|
|
|
|
146 |
void DisableAndLock(); |
void DisableAndLock(); |
147 |
}; |
}; |
148 |
|
|