LMMS
Loading...
Searching...
No Matches
rtosc::AutomationMgr Class Reference

#include <automations.h>

Public Member Functions

 AutomationMgr (int slots, int per_slot, int control_points)
 ~AutomationMgr (void)
void createBinding (int slot, const char *path, bool start_midi_learn)
void updateMapping (int slot, int sub)
void setSlot (int slot_id, float value)
void setSlotSub (int slot_id, int sub, float value)
float getSlot (int slot_id)
void clearSlot (int slot_id)
void clearSlotSub (int slot_id, int sub)
void setSlotSubGain (int slot_id, int sub, float f)
float getSlotSubGain (int slot_id, int sub)
void setSlotSubOffset (int slot_id, int sub, float f)
float getSlotSubOffset (int slot_id, int sub)
void setName (int slot_id, const char *msg)
const char * getName (int slot_id)
bool handleMidi (int channel, int cc, int val)
void set_ports (const struct Ports &p)
void set_instance (void *v)
void simpleSlope (int slot, int au, float slope, float offset)
int free_slot (void) const

Public Attributes

AutomationSlotslots
int nslots
int per_slot
int active_slot
int learn_queue_len
struct AutomationMgrImpl * impl
const rtosc::Portsp
voidinstance
std::function< void(const char *)> backend
int damaged

Constructor & Destructor Documentation

◆ AutomationMgr()

AutomationMgr::AutomationMgr ( int slots,
int per_slot,
int control_points )

◆ ~AutomationMgr()

AutomationMgr::~AutomationMgr ( void )

Member Function Documentation

◆ clearSlot()

void AutomationMgr::clearSlot ( int slot_id)

◆ clearSlotSub()

void AutomationMgr::clearSlotSub ( int slot_id,
int sub )

◆ createBinding()

void AutomationMgr::createBinding ( int slot,
const char * path,
bool start_midi_learn )

Create an Automation binding

  • Assumes that each binding takes a new automation slot unless learning a macro
  • Can trigger a MIDI learn (recommended for standalone and not recommended for plugin modes)

◆ free_slot()

int AutomationMgr::free_slot ( void ) const

◆ getName()

const char * AutomationMgr::getName ( int slot_id)

◆ getSlot()

float AutomationMgr::getSlot ( int slot_id)

◆ getSlotSubGain()

float AutomationMgr::getSlotSubGain ( int slot_id,
int sub )

◆ getSlotSubOffset()

float AutomationMgr::getSlotSubOffset ( int slot_id,
int sub )

◆ handleMidi()

bool AutomationMgr::handleMidi ( int channel,
int cc,
int val )

◆ set_instance()

void AutomationMgr::set_instance ( void * v)

◆ set_ports()

void AutomationMgr::set_ports ( const struct Ports & p)

◆ setName()

void AutomationMgr::setName ( int slot_id,
const char * msg )

◆ setSlot()

void AutomationMgr::setSlot ( int slot_id,
float value )

◆ setSlotSub()

void AutomationMgr::setSlotSub ( int slot_id,
int sub,
float value )

◆ setSlotSubGain()

void AutomationMgr::setSlotSubGain ( int slot_id,
int sub,
float f )

◆ setSlotSubOffset()

void AutomationMgr::setSlotSubOffset ( int slot_id,
int sub,
float f )

◆ simpleSlope()

void AutomationMgr::simpleSlope ( int slot,
int au,
float slope,
float offset )

◆ updateMapping()

void AutomationMgr::updateMapping ( int slot,
int sub )

Member Data Documentation

◆ active_slot

int rtosc::AutomationMgr::active_slot

◆ backend

std::function<void(const char *)> rtosc::AutomationMgr::backend

◆ damaged

int rtosc::AutomationMgr::damaged

◆ impl

struct AutomationMgrImpl* rtosc::AutomationMgr::impl

◆ instance

void* rtosc::AutomationMgr::instance

◆ learn_queue_len

int rtosc::AutomationMgr::learn_queue_len

◆ nslots

int rtosc::AutomationMgr::nslots

◆ p

const rtosc::Ports* rtosc::AutomationMgr::p

◆ per_slot

int rtosc::AutomationMgr::per_slot

◆ slots

AutomationSlot* rtosc::AutomationMgr::slots

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