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

#include <modules_comp.h>

Inheritance diagram for calf_plugins::multibandgate_audio_module:
calf_plugins::audio_module< multibandgate_metadata > calf_plugins::frequency_response_line_graph calf_plugins::multibandgate_metadata calf_plugins::audio_module_iface calf_plugins::line_graph_iface calf_plugins::plugin_metadata< multibandgate_metadata > calf_plugins::plugin_metadata_iface

Public Member Functions

 multibandgate_audio_module ()
void activate ()
 LADSPA-esque activate function, except it is called after ports are connected, not before.
void deactivate ()
 LADSPA-esque deactivate function.
void params_changed ()
 Called when params are changed (before processing).
uint32_t process (uint32_t offset, uint32_t numsamples, uint32_t inputs_mask, uint32_t outputs_mask)
 The audio processing loop; assumes numsamples <= MAX_SAMPLE_RUN, for larger buffers, call process_slice.
void set_sample_rate (uint32_t sr)
 Set sample rate for the plugin.
const expander_audio_moduleget_strip_by_param_index (int index) const
virtual bool get_graph (int index, int subindex, int phase, float *data, int points, cairo_iface *context, int *mode) const
virtual bool get_dot (int index, int subindex, int phase, float &x, float &y, int &size, cairo_iface *context) const
virtual bool get_gridline (int index, int subindex, int phase, float &pos, bool &vertical, std::string &legend, cairo_iface *context) const
bool get_layers (int index, int generation, unsigned int &layers) const
Public Member Functions inherited from calf_plugins::audio_module< multibandgate_metadata >
 audio_module ()
void note_on (int channel, int note, int velocity)
 Handle MIDI Note On.
void note_off (int channel, int note, int velocity)
 Handle MIDI Note Off.
void program_change (int channel, int program)
 Handle MIDI Program Change.
void control_change (int channel, int controller, int value)
 Handle MIDI Control Change.
void pitch_bend (int channel, int value)
void channel_pressure (int channel, int value)
void execute (int cmd_no)
 Execute menu command with given number.
virtual char * configure (const char *key, const char *value)
 DSSI configure call.
void send_configures (send_configure_iface *sci)
 Send all understood configure vars (none by default).
int send_status_updates (send_updates_iface *sui, int last_serial)
 Send all supported status vars (none by default).
void params_reset ()
 Reset parameter values for epp:trigger type parameters (ones activated by oneshot push button instead of check box).
void post_instantiate (uint32_t)
 Called after instantiating (after all the feature pointers are set - including interfaces like progress_report_iface).
uint32_t message_run (const void *valid_ports, void *output_ports)
virtual void get_port_arrays (float **&ins_ptrs, float **&outs_ptrs, float **&params_ptrs)
 Return the array of input port pointers.
virtual const plugin_metadata_ifaceget_metadata_iface () const
 Return metadata object.
virtual void set_progress_report_iface (progress_report_iface *iface)
 Set the progress report interface to communicate progress to.
void zero_by_mask (uint32_t mask, uint32_t offset, uint32_t nsamples)
 utility function: zero port values if mask is 0
uint32_t process_slice (uint32_t offset, uint32_t end)
 utility function: call process, and if it returned zeros in output masks, zero out the relevant output port buffers
virtual const line_graph_ifaceget_line_graph_iface () const
virtual const phase_graph_ifaceget_phase_graph_iface () const
Public Member Functions inherited from calf_plugins::audio_module_iface
virtual ~audio_module_iface ()
Public Member Functions inherited from calf_plugins::frequency_response_line_graph
virtual float freq_gain (int index, double freq) const
virtual std::string get_crosshair_label (int x, int y, int sx, int sy, float q, int dB, int name, int note, int cents) const
Public Member Functions inherited from calf_plugins::line_graph_iface
virtual bool get_moving (int index, int subindex, int &direction, float *data, int x, int y, int &offset, uint32_t &color) const
virtual ~line_graph_iface ()
 Standard destructor to make compiler happy.

Public Attributes

uint32_t srate
bool is_active
Public Attributes inherited from calf_plugins::audio_module< multibandgate_metadata >
float * ins [(multibandgate_metadata::in_count !=0) ? multibandgate_metadata::in_count :1]
float * outs [(multibandgate_metadata::out_count !=0) ? multibandgate_metadata::out_count :1]
float * params [multibandgate_metadata::param_count]
bool questionable_data_reported_in
bool questionable_data_reported_out
progress_report_ifaceprogress_report
Public Attributes inherited from calf_plugins::frequency_response_line_graph
bool redraw_graph

Private Types

typedef multibandgate_audio_module AM

Private Attributes

bool solo [strips]
float xin [2]
bool no_solo
expander_audio_module gate [strips]
dsp::crossover crossover
dsp::bypass bypass
int mode
int page
int bypass_
int redraw
vumeters meters

Static Private Attributes

static const int strips = 4

Additional Inherited Members

Public Types inherited from calf_plugins::audio_module< multibandgate_metadata >
typedef multibandgate_metadata metadata_type

Member Typedef Documentation

◆ AM

Constructor & Destructor Documentation

◆ multibandgate_audio_module()

multibandgate_audio_module::multibandgate_audio_module ( )

Member Function Documentation

◆ activate()

void multibandgate_audio_module::activate ( )
virtual

LADSPA-esque activate function, except it is called after ports are connected, not before.

Reimplemented from calf_plugins::audio_module< multibandgate_metadata >.

◆ deactivate()

void multibandgate_audio_module::deactivate ( )
virtual

LADSPA-esque deactivate function.

Reimplemented from calf_plugins::audio_module< multibandgate_metadata >.

◆ get_dot()

bool multibandgate_audio_module::get_dot ( int index,
int subindex,
int phase,
float & x,
float & y,
int & size,
cairo_iface * context ) const
virtual

Obtain subindex'th dot of parameter 'index'

Parameters
indexparameter/dot number (usually tied to particular plugin control port)
subindexdot number (there may be multiple dots graphs for one parameter)
phase0 if in cache phase or 1 if in realtime phase

Reimplemented from calf_plugins::line_graph_iface.

◆ get_graph()

bool multibandgate_audio_module::get_graph ( int index,
int subindex,
int phase,
float * data,
int points,
cairo_iface * context,
int * mode ) const
virtual

Obtain subindex'th graph of parameter 'index'

Parameters
indexparameter/graph number (usually tied to particular plugin control port)
subindexgraph number (there may be multiple overlaid graphs for one parameter, eg. for monosynth 2x12dB filters)
phase0 if in cache phase or 1 if in realtime phase
databuffer for normalized output values
pointsnumber of points to fill
contextcairo context to adjust (for multicolour graphs etc.)
Return values
truegraph data was returned; subindex+1 graph may or may not be available
falsegraph data was not returned; subindex+1 graph does not exist either

Reimplemented from calf_plugins::frequency_response_line_graph.

◆ get_gridline()

bool multibandgate_audio_module::get_gridline ( int index,
int subindex,
int phase,
float & pos,
bool & vertical,
std::string & legend,
cairo_iface * context ) const
virtual

Obtain subindex'th dot of parameter 'index'

Parameters
indexparameter/dot number (usually tied to particular plugin control port)
subindexdot number (there may be multiple dots graphs for one parameter)
phase0 if in cache phase or 1 if in realtime phase

Reimplemented from calf_plugins::frequency_response_line_graph.

◆ get_layers()

bool multibandgate_audio_module::get_layers ( int index,
int generation,
unsigned int & layers ) const
virtual

Return which layers need to be redrawn in the next GTK drawing cycle

Parameters
indexParameter/graph identifier (usually tied to particular plugin control port)
generationThe overall amount of drawing cycles since the last full refresh of all surfaces
layersBitmask defining the layers to be redrawn (see layers_flags above)
Return values
truethere's at least one layer to be redrawn; false nothing to draw in this cycle

Reimplemented from calf_plugins::frequency_response_line_graph.

◆ get_strip_by_param_index()

const expander_audio_module * multibandgate_audio_module::get_strip_by_param_index ( int index) const

◆ params_changed()

void multibandgate_audio_module::params_changed ( )
virtual

Called when params are changed (before processing).

Reimplemented from calf_plugins::audio_module< multibandgate_metadata >.

◆ process()

uint32_t multibandgate_audio_module::process ( uint32_t offset,
uint32_t numsamples,
uint32_t inputs_mask,
uint32_t outputs_mask )
virtual

The audio processing loop; assumes numsamples <= MAX_SAMPLE_RUN, for larger buffers, call process_slice.

Implements calf_plugins::audio_module_iface.

◆ set_sample_rate()

void multibandgate_audio_module::set_sample_rate ( uint32_t sr)
virtual

Set sample rate for the plugin.

Reimplemented from calf_plugins::audio_module< multibandgate_metadata >.

Member Data Documentation

◆ bypass

dsp::bypass calf_plugins::multibandgate_audio_module::bypass
private

◆ bypass_

int calf_plugins::multibandgate_audio_module::bypass_
private

◆ crossover

dsp::crossover calf_plugins::multibandgate_audio_module::crossover
private

◆ gate

expander_audio_module calf_plugins::multibandgate_audio_module::gate[strips]
private

◆ is_active

bool calf_plugins::multibandgate_audio_module::is_active

◆ meters

vumeters calf_plugins::multibandgate_audio_module::meters
private

◆ mode

int calf_plugins::multibandgate_audio_module::mode
private

◆ no_solo

bool calf_plugins::multibandgate_audio_module::no_solo
private

◆ page

int calf_plugins::multibandgate_audio_module::page
private

◆ redraw

int calf_plugins::multibandgate_audio_module::redraw
mutableprivate

◆ solo

bool calf_plugins::multibandgate_audio_module::solo[strips]
private

◆ srate

uint32_t calf_plugins::multibandgate_audio_module::srate

◆ strips

const int calf_plugins::multibandgate_audio_module::strips = 4
staticprivate

◆ xin

float calf_plugins::multibandgate_audio_module::xin[2]
private

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