LMMS
Loading...
Searching...
No Matches
calf_plugins::mod_matrix_metadata Class Reference

Implementation of table_metadata_iface providing metadata for mod matrices. More...

#include <giface.h>

Inheritance diagram for calf_plugins::mod_matrix_metadata:
calf_plugins::table_metadata_iface

Public Types

enum  mapping_mode {
  map_positive , map_bipolar , map_negative , map_squared ,
  map_squared_bipolar , map_antisquared , map_antisquared_bipolar , map_parabola ,
  map_type_count
}
 Mapping modes. More...

Public Member Functions

 mod_matrix_metadata (unsigned int _rows, const char **_src_names, const char **_dest_names)
virtual const table_column_infoget_table_columns () const
 retrieve the table layout for specific parameter
virtual uint32_t get_table_rows () const
 return the fixed number of rows, or 0 if the number of rows is variable
void get_configure_vars (std::vector< std::string > &names) const
 Return a list of configure variables used by the modulation matrix.

Public Attributes

const char ** mod_src_names
const char ** mod_dest_names

Protected Attributes

table_column_info table_columns [6]
 Column descriptions for table widget.
unsigned int matrix_rows

Detailed Description

Implementation of table_metadata_iface providing metadata for mod matrices.

Member Enumeration Documentation

◆ mapping_mode

Mapping modes.

Enumerator
map_positive 

0..100%

map_bipolar 

-100%..100%

map_negative 

-100%..0%

map_squared 

x^2

map_squared_bipolar 

x^2 scaled to -100%..100%

map_antisquared 

1-(1-x)^2 scaled to 0..100%

map_antisquared_bipolar 

1-(1-x)^2 scaled to -100..100%

map_parabola 

inverted parabola (peaks at 0.5, then decreases to 0)

map_type_count 

Constructor & Destructor Documentation

◆ mod_matrix_metadata()

mod_matrix_metadata::mod_matrix_metadata ( unsigned int _rows,
const char ** _src_names,
const char ** _dest_names )

Member Function Documentation

◆ get_configure_vars()

void mod_matrix_metadata::get_configure_vars ( std::vector< std::string > & names) const

Return a list of configure variables used by the modulation matrix.

◆ get_table_columns()

const table_column_info * mod_matrix_metadata::get_table_columns ( ) const
virtual

retrieve the table layout for specific parameter

Implements calf_plugins::table_metadata_iface.

◆ get_table_rows()

uint32_t mod_matrix_metadata::get_table_rows ( ) const
virtual

return the fixed number of rows, or 0 if the number of rows is variable

Implements calf_plugins::table_metadata_iface.

Member Data Documentation

◆ matrix_rows

unsigned int calf_plugins::mod_matrix_metadata::matrix_rows
protected

◆ mod_dest_names

const char ** calf_plugins::mod_matrix_metadata::mod_dest_names

◆ mod_src_names

const char** calf_plugins::mod_matrix_metadata::mod_src_names

◆ table_columns

table_column_info calf_plugins::mod_matrix_metadata::table_columns[6]
protected

Column descriptions for table widget.


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