}
-char* Piano::plugin_title() { return _("Pianoesizer"); }
+char* Piano::plugin_title() { return N_("Pianoesizer"); }
int Piano::is_realtime() { return 1; }
int Piano::is_synthesis() { return 1; }
void Piano::update_gui()
{
- if(thread)
- {
- load_configuration();
- thread->window->lock_window();
- thread->window->update_gui();
- thread->window->unlock_window();
- }
+ if( !thread ) return;
+ PianoWindow *window = (PianoWindow *)thread->window:
+// load_configuration,read_data deletes oscillator_config
+ window->lock_window("Piano::update_gui");
+ load_configuration();
+ window->update_gui();
+ window->unlock_window();
}
if(config->level <= INFINITYGAIN) return 0;
double result;
- register double x;
+ double x;
double power = this->db.fromdb(config->level) * normalize_constant;
double phase_offset = config->phase * this->period;
double x3 = x1 + phase_offset;