Synth Class Reference

#include <synthesizer.h>

Inherits PluginAClient.

Collaboration diagram for Synth:

Collaboration graph
[legend]

Public Member Functions

 Synth (PluginServer *server)
 ~Synth ()
int is_realtime ()
int is_synthesis ()
int load_configuration ()
int load_defaults ()
VFramenew_picon ()
char * plugin_title ()
void read_data (KeyFrame *keyframe)
void save_data (KeyFrame *keyframe)
int save_defaults ()
int show_gui ()
void raise_window ()
int set_string ()
int process_realtime (int64_t size, double *input_ptr, double *output_ptr)
void add_oscillator ()
void delete_oscillator ()
double get_total_power ()
double get_oscillator_point (float x, double normalize_constant, int oscillator)
double solve_eqn (double *output, double x1, double x2, double normalize_constant, int oscillator)
double get_point (float x, double normalize_constant)
double function_square (double x)
double function_pulse (double x)
double function_noise ()
double function_sawtooth (double x)
double function_triangle (double x)
void reconfigure ()
int overlay_synth (int64_t start, int64_t length, double *input, double *output)
void update_gui ()
void reset ()

Data Fields

double * dsp_buffer
int need_reconfigure
BC_Hashdefaults
SynthThreadthread
SynthConfig config
int w
int h
DB db
int64_t waveform_length
int64_t waveform_sample
int64_t samples_rendered
float period

Detailed Description

Definition at line 464 of file synthesizer.h.


Constructor & Destructor Documentation

Synth::Synth ( PluginServer server  ) 

Definition at line 28 of file synthesizer.C.

References load_defaults(), and reset().

Here is the call graph for this function:

Synth::~Synth (  ) 

Definition at line 37 of file synthesizer.C.

References SynthThread::completion, defaults, dsp_buffer, Mutex::lock(), save_defaults(), BC_WindowBase::set_done(), thread, and SynthThread::window.

Here is the call graph for this function:


Member Function Documentation

int Synth::is_realtime (  )  [virtual]

Reimplemented from PluginClient.

Definition at line 59 of file synthesizer.C.

int Synth::is_synthesis (  )  [virtual]

Reimplemented from PluginClient.

Definition at line 60 of file synthesizer.C.

int Synth::load_configuration (  ) 

int Synth::load_defaults (  )  [virtual]

VFrame * Synth::new_picon (  )  [virtual]

Reimplemented from PluginClient.

Definition at line 52 of file synthesizer.C.

References picon_png.

char * Synth::plugin_title (  )  [virtual]

Reimplemented from PluginClient.

Definition at line 58 of file synthesizer.C.

References N_.

void Synth::read_data ( KeyFrame keyframe  )  [virtual]

void Synth::save_data ( KeyFrame keyframe  )  [virtual]

int Synth::save_defaults (  )  [virtual]

int Synth::show_gui (  )  [virtual]

Reimplemented from PluginClient.

Definition at line 186 of file synthesizer.C.

References load_configuration(), Thread::start(), and thread.

Here is the call graph for this function:

void Synth::raise_window (  )  [virtual]

Reimplemented from PluginClient.

Definition at line 201 of file synthesizer.C.

References BC_WindowBase::flush(), BC_WindowBase::raise_window(), thread, and SynthThread::window.

Here is the call graph for this function:

int Synth::set_string (  )  [virtual]

Reimplemented from PluginClient.

Definition at line 195 of file synthesizer.C.

References PluginClient::gui_string, BC_WindowBase::set_title(), thread, and SynthThread::window.

Here is the call graph for this function:

int Synth::process_realtime ( int64_t  size,
double *  input_ptr,
double *  output_ptr 
) [virtual]

Reimplemented from PluginAClient.

Definition at line 389 of file synthesizer.C.

References config, EQUIV, DB::fromdb(), INFINITYGAIN, load_configuration(), need_reconfigure, overlay_synth(), reconfigure(), and SynthConfig::wetness.

Here is the call graph for this function:

void Synth::add_oscillator (  ) 

Definition at line 222 of file synthesizer.C.

References ArrayList< TYPE >::append(), config, SynthConfig::oscillator_config, and ArrayList< TYPE >::total.

Referenced by SynthAddOsc::handle_event().

Here is the call graph for this function:

void Synth::delete_oscillator (  ) 

Definition at line 229 of file synthesizer.C.

References config, SynthConfig::oscillator_config, ArrayList< TYPE >::remove_object(), and ArrayList< TYPE >::total.

Referenced by SynthDelOsc::handle_event().

Here is the call graph for this function:

double Synth::get_total_power (  ) 

double Synth::get_oscillator_point ( float  x,
double  normalize_constant,
int  oscillator 
)

double Synth::solve_eqn ( double *  output,
double  x1,
double  x2,
double  normalize_constant,
int  oscillator 
)

double Synth::get_point ( float  x,
double  normalize_constant 
)

Definition at line 319 of file synthesizer.C.

References config, get_oscillator_point(), SynthConfig::oscillator_config, and ArrayList< TYPE >::total.

Referenced by SynthCanvas::update().

Here is the call graph for this function:

double Synth::function_square ( double  x  ) 

Definition at line 360 of file synthesizer.C.

Referenced by get_oscillator_point(), and solve_eqn().

double Synth::function_pulse ( double  x  ) 

Definition at line 366 of file synthesizer.C.

Referenced by get_oscillator_point(), and solve_eqn().

double Synth::function_noise (  ) 

Definition at line 372 of file synthesizer.C.

Referenced by get_oscillator_point(), and solve_eqn().

double Synth::function_sawtooth ( double  x  ) 

Definition at line 377 of file synthesizer.C.

Referenced by get_oscillator_point(), and solve_eqn().

double Synth::function_triangle ( double  x  ) 

Definition at line 383 of file synthesizer.C.

Referenced by get_oscillator_point(), and solve_eqn().

void Synth::reconfigure (  ) 

int Synth::overlay_synth ( int64_t  start,
int64_t  length,
double *  input,
double *  output 
)

void Synth::update_gui (  )  [virtual]

Reimplemented from PluginClient.

Definition at line 210 of file synthesizer.C.

References load_configuration(), BC_WindowBase::lock_window(), thread, BC_WindowBase::unlock_window(), SynthWindow::update_gui(), and SynthThread::window.

Referenced by SynthClear::handle_event().

Here is the call graph for this function:

void Synth::reset (  ) 

Reimplemented from PluginClient.

Definition at line 63 of file synthesizer.C.

References dsp_buffer, need_reconfigure, and thread.

Referenced by Synth().


Field Documentation

Definition at line 516 of file synthesizer.h.

Referenced by overlay_synth(), reconfigure(), reset(), and ~Synth().

Definition at line 517 of file synthesizer.h.

Referenced by process_realtime(), reconfigure(), and reset().

Definition at line 518 of file synthesizer.h.

Referenced by load_defaults(), save_defaults(), and ~Synth().

int Synth::w

Definition at line 521 of file synthesizer.h.

Referenced by load_defaults(), SynthWindow::resize_event(), and save_defaults().

int Synth::h

Definition at line 521 of file synthesizer.h.

Referenced by load_defaults(), SynthWindow::resize_event(), and save_defaults().

Definition at line 523 of file synthesizer.h.

Referenced by overlay_synth(), and reconfigure().

Definition at line 524 of file synthesizer.h.

Referenced by overlay_synth(), and reconfigure().

Definition at line 525 of file synthesizer.h.

Referenced by overlay_synth(), and reconfigure().

Definition at line 526 of file synthesizer.h.

Referenced by reconfigure(), and solve_eqn().


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

Generated on Mon Apr 28 14:44:22 2008 for Cinelerra by  doxygen 1.5.5