iPlug2 - C++ Audio Plug-in Framework
Loading...
Searching...
No Matches
Classes | Enumerations | Variables
VoiceAllocator.h File Reference
#include <array>
#include <vector>
#include <stdint.h>
#include <functional>
#include <bitset>
#include "IPlugLogger.h"
#include "IPlugQueue.h"
#include "SynthVoice.h"

Go to the source code of this file.

Classes

struct  VoiceAddress
 
struct  VoiceInputEvent
 A VoiceInputEvent describes a change in input to be applied to one more more voices. More...
 
class  VoiceAllocator
 

Enumerations

enum  EVoiceAction {
  kNullAction = 0 , kNoteOnAction , kNoteOffAction , kPitchBendAction ,
  kPressureAction , kTimbreAction , kSustainAction , kControllerAction ,
  kProgramChangeAction
}
 

Variables

const uint8_t kAllZones = UCHAR_MAX
 
const uint8_t kAllChannels = UCHAR_MAX
 
const uint8_t kAllKeys = UCHAR_MAX
 
const uint8_t kVoicesBusy = 1 << 0
 
const uint8_t kVoicesMostRecent = 1 << 1
 
const uint8_t kVoicesAll = 1 << 2
 

Detailed Description

Definition in file VoiceAllocator.h.


Class Documentation

◆ VoiceAddress

struct VoiceAddress

Definition at line 34 of file VoiceAllocator.h.

Class Members
uint8_t mChannel
uint8_t mFlags
uint8_t mKey
uint8_t mZone

◆ VoiceInputEvent

struct VoiceInputEvent

A VoiceInputEvent describes a change in input to be applied to one more more voices.

mAddress specifies which voices should receive the change. mAction is the type of property change. mControllerNumber is the controller number to change if mAction is kController. mValue is the new value associated with the change. mSampleOffset is the number of samples into a processing buffer at which the change should occur.

Definition at line 70 of file VoiceAllocator.h.

Class Members
EVoiceAction mAction
VoiceAddress mAddress
int mControllerNumber
int mSampleOffset
float mValue

Enumeration Type Documentation

◆ EVoiceAction

enum EVoiceAction

Definition at line 51 of file VoiceAllocator.h.

Variable Documentation

◆ kAllChannels

const uint8_t kAllChannels = UCHAR_MAX

Definition at line 43 of file VoiceAllocator.h.

◆ kAllKeys

const uint8_t kAllKeys = UCHAR_MAX

Definition at line 44 of file VoiceAllocator.h.

◆ kAllZones

const uint8_t kAllZones = UCHAR_MAX

Definition at line 42 of file VoiceAllocator.h.

◆ kVoicesAll

const uint8_t kVoicesAll = 1 << 2

Definition at line 49 of file VoiceAllocator.h.

◆ kVoicesBusy

const uint8_t kVoicesBusy = 1 << 0

Definition at line 47 of file VoiceAllocator.h.

◆ kVoicesMostRecent

const uint8_t kVoicesMostRecent = 1 << 1

Definition at line 48 of file VoiceAllocator.h.