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

#include <modules_mod.h>

Inheritance diagram for calf_plugins::rotary_speaker_audio_module:
calf_plugins::audio_module< rotary_speaker_metadata > calf_plugins::rotary_speaker_metadata calf_plugins::audio_module_iface calf_plugins::plugin_metadata< rotary_speaker_metadata > calf_plugins::plugin_metadata_iface

Public Member Functions

 rotary_speaker_audio_module ()
void set_sample_rate (uint32_t sr)
 Set sample rate for the plugin.
void setup ()
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).
void set_vibrato ()
uint32_t rpm2dphase (float rpm)
 Convert RPM speed to delta-phase.
void update_speed ()
 Set delta-phase variables based on current calculated (and interpolated) RPM speed.
void update_speed_manual (float delta)
bool incr_towards (float &aspeed, float raspeed, float delta_decc, float delta_acc)
 Increase or decrease aspeed towards raspeed, with required negative and positive rate.
uint32_t process (uint32_t offset, uint32_t nsamples, uint32_t inputs_mask, uint32_t outputs_mask)
 The audio processing loop; assumes numsamples <= MAX_SAMPLE_RUN, for larger buffers, call process_slice.
virtual void control_change (int channel, int ctl, int val)
 Handle MIDI Control Change.
Public Member Functions inherited from calf_plugins::audio_module< rotary_speaker_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 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 Attributes

uint32_t phase_l
 Current phases and phase deltas for bass and treble rotors.
uint32_t dphase_l
uint32_t phase_h
uint32_t dphase_h
dsp::simple_delay< 1024, float > delay
dsp::biquad_d2 crossover1l
dsp::biquad_d2 crossover1r
dsp::biquad_d2 crossover2l
dsp::biquad_d2 crossover2r
dsp::biquad_d2 damper1l
dsp::biquad_d2 damper1r
dsp::simple_delay< 8, float > phaseshift
uint32_t srate
dsp::bypass bypass
vumeters meters
int vibrato_mode
float mwhl_value
 Current CC1 (Modulation) value, normalized to [0, 1].
float hold_value
 Current CC64 (Hold) value, normalized to [0, 1].
float aspeed_l
 Current rotation speed for bass rotor - automatic mode.
float aspeed_h
 Current rotation speed for treble rotor - automatic mode.
float dspeed
 Desired speed (0=slow, 1=fast) - automatic mode.
float maspeed_l
 Current rotation speed for bass rotor - manual mode.
float maspeed_h
 Current rotation speed for treble rotor - manual mode.
int meter_l
int meter_h
Public Attributes inherited from calf_plugins::audio_module< rotary_speaker_metadata >
float * ins [(rotary_speaker_metadata::in_count !=0) ? rotary_speaker_metadata::in_count :1]
float * outs [(rotary_speaker_metadata::out_count !=0) ? rotary_speaker_metadata::out_count :1]
float * params [rotary_speaker_metadata::param_count]
bool questionable_data_reported_in
bool questionable_data_reported_out
progress_report_ifaceprogress_report

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ rotary_speaker_audio_module()

rotary_speaker_audio_module::rotary_speaker_audio_module ( )

Member Function Documentation

◆ activate()

void rotary_speaker_audio_module::activate ( )
virtual

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

Reimplemented from calf_plugins::audio_module< rotary_speaker_metadata >.

◆ control_change()

void rotary_speaker_audio_module::control_change ( int channel,
int controller,
int value )
virtual

Handle MIDI Control Change.

Reimplemented from calf_plugins::audio_module< rotary_speaker_metadata >.

◆ deactivate()

void rotary_speaker_audio_module::deactivate ( )
virtual

LADSPA-esque deactivate function.

Reimplemented from calf_plugins::audio_module< rotary_speaker_metadata >.

◆ incr_towards()

bool rotary_speaker_audio_module::incr_towards ( float & aspeed,
float raspeed,
float delta_decc,
float delta_acc )
inline

Increase or decrease aspeed towards raspeed, with required negative and positive rate.

◆ params_changed()

void rotary_speaker_audio_module::params_changed ( )
virtual

Called when params are changed (before processing).

Reimplemented from calf_plugins::audio_module< rotary_speaker_metadata >.

◆ process()

uint32_t rotary_speaker_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.

◆ rpm2dphase()

uint32_t rotary_speaker_audio_module::rpm2dphase ( float rpm)

Convert RPM speed to delta-phase.

◆ set_sample_rate()

void rotary_speaker_audio_module::set_sample_rate ( uint32_t sr)
virtual

Set sample rate for the plugin.

Reimplemented from calf_plugins::audio_module< rotary_speaker_metadata >.

◆ set_vibrato()

void rotary_speaker_audio_module::set_vibrato ( )

◆ setup()

void rotary_speaker_audio_module::setup ( )

◆ update_speed()

void rotary_speaker_audio_module::update_speed ( )

Set delta-phase variables based on current calculated (and interpolated) RPM speed.

◆ update_speed_manual()

void rotary_speaker_audio_module::update_speed_manual ( float delta)

Member Data Documentation

◆ aspeed_h

float calf_plugins::rotary_speaker_audio_module::aspeed_h

Current rotation speed for treble rotor - automatic mode.

◆ aspeed_l

float calf_plugins::rotary_speaker_audio_module::aspeed_l

Current rotation speed for bass rotor - automatic mode.

◆ bypass

dsp::bypass calf_plugins::rotary_speaker_audio_module::bypass

◆ crossover1l

dsp::biquad_d2 calf_plugins::rotary_speaker_audio_module::crossover1l

◆ crossover1r

dsp::biquad_d2 calf_plugins::rotary_speaker_audio_module::crossover1r

◆ crossover2l

dsp::biquad_d2 calf_plugins::rotary_speaker_audio_module::crossover2l

◆ crossover2r

dsp::biquad_d2 calf_plugins::rotary_speaker_audio_module::crossover2r

◆ damper1l

dsp::biquad_d2 calf_plugins::rotary_speaker_audio_module::damper1l

◆ damper1r

dsp::biquad_d2 calf_plugins::rotary_speaker_audio_module::damper1r

◆ delay

dsp::simple_delay<1024, float> calf_plugins::rotary_speaker_audio_module::delay

◆ dphase_h

uint32_t calf_plugins::rotary_speaker_audio_module::dphase_h

◆ dphase_l

uint32_t calf_plugins::rotary_speaker_audio_module::dphase_l

◆ dspeed

float calf_plugins::rotary_speaker_audio_module::dspeed

Desired speed (0=slow, 1=fast) - automatic mode.

◆ hold_value

float calf_plugins::rotary_speaker_audio_module::hold_value

Current CC64 (Hold) value, normalized to [0, 1].

◆ maspeed_h

float calf_plugins::rotary_speaker_audio_module::maspeed_h

Current rotation speed for treble rotor - manual mode.

◆ maspeed_l

float calf_plugins::rotary_speaker_audio_module::maspeed_l

Current rotation speed for bass rotor - manual mode.

◆ meter_h

int calf_plugins::rotary_speaker_audio_module::meter_h

◆ meter_l

int calf_plugins::rotary_speaker_audio_module::meter_l

◆ meters

vumeters calf_plugins::rotary_speaker_audio_module::meters

◆ mwhl_value

float calf_plugins::rotary_speaker_audio_module::mwhl_value

Current CC1 (Modulation) value, normalized to [0, 1].

◆ phase_h

uint32_t calf_plugins::rotary_speaker_audio_module::phase_h

◆ phase_l

uint32_t calf_plugins::rotary_speaker_audio_module::phase_l

Current phases and phase deltas for bass and treble rotors.

◆ phaseshift

dsp::simple_delay<8, float> calf_plugins::rotary_speaker_audio_module::phaseshift

◆ srate

uint32_t calf_plugins::rotary_speaker_audio_module::srate

◆ vibrato_mode

int calf_plugins::rotary_speaker_audio_module::vibrato_mode

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