OpenWareLaboratory
VoiceAllocatorSignalGenerator< Allocator, SynthVoice, VOICES > Class Template Reference
Inheritance diagram for VoiceAllocatorSignalGenerator< Allocator, SynthVoice, VOICES >:
Collaboration diagram for VoiceAllocatorSignalGenerator< Allocator, SynthVoice, VOICES >:

Public Member Functions

float generate ()
 Produce the next consecutive sample. More...
 
void generate (FloatArray output)
 Produce a block of samples. More...
 
template<typename... Args>
 VoiceAllocatorSignalGenerator (FloatArray buffer, Args &&... args)
 
virtual ~VoiceAllocatorSignalGenerator ()
 

Static Public Member Functions

static MyClasscreate (size_t blocksize)
 
static void destroy (MyClass *obj)
 

Protected Attributes

FloatArray buffer
 

Detailed Description

template<class Allocator, class SynthVoice, int VOICES>
class VoiceAllocatorSignalGenerator< Allocator, SynthVoice, VOICES >

Definition at line 151 of file VoiceAllocator.h.

Constructor & Destructor Documentation

◆ VoiceAllocatorSignalGenerator()

template<class Allocator , class SynthVoice , int VOICES>
template<typename... Args>
VoiceAllocatorSignalGenerator< Allocator, SynthVoice, VOICES >::VoiceAllocatorSignalGenerator ( FloatArray  buffer,
Args &&...  args 
)
inline

Definition at line 158 of file VoiceAllocator.h.

◆ ~VoiceAllocatorSignalGenerator()

template<class Allocator , class SynthVoice , int VOICES>
virtual VoiceAllocatorSignalGenerator< Allocator, SynthVoice, VOICES >::~VoiceAllocatorSignalGenerator ( )
inlinevirtual

Definition at line 160 of file VoiceAllocator.h.

Member Function Documentation

◆ create()

template<class Allocator , class SynthVoice , int VOICES>
static MyClass* VoiceAllocatorSignalGenerator< Allocator, SynthVoice, VOICES >::create ( size_t  blocksize)
inlinestatic

◆ destroy()

template<class Allocator , class SynthVoice , int VOICES>
static void VoiceAllocatorSignalGenerator< Allocator, SynthVoice, VOICES >::destroy ( MyClass obj)
inlinestatic

◆ generate() [1/2]

template<class Allocator , class SynthVoice , int VOICES>
float VoiceAllocatorSignalGenerator< Allocator, SynthVoice, VOICES >::generate ( )
inlinevirtual

Produce the next consecutive sample.

Reimplemented from SignalGenerator.

Definition at line 161 of file VoiceAllocator.h.

◆ generate() [2/2]

template<class Allocator , class SynthVoice , int VOICES>
void VoiceAllocatorSignalGenerator< Allocator, SynthVoice, VOICES >::generate ( FloatArray  output)
inlinevirtual

Produce a block of samples.

Reimplemented from SignalGenerator.

Definition at line 167 of file VoiceAllocator.h.

References FloatArray::add(), and VoiceAllocatorSignalGenerator< Allocator, SynthVoice, VOICES >::buffer.

Field Documentation

◆ buffer


The documentation for this class was generated from the following file: