35 |
#include "../common/ResourceManager.h" |
#include "../common/ResourceManager.h" |
36 |
#include "../drivers/audio/AudioOutputDevice.h" |
#include "../drivers/audio/AudioOutputDevice.h" |
37 |
#include "common/Event.h" |
#include "common/Event.h" |
38 |
|
#include "common/Note.h" |
39 |
#include "common/SignalUnitRack.h" |
#include "common/SignalUnitRack.h" |
40 |
#include "common/InstrumentScriptVM.h" |
#include "common/InstrumentScriptVM.h" |
41 |
|
|
75 |
/** |
/** |
76 |
* Returns event with the given event ID. |
* Returns event with the given event ID. |
77 |
*/ |
*/ |
78 |
RTList<Event>::Iterator EventByID(int id) { |
RTList<Event>::Iterator EventByID(event_id_t id) { |
79 |
return pEventPool->fromID(id); |
return pEventPool->fromID(id); |
80 |
} |
} |
81 |
|
|
82 |
|
virtual NoteBase* NoteByID(note_id_t id) = 0; |
83 |
|
|
84 |
float Random() { |
float Random() { |
85 |
RandomSeed = RandomSeed * 1103515245 + 12345; // classic pseudo random number generator |
RandomSeed = RandomSeed * 1103515245 + 12345; // classic pseudo random number generator |
86 |
return RandomSeed / 4294967296.0f; |
return RandomSeed / 4294967296.0f; |
152 |
virtual void ProcessChannelPressure(EngineChannel* pEngineChannel, Pool<Event>::Iterator& itChannelPressureEvent) = 0; |
virtual void ProcessChannelPressure(EngineChannel* pEngineChannel, Pool<Event>::Iterator& itChannelPressureEvent) = 0; |
153 |
virtual void ProcessPolyphonicKeyPressure(EngineChannel* pEngineChannel, Pool<Event>::Iterator& itNotePressureEvent) = 0; |
virtual void ProcessPolyphonicKeyPressure(EngineChannel* pEngineChannel, Pool<Event>::Iterator& itNotePressureEvent) = 0; |
154 |
virtual int GetMinFadeOutSamples() = 0; |
virtual int GetMinFadeOutSamples() = 0; |
155 |
|
virtual note_id_t LaunchNewNote(LinuxSampler::EngineChannel* pEngineChannel, Event* pNoteOnEvent) = 0; |
156 |
virtual void CreateInstrumentScriptVM(); |
virtual void CreateInstrumentScriptVM(); |
157 |
|
|
158 |
private: |
private: |