Loading...
Searching...
No Matches
machine.h
Go to the documentation of this file.
/*
* Copyright (C) 2013 Andreas Degert
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#pragma once
#ifndef SRC_HEADERS_MACHINE_H_
#define SRC_HEADERS_MACHINE_H_
#ifndef GUITARIX_AS_PLUGIN
#include <boost/iostreams/device/file_descriptor.hpp>
#include <boost/iostreams/stream.hpp>
#include "jsonrpc_methods.h"
#else
#include <ext/stdio_filebuf.h>
#include "jsonrpc_methods-generated.h"
#endif
#ifdef HAVE_AVAHI
#include "avahi_register.h"
#endif
namespace gx_gui { class UiBuilderImpl; }
enum PluginType {
PLUGIN_TYPE_MONO,
PLUGIN_TYPE_STEREO,
};
namespace gx_engine {
class bank_iterator {
private:
gx_system::PresetBanks::iterator it;
public:
bank_iterator(gx_system::PresetBanks::iterator it_): it(it_) {}
~bank_iterator() {}
bool operator!=(const bank_iterator& i) const { return i.it != it; }
bank_iterator& operator++() { ++it; return *this; }
gx_system::PresetFileGui* operator->() { return (*it)->get_guiwrapper(); }
gx_system::PresetFileGui* operator*() { return (*it)->get_guiwrapper(); }
};
typedef map<string, set<void*> > output_listen_map;
class GxMachineBase {
private:
sigc::connection update_timeout;
protected:
sigc::signal<void,const std::string&, std::vector<gx_system::FileName> > impresp_list;
output_listen_map update_map;
private:
virtual int _get_parameter_value_int(const std::string& id) = 0;
virtual int _get_parameter_value_bool(const std::string& id) = 0;
virtual float _get_parameter_value_float(const std::string& id) = 0;
virtual std::string _get_parameter_value_string(const std::string& id) = 0;
virtual sigc::signal<void, int>& _signal_parameter_value_int(const std::string& id) = 0;
virtual sigc::signal<void, bool>& _signal_parameter_value_bool(const std::string& id) = 0;
virtual sigc::signal<void, float>& _signal_parameter_value_float(const std::string& id) = 0;
virtual bool update_parameter() = 0;
protected:
GxMachineBase();
public:
virtual ~GxMachineBase();
// engine
virtual void set_state(GxEngineState state) = 0;
virtual GxEngineState get_state() = 0;
virtual void load_ladspalist(std::vector<std::string>& old_not_found, ladspa::LadspaPluginList& pluginlist) = 0;
virtual void save_ladspalist(ladspa::LadspaPluginList& pluginlist) = 0;
virtual void commit_ladspa_changes() = 0;
virtual sigc::signal<void,Plugin*,PluginChange::pc>& signal_plugin_changed() = 0;
virtual Plugin *pluginlist_lookup_plugin(const std::string& id) const = 0;
virtual bool load_unit(gx_gui::UiBuilderImpl& builder, PluginDef* pdef) = 0;
virtual void pluginlist_append_rack(UiBuilderBase& ui) = 0;
virtual float get_tuner_freq() = 0;
virtual float get_tuner_note() = 0;
virtual void set_oscilloscope_mul_buffer(int a) = 0;
virtual int get_oscilloscope_mul_buffer() = 0;
virtual gx_system::CmdlineOptions& get_options() const = 0;
virtual void start_socket(sigc::slot<void> quit_mainloop, const Glib::ustring& host, int port) = 0;
virtual void stop_socket() = 0;
virtual sigc::signal<void,GxEngineState>& signal_state_change() = 0;
virtual void tuner_used_for_display(bool on) = 0;
virtual void tuner_used_by_midi(bool on) = 0;
virtual void tuner_switch(bool on) = 0;
virtual const std::vector<std::string>& get_rack_unit_order(PluginType type) = 0;
virtual const std::vector<Glib::ustring>& get_file_list(const std::string& id) = 0;
virtual sigc::signal<void,bool>& signal_rack_unit_order_changed() = 0;
virtual void remove_rack_unit(const std::string& unit, PluginType type) = 0;
virtual void insert_rack_unit(const std::string& unit, const std::string& before, PluginType type) = 0;
// tuner_switcher
virtual bool get_tuner_switcher_active() = 0;
virtual void tuner_switcher_activate(bool v) = 0;
virtual void tuner_switcher_deactivate() = 0;
virtual void tuner_switcher_toggle(bool v) = 0;
virtual sigc::signal<void,const Glib::ustring&,const Glib::ustring&>& tuner_switcher_signal_display() = 0;
virtual sigc::signal<void,TunerSwitcher::SwitcherState>& tuner_switcher_signal_set_state() = 0;
virtual sigc::signal<void, bool>& tuner_switcher_signal_selection_done() = 0;
// preset
virtual bool setting_is_preset() = 0;
virtual const Glib::ustring& get_current_bank() = 0;
virtual gx_system::PresetFileGui *get_current_bank_file() = 0;
virtual const Glib::ustring& get_current_name() = 0;
virtual gx_system::PresetFileGui* get_bank_file(const Glib::ustring& bank) const = 0;
virtual Glib::ustring get_bank_name(int n) = 0;
virtual void load_preset(gx_system::PresetFileGui *pf, const Glib::ustring& name) = 0;
virtual bool msend_midi_cc(int cc, int pgn, int bgn, int num) = 0;
virtual void loadstate() = 0;
virtual int bank_size() = 0;
virtual int get_bank_index(const Glib::ustring& bank) = 0;
virtual void create_default_scratch_preset() = 0;
virtual void set_statefilename(const std::string& fn) = 0;
virtual void save_to_state(bool preserve_preset=false) = 0;
virtual void plugin_preset_list_load(const PluginDef *pdef, gx_preset::UnitPresetList &presetnames) = 0;
virtual void plugin_preset_list_set(const PluginDef *pdef, bool factory, const Glib::ustring& name) = 0;
virtual void plugin_preset_list_sync_set(const PluginDef *pdef, bool factory, const Glib::ustring& name) = 0;
virtual void plugin_preset_list_set_on_idle(const PluginDef *pdef, bool factory, const Glib::ustring& name) = 0;
virtual void plugin_preset_list_save(const PluginDef *pdef, const Glib::ustring& name) = 0;
virtual void plugin_preset_list_remove(const PluginDef *pdef, const Glib::ustring& name) = 0;
virtual void disable_autosave(bool v) = 0;
virtual void disable_save_on_exit(bool v) = 0;
virtual sigc::signal<void>& signal_selection_changed() = 0;
virtual sigc::signal<void>& signal_presetlist_changed() = 0;
virtual gx_system::PresetFileGui *bank_insert_uri(const Glib::ustring& uri, bool move, int position) = 0;
virtual gx_system::PresetFileGui *bank_insert_new(const Glib::ustring& newname) = 0;
virtual bool rename_bank(const Glib::ustring& oldname, Glib::ustring& newname) = 0;
virtual bool rename_preset(gx_system::PresetFileGui& pf, const Glib::ustring& oldname, const Glib::ustring& newname) = 0;
virtual void bank_reorder(const std::vector<Glib::ustring>& neworder) = 0;
virtual void reorder_preset(gx_system::PresetFileGui& pf, const std::vector<Glib::ustring>& neworder) = 0;
virtual bool bank_check_reparse() = 0;
virtual void erase_preset(gx_system::PresetFileGui& pf, const Glib::ustring& name) = 0;
virtual void bank_set_flag(gx_system::PresetFileGui *pf, int flag, bool v) = 0;
virtual std::string bank_get_filename(const Glib::ustring& bank) = 0;
virtual void bank_drag_begin() = 0;
virtual gx_system::PresetFileGui *bank_get_file(const Glib::ustring& bank) const = 0;
virtual bank_iterator bank_begin() = 0;
virtual bank_iterator bank_end() = 0;
virtual void pf_append(gx_system::PresetFileGui& pf, const Glib::ustring& src, gx_system::PresetFileGui& pftgt, const Glib::ustring& name) = 0;
virtual void pf_insert_before(gx_system::PresetFileGui& pf, const Glib::ustring& src, gx_system::PresetFileGui& pftgt, const Glib::ustring& pos, const Glib::ustring& name) = 0;
virtual void pf_insert_after(gx_system::PresetFileGui& pf, const Glib::ustring& src, gx_system::PresetFileGui& pftgt, const Glib::ustring& pos, const Glib::ustring& name) = 0;
virtual bool convert_preset(gx_system::PresetFileGui& pf) = 0;
virtual bool bank_remove(const Glib::ustring& bank) = 0;
virtual void bank_save() = 0;
virtual void pf_save(gx_system::PresetFileGui& pf, const Glib::ustring& name) = 0;
virtual void next_preset_switch() = 0;
virtual void previus_preset_switch() = 0;
virtual void process_next_preset_switch(bool s) = 0;
virtual void process_previus_preset_switch(bool s) = 0;
// jack
virtual gx_jack::GxJack *get_jack() = 0;
virtual void set_jack_insert(bool v) = 0;
// pmap
virtual Parameter& get_parameter(const std::string& id) = 0;
virtual void insert_param(Glib::ustring group, Glib::ustring name) = 0;
virtual void set_init_values() = 0;
void set_update_parameter(void *control, const string& id, bool on=true);
virtual bool parameter_hasId(const char *p) = 0;
virtual bool parameter_hasId(const std::string& id) = 0;
virtual void reset_unit(const PluginDef *pdef) const = 0;
virtual bool parameter_unit_has_std_values(const PluginDef *pdef) const = 0;
virtual void set_parameter_value(const std::string& id, int value) = 0;
virtual void set_parameter_value(const std::string& id, float value) = 0;
virtual void set_parameter_value(const std::string& id, bool value) = 0;
virtual void set_parameter_value(const std::string& id, const std::string& value) = 0;
void set_parameter_value(const std::string& id, double value) { set_parameter_value(id, (float)value); }
template <class T> T get_parameter_value (const std::string& id);
template <class T> sigc::signal<void, T>& signal_parameter_value(const std::string& id);
// MidiControllerList
virtual bool midi_get_config_mode(int *ctl = 0) = 0;
virtual void midi_set_config_mode(bool v, int ctl=-1) = 0;
virtual sigc::signal<void>& signal_midi_changed() = 0;
virtual sigc::signal<void, int, int>& signal_midi_value_changed() = 0;
virtual void request_midi_value_update() = 0;
virtual int midi_size() = 0;
virtual midi_controller_list& midi_get(int n) = 0;
virtual void midi_deleteParameter(Parameter& param) = 0;
virtual void midi_set_current_control(int v) = 0;
virtual void midi_modifyCurrent(Parameter& param, float lower, float upper, bool toggle, int toggle_behaviour) = 0;
virtual int midi_param2controller(Parameter& param, const MidiController** p) = 0;
virtual void set_midi_channel(int s) = 0;
virtual void midi_feedback(int c, int v) = 0;
virtual bool get_midi_feedback() = 0;
virtual void set_midi_feedback(int v) = 0;
virtual void on_tuner_freq_changed() = 0;
// Convolver
virtual void reload_impresp_list(const std::string& path) = 0;
sigc::signal<void,const std::string&, std::vector<gx_system::FileName> >& signal_impresp_list() {
return impresp_list;
}
virtual void load_impresp_dirs(std::vector<gx_system::FileName>& dirs) = 0;
virtual bool read_audio(const std::string& filename, unsigned int *audio_size, int *audio_chan,
int *audio_type, int *audio_form, int *audio_rate, float **buffer) = 0;
};
template <> inline float GxMachineBase::get_parameter_value(const std::string& id) {
return _get_parameter_value_float(id);
}
template <> inline int GxMachineBase::get_parameter_value(const std::string& id) {
return _get_parameter_value_int(id);
}
template <> inline bool GxMachineBase::get_parameter_value(const std::string& id) {
return _get_parameter_value_bool(id);
}
template <> inline std::string GxMachineBase::get_parameter_value(const std::string& id) {
return _get_parameter_value_string(id);
}
template <> inline sigc::signal<void, float>& GxMachineBase::signal_parameter_value(const std::string& id) {
return _signal_parameter_value_float(id);
}
template <> inline sigc::signal<void, int>& GxMachineBase::signal_parameter_value(const std::string& id) {
return _signal_parameter_value_int(id);
}
template <> inline sigc::signal<void, bool>& GxMachineBase::signal_parameter_value(const std::string& id) {
return _signal_parameter_value_bool(id);
}
class GxMachine: public GxMachineBase {
private:
gx_system::CmdlineOptions& options;
GxEngine engine;
gx_jack::GxJack jack;
gx_preset::GxSettings settings;
TunerSwitcher tuner_switcher;
GxService *sock;
#ifdef HAVE_AVAHI
AvahiService *avahi_service;
#endif
ParamMap& pmap;
Glib::ustring switch_bank;
private:
void reset_switch_bank();
void set_mute_state(int mute);
void do_program_change(int pgm);
void do_bank_change(int pgm);
void edge_toggle_tuner(bool v);
void on_impresp(const std::string& path);
void exit_handler(bool otherthread);
void process_cmdline_bank_preset();
virtual int _get_parameter_value_int(const std::string& id);
virtual int _get_parameter_value_bool(const std::string& id);
virtual float _get_parameter_value_float(const std::string& id);
virtual std::string _get_parameter_value_string(const std::string& id);
virtual sigc::signal<void, int>& _signal_parameter_value_int(const std::string& id);
virtual sigc::signal<void, bool>& _signal_parameter_value_bool(const std::string& id);
virtual sigc::signal<void, float>& _signal_parameter_value_float(const std::string& id);
virtual bool update_parameter();
public:
GxMachine(gx_system::CmdlineOptions& options);
virtual ~GxMachine();
virtual void set_state(GxEngineState state);
virtual GxEngineState get_state();
virtual void load_ladspalist(std::vector<std::string>& old_not_found, ladspa::LadspaPluginList& pluginlist);
virtual void save_ladspalist(ladspa::LadspaPluginList& pluginlist);
virtual void commit_ladspa_changes();
#ifdef GUITARIX_AS_PLUGIN
gx_preset::GxSettings& get_settings() {return settings;}
void timerUpdate();
void start_ramp_down() { engine.start_ramp_down(); }
void wait_ramp_down_finished() { engine.wait_ramp_down_finished(); }
void start_ramp_up() {engine.start_ramp_up();}
#endif
virtual sigc::signal<void,Plugin*,PluginChange::pc>& signal_plugin_changed();
virtual Plugin *pluginlist_lookup_plugin(const std::string& id) const;
virtual bool load_unit(gx_gui::UiBuilderImpl& builder, PluginDef* pdef);
virtual void pluginlist_append_rack(UiBuilderBase& ui);
virtual float get_tuner_freq();
virtual float get_tuner_note();
virtual void set_oscilloscope_mul_buffer(int a);
virtual int get_oscilloscope_mul_buffer();
virtual gx_system::CmdlineOptions& get_options() const;
virtual void start_socket(sigc::slot<void> quit_mainloop, const Glib::ustring& host, int port);
virtual void stop_socket();
virtual sigc::signal<void,GxEngineState>& signal_state_change();
virtual void tuner_used_for_display(bool on);
virtual void tuner_used_by_midi(bool on);
virtual void tuner_switch(bool on);
virtual const std::vector<std::string>& get_rack_unit_order(PluginType type);
virtual const std::vector<Glib::ustring>& get_file_list(const std::string& id);
virtual sigc::signal<void,bool>& signal_rack_unit_order_changed();
virtual void remove_rack_unit(const std::string& unit, PluginType type);
virtual void insert_rack_unit(const std::string& unit, const std::string& before, PluginType type);
// tuner_switcher
virtual bool get_tuner_switcher_active();
virtual void tuner_switcher_activate(bool v);
virtual void tuner_switcher_deactivate();
virtual void tuner_switcher_toggle(bool v);
virtual sigc::signal<void,const Glib::ustring&,const Glib::ustring&>& tuner_switcher_signal_display();
virtual sigc::signal<void,TunerSwitcher::SwitcherState>& tuner_switcher_signal_set_state();
virtual sigc::signal<void, bool>& tuner_switcher_signal_selection_done();
// preset
virtual bool setting_is_preset();
virtual const Glib::ustring& get_current_bank();
virtual gx_system::PresetFileGui *get_current_bank_file();
virtual const Glib::ustring& get_current_name();
virtual gx_system::PresetFileGui* get_bank_file(const Glib::ustring& bank) const;
virtual Glib::ustring get_bank_name(int n);
virtual void load_preset(gx_system::PresetFileGui *pf, const Glib::ustring& name);
virtual bool msend_midi_cc(int cc, int pgn, int bgn, int num);
virtual void loadstate();
virtual int bank_size();
virtual int get_bank_index(const Glib::ustring& bank);
virtual void create_default_scratch_preset();
virtual void set_statefilename(const std::string& fn);
virtual void save_to_state(bool preserve_preset=false);
virtual void plugin_preset_list_load(const PluginDef *pdef, gx_preset::UnitPresetList &presetnames);
virtual void plugin_preset_list_set(const PluginDef *pdef, bool factory, const Glib::ustring& name);
virtual void plugin_preset_list_sync_set(const PluginDef *pdef, bool factory, const Glib::ustring& name);
virtual void plugin_preset_list_set_on_idle(const PluginDef *pdef, bool factory, const Glib::ustring& name);
virtual void plugin_preset_list_save(const PluginDef *pdef, const Glib::ustring& name);
virtual void plugin_preset_list_remove(const PluginDef *pdef, const Glib::ustring& name);
virtual void disable_autosave(bool v);
virtual void disable_save_on_exit(bool v);
virtual sigc::signal<void>& signal_selection_changed();
virtual sigc::signal<void>& signal_presetlist_changed();
virtual gx_system::PresetFileGui *bank_insert_uri(const Glib::ustring& uri, bool move, int position);
virtual gx_system::PresetFileGui *bank_insert_new(const Glib::ustring& newname);
virtual bool rename_bank(const Glib::ustring& oldname, Glib::ustring& newname);
virtual bool rename_preset(gx_system::PresetFileGui& pf, const Glib::ustring& oldname, const Glib::ustring& newname);
virtual void bank_reorder(const std::vector<Glib::ustring>& neworder);
virtual void reorder_preset(gx_system::PresetFileGui& pf, const std::vector<Glib::ustring>& neworder);
virtual bool bank_check_reparse();
virtual void erase_preset(gx_system::PresetFileGui& pf, const Glib::ustring& name);
virtual void bank_set_flag(gx_system::PresetFileGui *pf, int flag, bool v);
virtual std::string bank_get_filename(const Glib::ustring& bank);
virtual void bank_drag_begin();
virtual gx_system::PresetFileGui *bank_get_file(const Glib::ustring& bank) const;
virtual bank_iterator bank_begin();
virtual bank_iterator bank_end();
virtual void pf_append(gx_system::PresetFileGui& pf, const Glib::ustring& src, gx_system::PresetFileGui& pftgt, const Glib::ustring& name);
virtual void pf_insert_before(gx_system::PresetFileGui& pf, const Glib::ustring& src, gx_system::PresetFileGui& pftgt, const Glib::ustring& pos, const Glib::ustring& name);
virtual void pf_insert_after(gx_system::PresetFileGui& pf, const Glib::ustring& src, gx_system::PresetFileGui& pftgt, const Glib::ustring& pos, const Glib::ustring& name);
virtual bool convert_preset(gx_system::PresetFileGui& pf);
virtual bool bank_remove(const Glib::ustring& bank);
virtual void bank_save();
virtual void pf_save(gx_system::PresetFileGui& pf, const Glib::ustring& name);
virtual void next_preset_switch();
virtual void previus_preset_switch();
virtual void process_next_preset_switch(bool s);
virtual void process_previus_preset_switch(bool s);
// jack
virtual gx_jack::GxJack *get_jack();
virtual void set_jack_insert(bool v);
// pmap
virtual Parameter& get_parameter(const char *p);
virtual Parameter& get_parameter(const std::string& id);
virtual void insert_param(Glib::ustring group, Glib::ustring name);
virtual void set_init_values();
virtual bool parameter_hasId(const char *p);
virtual bool parameter_hasId(const std::string& id);
virtual void reset_unit(const PluginDef *pdef) const;
virtual bool parameter_unit_has_std_values(const PluginDef *pdef) const;
virtual void set_parameter_value(const std::string& id, int value);
virtual void set_parameter_value(const std::string& id, bool value);
virtual void set_parameter_value(const std::string& id, float value);
virtual void set_parameter_value(const std::string& id, const std::string& value);
// bool ui_f_update(const std::string& id, float value);
// MidiControllerList
virtual bool midi_get_config_mode(int *ctl = 0);
virtual void midi_set_config_mode(bool v, int ctl=-1);
virtual sigc::signal<void>& signal_midi_changed();
virtual sigc::signal<void, int, int>& signal_midi_value_changed();
virtual void request_midi_value_update();
virtual int midi_size();
virtual midi_controller_list& midi_get(int n);
virtual void midi_deleteParameter(Parameter& param);
virtual void midi_set_current_control(int v);
virtual void midi_modifyCurrent(Parameter& param, float lower, float upper, bool toggle, int toggle_behaviour);
virtual int midi_param2controller(Parameter& param, const MidiController** p);
virtual void set_midi_channel(int s);
virtual void midi_feedback(int c, int v);
virtual bool get_midi_feedback();
virtual void set_midi_feedback(int v);
virtual void on_tuner_freq_changed();
// Convolver
virtual void reload_impresp_list(const std::string& path);
virtual void load_impresp_dirs(std::vector<gx_system::FileName>& dirs);
virtual bool read_audio(const std::string& filename, unsigned int *audio_size, int *audio_chan,
int *audio_type, int *audio_form, int *audio_rate, float **buffer);
};
class GxMachineRemote: public GxMachineBase {
private:
gx_system::CmdlineOptions& options;
ParamMap pmap;
PluginListBase pluginlist;
gx_system::PresetBanks banks;
sigc::signal<void,GxEngineState> engine_state_change;
sigc::signal<void> selection_changed;
sigc::signal<void> presetlist_changed;
Glib::RefPtr<Gio::Socket> socket;
std::vector<Glib::ustring> list;
#ifdef GUITARIX_AS_PLUGIN
__gnu_cxx::stdio_filebuf<char> *writebuf;
ostream *os;
#else
boost::iostreams::file_descriptor_sink *writebuf;
boost::iostreams::stream<boost::iostreams::file_descriptor_sink> *os;
#endif
gx_system::JsonWriter *jw;
std::vector<gx_system::JsonStringParser*> notify_list;
sigc::connection idle_conn;
gx_preset::UnitRacks rack_units;
sigc::signal<void> midi_changed;
sigc::signal<void, int, int> midi_value_changed;
ControllerArray midi_controller_map;
Glib::ustring current_bank;
Glib::ustring current_preset;
int bank_drag_get_counter;
std::string bank_drag_get_path;
sigc::signal<void,const Glib::ustring&,const Glib::ustring&> tuner_switcher_display;
sigc::signal<void,TunerSwitcher::SwitcherState> tuner_switcher_set_state;
sigc::signal<void, bool> tuner_switcher_selection_done;
sigc::signal<void,Plugin*,PluginChange::pc> plugin_changed;
private:
const jsonrpc_method_def& start_call(jsonrpc_method m_id);
void send();
void socket_error(int loc);
gx_system::JsonStringParser *receive();
bool get_bool(gx_system::JsonStringParser *jp);
bool socket_input_handler(Glib::IOCondition cond);
void add_idle_handler();
bool idle_notify_handler();
void handle_notify(gx_system::JsonStringParser *jp);
void parameter_changed(gx_system::JsonStringParser *jp);
int load_remote_ui(const UiBuilder& builder, int form);
void report_rpc_error(gx_system::JsonStringParser *jp,
const gx_system::JsonException& e, const char *method=0);
void throw_error(gx_system::JsonStringParser *jp);
void param_signal(Parameter *p);
void update_plugins(gx_system::JsonParser *jp);
void create_bluetooth_socket(const Glib::ustring& bdaddr);
void create_tcp_socket();
int midi_get_last_controller_value(int ctl);
void midi_set_last_controller_value(int ctl, int v);
virtual int _get_parameter_value_int(const std::string& id);
virtual int _get_parameter_value_bool(const std::string& id);
virtual float _get_parameter_value_float(const std::string& id);
virtual std::string _get_parameter_value_string(const std::string& id);
virtual sigc::signal<void, int>& _signal_parameter_value_int(const std::string& id);
virtual sigc::signal<void, bool>& _signal_parameter_value_bool(const std::string& id);
virtual sigc::signal<void, float>& _signal_parameter_value_float(const std::string& id);
virtual bool update_parameter();
public:
GxMachineRemote(gx_system::CmdlineOptions& options);
virtual ~GxMachineRemote();
virtual void set_state(GxEngineState state);
virtual GxEngineState get_state();
virtual void load_ladspalist(std::vector<std::string>& old_not_found, ladspa::LadspaPluginList& pluginlist);
virtual void save_ladspalist(ladspa::LadspaPluginList& pluginlist);
virtual void commit_ladspa_changes();
virtual sigc::signal<void,Plugin*,PluginChange::pc>& signal_plugin_changed();
virtual Plugin *pluginlist_lookup_plugin(const std::string& id) const;
virtual bool load_unit(gx_gui::UiBuilderImpl& builder, PluginDef* pdef);
virtual void pluginlist_append_rack(UiBuilderBase& ui);
virtual float get_tuner_freq();
virtual float get_tuner_note();
virtual void set_oscilloscope_mul_buffer(int a);
virtual int get_oscilloscope_mul_buffer();
virtual gx_system::CmdlineOptions& get_options() const;
virtual void start_socket(sigc::slot<void> quit_mainloop, const Glib::ustring& host, int port);
virtual void stop_socket();
virtual sigc::signal<void,GxEngineState>& signal_state_change();
virtual void tuner_used_for_display(bool on);
virtual void tuner_used_by_midi(bool on);
virtual void tuner_switch(bool on);
virtual const std::vector<std::string>& get_rack_unit_order(PluginType type);
virtual const std::vector<Glib::ustring>& get_file_list(const std::string& id);
virtual sigc::signal<void,bool>& signal_rack_unit_order_changed();
virtual void remove_rack_unit(const std::string& unit, PluginType type);
virtual void insert_rack_unit(const std::string& unit, const std::string& before, PluginType type);
// tuner_switcher
virtual bool get_tuner_switcher_active();
virtual void tuner_switcher_activate(bool v);
virtual void tuner_switcher_deactivate();
virtual void tuner_switcher_toggle(bool v);
virtual sigc::signal<void,const Glib::ustring&,const Glib::ustring&>& tuner_switcher_signal_display();
virtual sigc::signal<void,TunerSwitcher::SwitcherState>& tuner_switcher_signal_set_state();
virtual sigc::signal<void, bool>& tuner_switcher_signal_selection_done();
// preset
virtual bool setting_is_preset();
virtual const Glib::ustring& get_current_bank();
virtual gx_system::PresetFileGui *get_current_bank_file();
virtual const Glib::ustring& get_current_name();
virtual gx_system::PresetFileGui* get_bank_file(const Glib::ustring& bank) const;
virtual Glib::ustring get_bank_name(int n);
virtual void load_preset(gx_system::PresetFileGui *pf, const Glib::ustring& name);
virtual bool msend_midi_cc(int cc, int pgn, int bgn, int num);
virtual void loadstate();
virtual int bank_size();
virtual int get_bank_index(const Glib::ustring& bank);
virtual void create_default_scratch_preset();
virtual void set_statefilename(const std::string& fn);
virtual void save_to_state(bool preserve_preset=false);
virtual void plugin_preset_list_load(const PluginDef *pdef, gx_preset::UnitPresetList &presetnames);
virtual void plugin_preset_list_set(const PluginDef *pdef, bool factory, const Glib::ustring& name);
virtual void plugin_preset_list_sync_set(const PluginDef *pdef, bool factory, const Glib::ustring& name);
virtual void plugin_preset_list_set_on_idle(const PluginDef *pdef, bool factory, const Glib::ustring& name);
virtual void plugin_preset_list_save(const PluginDef *pdef, const Glib::ustring& name);
virtual void plugin_preset_list_remove(const PluginDef *pdef, const Glib::ustring& name);
virtual void disable_autosave(bool v);
virtual void disable_save_on_exit(bool v);
virtual sigc::signal<void>& signal_selection_changed();
virtual sigc::signal<void>& signal_presetlist_changed();
virtual gx_system::PresetFileGui *bank_insert_uri(const Glib::ustring& uri, bool move, int position);
virtual gx_system::PresetFileGui *bank_insert_new(const Glib::ustring& newname);
virtual bool rename_bank(const Glib::ustring& oldname, Glib::ustring& newname);
virtual bool rename_preset(gx_system::PresetFileGui& pf, const Glib::ustring& oldname, const Glib::ustring& newname);
virtual void bank_reorder(const std::vector<Glib::ustring>& neworder);
virtual void reorder_preset(gx_system::PresetFileGui& pf, const std::vector<Glib::ustring>& neworder);
virtual bool bank_check_reparse();
virtual void erase_preset(gx_system::PresetFileGui& pf, const Glib::ustring& name);
virtual void bank_set_flag(gx_system::PresetFileGui *pf, int flag, bool v);
virtual std::string bank_get_filename(const Glib::ustring& bank);
virtual void bank_drag_begin();
virtual gx_system::PresetFileGui *bank_get_file(const Glib::ustring& bank) const;
virtual bank_iterator bank_begin();
virtual bank_iterator bank_end();
virtual void pf_append(gx_system::PresetFileGui& pf, const Glib::ustring& src, gx_system::PresetFileGui& pftgt, const Glib::ustring& name);
virtual void pf_insert_before(gx_system::PresetFileGui& pf, const Glib::ustring& src, gx_system::PresetFileGui& pftgt, const Glib::ustring& pos, const Glib::ustring& name);
virtual void pf_insert_after(gx_system::PresetFileGui& pf, const Glib::ustring& src, gx_system::PresetFileGui& pftgt, const Glib::ustring& pos, const Glib::ustring& name);
virtual bool convert_preset(gx_system::PresetFileGui& pf);
virtual bool bank_remove(const Glib::ustring& bank);
virtual void bank_save();
virtual void pf_save(gx_system::PresetFileGui& pf, const Glib::ustring& name);
virtual void next_preset_switch();
virtual void previus_preset_switch();
virtual void process_next_preset_switch(bool s);
virtual void process_previus_preset_switch(bool s);
// jack
virtual gx_jack::GxJack *get_jack();
virtual void set_jack_insert(bool v);
// pmap
virtual Parameter& get_parameter(const char *p);
virtual Parameter& get_parameter(const std::string& id);
virtual void insert_param(Glib::ustring group, Glib::ustring name);
virtual void set_init_values();
virtual bool parameter_hasId(const char *p);
virtual bool parameter_hasId(const std::string& id);
virtual void reset_unit(const PluginDef *pdef) const;
virtual bool parameter_unit_has_std_values(const PluginDef *pdef) const;
virtual void set_parameter_value(const std::string& id, int value);
virtual void set_parameter_value(const std::string& id, bool value);
virtual void set_parameter_value(const std::string& id, float value);
virtual void set_parameter_value(const std::string& id, const std::string& value);
// MidiControllerList
virtual bool midi_get_config_mode(int *ctl = 0);
virtual void midi_set_config_mode(bool v, int ctl=-1);
virtual sigc::signal<void>& signal_midi_changed();
virtual sigc::signal<void, int, int>& signal_midi_value_changed();
virtual void request_midi_value_update();
virtual int midi_size();
virtual midi_controller_list& midi_get(int n);
virtual void midi_deleteParameter(Parameter& param);
virtual void midi_set_current_control(int v);
virtual void midi_modifyCurrent(Parameter& param, float lower, float upper, bool toggle, int toggle_behaviour);
virtual int midi_param2controller(Parameter& param, const MidiController** p);
virtual void set_midi_channel(int s);
virtual void midi_feedback(int c, int v);
virtual bool get_midi_feedback();
virtual void set_midi_feedback(int v);
virtual void on_tuner_freq_changed();
// Convolver
virtual void reload_impresp_list(const std::string& path);
virtual void load_impresp_dirs(std::vector<gx_system::FileName>& dirs);
virtual bool read_audio(const std::string& filename, unsigned int *audio_size, int *audio_chan,
int *audio_type, int *audio_form, int *audio_rate, float **buffer);
};
} // namespace gx_engine
#endif // SRC_HEADERS_MACHINE_H_
avahi_register.h
AvahiService
Definition avahi_register.h:29
GxService
Definition jsonrpc.h:124
TunerSwitcher
Definition tunerswitcher.h:29
gx_engine::ControllerArray
Definition gx_parameter.h:757
gx_engine::GxEngine
Definition gx_engine.h:70
gx_engine::GxMachineBase::previus_preset_switch
virtual void previus_preset_switch()=0
gx_engine::GxMachineBase::convert_preset
virtual bool convert_preset(gx_system::PresetFileGui &pf)=0
gx_engine::GxMachineBase::_get_parameter_value_string
virtual std::string _get_parameter_value_string(const std::string &id)=0
gx_engine::GxMachineBase::request_midi_value_update
virtual void request_midi_value_update()=0
gx_engine::GxMachineBase::get_oscilloscope_mul_buffer
virtual int get_oscilloscope_mul_buffer()=0
gx_engine::GxMachineBase::tuner_switcher_signal_display
virtual sigc::signal< void, const Glib::ustring &, const Glib::ustring & > & tuner_switcher_signal_display()=0
gx_engine::GxMachineBase::bank_end
virtual bank_iterator bank_end()=0
gx_engine::GxMachineBase::process_previus_preset_switch
virtual void process_previus_preset_switch(bool s)=0
gx_engine::GxMachineBase::save_ladspalist
virtual void save_ladspalist(ladspa::LadspaPluginList &pluginlist)=0
gx_engine::GxMachineBase::bank_get_file
virtual gx_system::PresetFileGui * bank_get_file(const Glib::ustring &bank) const =0
gx_engine::GxMachineBase::midi_param2controller
virtual int midi_param2controller(Parameter &param, const MidiController **p)=0
gx_engine::GxMachineBase::load_ladspalist
virtual void load_ladspalist(std::vector< std::string > &old_not_found, ladspa::LadspaPluginList &pluginlist)=0
gx_engine::GxMachineBase::tuner_switch
virtual void tuner_switch(bool on)=0
gx_engine::GxMachineBase::process_next_preset_switch
virtual void process_next_preset_switch(bool s)=0
gx_engine::GxMachineBase::set_parameter_value
virtual void set_parameter_value(const std::string &id, float value)=0
gx_engine::GxMachineBase::bank_insert_new
virtual gx_system::PresetFileGui * bank_insert_new(const Glib::ustring &newname)=0
gx_engine::GxMachineBase::pf_insert_after
virtual void pf_insert_after(gx_system::PresetFileGui &pf, const Glib::ustring &src, gx_system::PresetFileGui &pftgt, const Glib::ustring &pos, const Glib::ustring &name)=0
gx_engine::GxMachineBase::get_parameter
virtual Parameter & get_parameter(const std::string &id)=0
gx_engine::GxMachineBase::msend_midi_cc
virtual bool msend_midi_cc(int cc, int pgn, int bgn, int num)=0
gx_engine::GxMachineBase::plugin_preset_list_load
virtual void plugin_preset_list_load(const PluginDef *pdef, gx_preset::UnitPresetList &presetnames)=0
gx_engine::GxMachineBase::bank_begin
virtual bank_iterator bank_begin()=0
gx_engine::GxMachineBase::_get_parameter_value_bool
virtual int _get_parameter_value_bool(const std::string &id)=0
gx_engine::GxMachineBase::disable_save_on_exit
virtual void disable_save_on_exit(bool v)=0
gx_engine::GxMachineBase::load_unit
virtual bool load_unit(gx_gui::UiBuilderImpl &builder, PluginDef *pdef)=0
gx_engine::GxMachineBase::signal_state_change
virtual sigc::signal< void, GxEngineState > & signal_state_change()=0
gx_engine::GxMachineBase::set_parameter_value
void set_parameter_value(const std::string &id, double value)
Definition machine.h:180
gx_engine::GxMachineBase::_signal_parameter_value_float
virtual sigc::signal< void, float > & _signal_parameter_value_float(const std::string &id)=0
gx_engine::GxMachineBase::set_parameter_value
virtual void set_parameter_value(const std::string &id, bool value)=0
gx_engine::GxMachineBase::start_socket
virtual void start_socket(sigc::slot< void > quit_mainloop, const Glib::ustring &host, int port)=0
gx_engine::GxMachineBase::save_to_state
virtual void save_to_state(bool preserve_preset=false)=0
gx_engine::GxMachineBase::setting_is_preset
virtual bool setting_is_preset()=0
gx_engine::GxMachineBase::_get_parameter_value_int
virtual int _get_parameter_value_int(const std::string &id)=0
gx_engine::GxMachineBase::signal_selection_changed
virtual sigc::signal< void > & signal_selection_changed()=0
gx_engine::GxMachineBase::GxMachineBase
GxMachineBase()
gx_engine::GxMachineBase::tuner_switcher_signal_selection_done
virtual sigc::signal< void, bool > & tuner_switcher_signal_selection_done()=0
gx_engine::GxMachineBase::insert_param
virtual void insert_param(Glib::ustring group, Glib::ustring name)=0
gx_engine::GxMachineBase::get_options
virtual gx_system::CmdlineOptions & get_options() const =0
gx_engine::GxMachineBase::bank_insert_uri
virtual gx_system::PresetFileGui * bank_insert_uri(const Glib::ustring &uri, bool move, int position)=0
gx_engine::GxMachineBase::plugin_preset_list_set
virtual void plugin_preset_list_set(const PluginDef *pdef, bool factory, const Glib::ustring &name)=0
gx_engine::GxMachineBase::tuner_switcher_signal_set_state
virtual sigc::signal< void, TunerSwitcher::SwitcherState > & tuner_switcher_signal_set_state()=0
gx_engine::GxMachineBase::rename_preset
virtual bool rename_preset(gx_system::PresetFileGui &pf, const Glib::ustring &oldname, const Glib::ustring &newname)=0
gx_engine::GxMachineBase::get_bank_index
virtual int get_bank_index(const Glib::ustring &bank)=0
gx_engine::GxMachineBase::loadstate
virtual void loadstate()=0
gx_engine::GxMachineBase::get_current_bank_file
virtual gx_system::PresetFileGui * get_current_bank_file()=0
gx_engine::GxMachineBase::get_midi_feedback
virtual bool get_midi_feedback()=0
gx_engine::GxMachineBase::create_default_scratch_preset
virtual void create_default_scratch_preset()=0
gx_engine::GxMachineBase::midi_set_current_control
virtual void midi_set_current_control(int v)=0
gx_engine::GxMachineBase::tuner_switcher_deactivate
virtual void tuner_switcher_deactivate()=0
gx_engine::GxMachineBase::get_bank_name
virtual Glib::ustring get_bank_name(int n)=0
gx_engine::GxMachineBase::update_map
output_listen_map update_map
Definition machine.h:64
gx_engine::GxMachineBase::update_parameter
virtual bool update_parameter()=0
gx_engine::GxMachineBase::reset_unit
virtual void reset_unit(const PluginDef *pdef) const =0
gx_engine::GxMachineBase::set_parameter_value
virtual void set_parameter_value(const std::string &id, const std::string &value)=0
gx_engine::GxMachineBase::load_preset
virtual void load_preset(gx_system::PresetFileGui *pf, const Glib::ustring &name)=0
gx_engine::GxMachineBase::midi_deleteParameter
virtual void midi_deleteParameter(Parameter &param)=0
gx_engine::GxMachineBase::insert_rack_unit
virtual void insert_rack_unit(const std::string &unit, const std::string &before, PluginType type)=0
gx_engine::GxMachineBase::get_tuner_note
virtual float get_tuner_note()=0
gx_engine::GxMachineBase::signal_midi_changed
virtual sigc::signal< void > & signal_midi_changed()=0
gx_engine::GxMachineBase::set_statefilename
virtual void set_statefilename(const std::string &fn)=0
gx_engine::GxMachineBase::midi_set_config_mode
virtual void midi_set_config_mode(bool v, int ctl=-1)=0
gx_engine::GxMachineBase::get_current_name
virtual const Glib::ustring & get_current_name()=0
gx_engine::GxMachineBase::reload_impresp_list
virtual void reload_impresp_list(const std::string &path)=0
gx_engine::GxMachineBase::midi_feedback
virtual void midi_feedback(int c, int v)=0
gx_engine::GxMachineBase::remove_rack_unit
virtual void remove_rack_unit(const std::string &unit, PluginType type)=0
gx_engine::GxMachineBase::pf_save
virtual void pf_save(gx_system::PresetFileGui &pf, const Glib::ustring &name)=0
gx_engine::GxMachineBase::tuner_switcher_activate
virtual void tuner_switcher_activate(bool v)=0
gx_engine::GxMachineBase::disable_autosave
virtual void disable_autosave(bool v)=0
gx_engine::GxMachineBase::bank_reorder
virtual void bank_reorder(const std::vector< Glib::ustring > &neworder)=0
gx_engine::GxMachineBase::signal_presetlist_changed
virtual sigc::signal< void > & signal_presetlist_changed()=0
gx_engine::GxMachineBase::parameter_unit_has_std_values
virtual bool parameter_unit_has_std_values(const PluginDef *pdef) const =0
gx_engine::GxMachineBase::bank_check_reparse
virtual bool bank_check_reparse()=0
gx_engine::GxMachineBase::plugin_preset_list_sync_set
virtual void plugin_preset_list_sync_set(const PluginDef *pdef, bool factory, const Glib::ustring &name)=0
gx_engine::GxMachineBase::set_init_values
virtual void set_init_values()=0
gx_engine::GxMachineBase::set_state
virtual void set_state(GxEngineState state)=0
gx_engine::GxMachineBase::bank_save
virtual void bank_save()=0
gx_engine::GxMachineBase::commit_ladspa_changes
virtual void commit_ladspa_changes()=0
gx_engine::GxMachineBase::signal_impresp_list
sigc::signal< void, const std::string &, std::vector< gx_system::FileName > > & signal_impresp_list()
Definition machine.h:202
gx_engine::GxMachineBase::_signal_parameter_value_int
virtual sigc::signal< void, int > & _signal_parameter_value_int(const std::string &id)=0
gx_engine::GxMachineBase::signal_plugin_changed
virtual sigc::signal< void, Plugin *, PluginChange::pc > & signal_plugin_changed()=0
gx_engine::GxMachineBase::set_midi_channel
virtual void set_midi_channel(int s)=0
gx_engine::GxMachineBase::parameter_hasId
virtual bool parameter_hasId(const char *p)=0
gx_engine::GxMachineBase::erase_preset
virtual void erase_preset(gx_system::PresetFileGui &pf, const Glib::ustring &name)=0
gx_engine::GxMachineBase::plugin_preset_list_save
virtual void plugin_preset_list_save(const PluginDef *pdef, const Glib::ustring &name)=0
gx_engine::GxMachineBase::set_update_parameter
void set_update_parameter(void *control, const string &id, bool on=true)
gx_engine::GxMachineBase::midi_size
virtual int midi_size()=0
gx_engine::GxMachineBase::rename_bank
virtual bool rename_bank(const Glib::ustring &oldname, Glib::ustring &newname)=0
gx_engine::GxMachineBase::tuner_switcher_toggle
virtual void tuner_switcher_toggle(bool v)=0
gx_engine::GxMachineBase::bank_get_filename
virtual std::string bank_get_filename(const Glib::ustring &bank)=0
gx_engine::GxMachineBase::tuner_used_by_midi
virtual void tuner_used_by_midi(bool on)=0
gx_engine::GxMachineBase::get_tuner_freq
virtual float get_tuner_freq()=0
gx_engine::GxMachineBase::get_parameter_value
T get_parameter_value(const std::string &id)
gx_engine::GxMachineBase::signal_parameter_value
sigc::signal< void, T > & signal_parameter_value(const std::string &id)
gx_engine::GxMachineBase::pluginlist_lookup_plugin
virtual Plugin * pluginlist_lookup_plugin(const std::string &id) const =0
gx_engine::GxMachineBase::get_tuner_switcher_active
virtual bool get_tuner_switcher_active()=0
gx_engine::GxMachineBase::get_current_bank
virtual const Glib::ustring & get_current_bank()=0
gx_engine::GxMachineBase::update_timeout
sigc::connection update_timeout
Definition machine.h:61
gx_engine::GxMachineBase::pf_insert_before
virtual void pf_insert_before(gx_system::PresetFileGui &pf, const Glib::ustring &src, gx_system::PresetFileGui &pftgt, const Glib::ustring &pos, const Glib::ustring &name)=0
gx_engine::GxMachineBase::~GxMachineBase
virtual ~GxMachineBase()
gx_engine::GxMachineBase::get_rack_unit_order
virtual const std::vector< std::string > & get_rack_unit_order(PluginType type)=0
gx_engine::GxMachineBase::next_preset_switch
virtual void next_preset_switch()=0
gx_engine::GxMachineBase::_get_parameter_value_float
virtual float _get_parameter_value_float(const std::string &id)=0
gx_engine::GxMachineBase::impresp_list
sigc::signal< void, const std::string &, std::vector< gx_system::FileName > > impresp_list
Definition machine.h:63
gx_engine::GxMachineBase::set_oscilloscope_mul_buffer
virtual void set_oscilloscope_mul_buffer(int a)=0
gx_engine::GxMachineBase::get_state
virtual GxEngineState get_state()=0
gx_engine::GxMachineBase::_signal_parameter_value_bool
virtual sigc::signal< void, bool > & _signal_parameter_value_bool(const std::string &id)=0
gx_engine::GxMachineBase::get_bank_file
virtual gx_system::PresetFileGui * get_bank_file(const Glib::ustring &bank) const =0
gx_engine::GxMachineBase::set_parameter_value
virtual void set_parameter_value(const std::string &id, int value)=0
gx_engine::GxMachineBase::get_file_list
virtual const std::vector< Glib::ustring > & get_file_list(const std::string &id)=0
gx_engine::GxMachineBase::midi_get
virtual midi_controller_list & midi_get(int n)=0
gx_engine::GxMachineBase::bank_set_flag
virtual void bank_set_flag(gx_system::PresetFileGui *pf, int flag, bool v)=0
gx_engine::GxMachineBase::load_impresp_dirs
virtual void load_impresp_dirs(std::vector< gx_system::FileName > &dirs)=0
gx_engine::GxMachineBase::bank_drag_begin
virtual void bank_drag_begin()=0
gx_engine::GxMachineBase::on_tuner_freq_changed
virtual void on_tuner_freq_changed()=0
gx_engine::GxMachineBase::set_jack_insert
virtual void set_jack_insert(bool v)=0
gx_engine::GxMachineBase::reorder_preset
virtual void reorder_preset(gx_system::PresetFileGui &pf, const std::vector< Glib::ustring > &neworder)=0
gx_engine::GxMachineBase::plugin_preset_list_remove
virtual void plugin_preset_list_remove(const PluginDef *pdef, const Glib::ustring &name)=0
gx_engine::GxMachineBase::stop_socket
virtual void stop_socket()=0
gx_engine::GxMachineBase::midi_modifyCurrent
virtual void midi_modifyCurrent(Parameter &param, float lower, float upper, bool toggle, int toggle_behaviour)=0
gx_engine::GxMachineBase::pf_append
virtual void pf_append(gx_system::PresetFileGui &pf, const Glib::ustring &src, gx_system::PresetFileGui &pftgt, const Glib::ustring &name)=0
gx_engine::GxMachineBase::signal_rack_unit_order_changed
virtual sigc::signal< void, bool > & signal_rack_unit_order_changed()=0
gx_engine::GxMachineBase::parameter_hasId
virtual bool parameter_hasId(const std::string &id)=0
gx_engine::GxMachineBase::bank_size
virtual int bank_size()=0
gx_engine::GxMachineBase::bank_remove
virtual bool bank_remove(const Glib::ustring &bank)=0
gx_engine::GxMachineBase::signal_midi_value_changed
virtual sigc::signal< void, int, int > & signal_midi_value_changed()=0
gx_engine::GxMachineBase::set_midi_feedback
virtual void set_midi_feedback(int v)=0
gx_engine::GxMachineBase::read_audio
virtual bool read_audio(const std::string &filename, unsigned int *audio_size, int *audio_chan, int *audio_type, int *audio_form, int *audio_rate, float **buffer)=0
gx_engine::GxMachineBase::get_jack
virtual gx_jack::GxJack * get_jack()=0
gx_engine::GxMachineBase::pluginlist_append_rack
virtual void pluginlist_append_rack(UiBuilderBase &ui)=0
gx_engine::GxMachineBase::plugin_preset_list_set_on_idle
virtual void plugin_preset_list_set_on_idle(const PluginDef *pdef, bool factory, const Glib::ustring &name)=0
gx_engine::GxMachineBase::tuner_used_for_display
virtual void tuner_used_for_display(bool on)=0
gx_engine::GxMachineBase::midi_get_config_mode
virtual bool midi_get_config_mode(int *ctl=0)=0
gx_engine::GxMachine::load_impresp_dirs
virtual void load_impresp_dirs(std::vector< gx_system::FileName > &dirs)
gx_engine::GxMachine::_signal_parameter_value_bool
virtual sigc::signal< void, bool > & _signal_parameter_value_bool(const std::string &id)
gx_engine::GxMachine::signal_presetlist_changed
virtual sigc::signal< void > & signal_presetlist_changed()
gx_engine::GxMachine::get_file_list
virtual const std::vector< Glib::ustring > & get_file_list(const std::string &id)
gx_engine::GxMachine::signal_state_change
virtual sigc::signal< void, GxEngineState > & signal_state_change()
gx_engine::GxMachine::set_parameter_value
virtual void set_parameter_value(const std::string &id, float value)
gx_engine::GxMachine::request_midi_value_update
virtual void request_midi_value_update()
gx_engine::GxMachine::set_parameter_value
virtual void set_parameter_value(const std::string &id, bool value)
gx_engine::GxMachine::pf_insert_before
virtual void pf_insert_before(gx_system::PresetFileGui &pf, const Glib::ustring &src, gx_system::PresetFileGui &pftgt, const Glib::ustring &pos, const Glib::ustring &name)
gx_engine::GxMachine::pf_insert_after
virtual void pf_insert_after(gx_system::PresetFileGui &pf, const Glib::ustring &src, gx_system::PresetFileGui &pftgt, const Glib::ustring &pos, const Glib::ustring &name)
gx_engine::GxMachine::reorder_preset
virtual void reorder_preset(gx_system::PresetFileGui &pf, const std::vector< Glib::ustring > &neworder)
gx_engine::GxMachine::switch_bank
Glib::ustring switch_bank
Definition machine.h:251
gx_engine::GxMachine::get_rack_unit_order
virtual const std::vector< std::string > & get_rack_unit_order(PluginType type)
gx_engine::GxMachine::load_unit
virtual bool load_unit(gx_gui::UiBuilderImpl &builder, PluginDef *pdef)
gx_engine::GxMachine::erase_preset
virtual void erase_preset(gx_system::PresetFileGui &pf, const Glib::ustring &name)
gx_engine::GxMachine::process_previus_preset_switch
virtual void process_previus_preset_switch(bool s)
gx_engine::GxMachine::get_state
virtual GxEngineState get_state()
gx_engine::GxMachine::tuner_switcher_toggle
virtual void tuner_switcher_toggle(bool v)
gx_engine::GxMachine::midi_get
virtual midi_controller_list & midi_get(int n)
gx_engine::GxMachine::save_to_state
virtual void save_to_state(bool preserve_preset=false)
gx_engine::GxMachine::bank_reorder
virtual void bank_reorder(const std::vector< Glib::ustring > &neworder)
gx_engine::GxMachine::do_bank_change
void do_bank_change(int pgm)
gx_engine::GxMachine::previus_preset_switch
virtual void previus_preset_switch()
gx_engine::GxMachine::start_socket
virtual void start_socket(sigc::slot< void > quit_mainloop, const Glib::ustring &host, int port)
gx_engine::GxMachine::set_statefilename
virtual void set_statefilename(const std::string &fn)
gx_engine::GxMachine::process_next_preset_switch
virtual void process_next_preset_switch(bool s)
gx_engine::GxMachine::exit_handler
void exit_handler(bool otherthread)
gx_engine::GxMachine::pmap
ParamMap & pmap
Definition machine.h:250
gx_engine::GxMachine::get_tuner_note
virtual float get_tuner_note()
gx_engine::GxMachine::bank_insert_new
virtual gx_system::PresetFileGui * bank_insert_new(const Glib::ustring &newname)
gx_engine::GxMachine::settings
gx_preset::GxSettings settings
Definition machine.h:244
gx_engine::GxMachine::bank_end
virtual bank_iterator bank_end()
gx_engine::GxMachine::get_jack
virtual gx_jack::GxJack * get_jack()
gx_engine::GxMachine::tuner_switcher_deactivate
virtual void tuner_switcher_deactivate()
gx_engine::GxMachine::signal_selection_changed
virtual sigc::signal< void > & signal_selection_changed()
gx_engine::GxMachine::disable_autosave
virtual void disable_autosave(bool v)
gx_engine::GxMachine::_signal_parameter_value_float
virtual sigc::signal< void, float > & _signal_parameter_value_float(const std::string &id)
gx_engine::GxMachine::do_program_change
void do_program_change(int pgm)
gx_engine::GxMachine::midi_size
virtual int midi_size()
gx_engine::GxMachine::stop_socket
virtual void stop_socket()
gx_engine::GxMachine::signal_midi_value_changed
virtual sigc::signal< void, int, int > & signal_midi_value_changed()
gx_engine::GxMachine::get_oscilloscope_mul_buffer
virtual int get_oscilloscope_mul_buffer()
gx_engine::GxMachine::set_state
virtual void set_state(GxEngineState state)
gx_engine::GxMachine::commit_ladspa_changes
virtual void commit_ladspa_changes()
gx_engine::GxMachine::reset_switch_bank
void reset_switch_bank()
gx_engine::GxMachine::pluginlist_lookup_plugin
virtual Plugin * pluginlist_lookup_plugin(const std::string &id) const
gx_engine::GxMachine::set_parameter_value
virtual void set_parameter_value(const std::string &id, int value)
gx_engine::GxMachine::msend_midi_cc
virtual bool msend_midi_cc(int cc, int pgn, int bgn, int num)
gx_engine::GxMachine::reset_unit
virtual void reset_unit(const PluginDef *pdef) const
gx_engine::GxMachine::parameter_hasId
virtual bool parameter_hasId(const char *p)
gx_engine::GxMachine::midi_set_current_control
virtual void midi_set_current_control(int v)
gx_engine::GxMachine::midi_get_config_mode
virtual bool midi_get_config_mode(int *ctl=0)
gx_engine::GxMachine::_get_parameter_value_float
virtual float _get_parameter_value_float(const std::string &id)
gx_engine::GxMachine::loadstate
virtual void loadstate()
gx_engine::GxMachine::pluginlist_append_rack
virtual void pluginlist_append_rack(UiBuilderBase &ui)
gx_engine::GxMachine::get_options
virtual gx_system::CmdlineOptions & get_options() const
gx_engine::GxMachine::edge_toggle_tuner
void edge_toggle_tuner(bool v)
gx_engine::GxMachine::tuner_used_by_midi
virtual void tuner_used_by_midi(bool on)
gx_engine::GxMachine::midi_deleteParameter
virtual void midi_deleteParameter(Parameter &param)
gx_engine::GxMachine::_get_parameter_value_string
virtual std::string _get_parameter_value_string(const std::string &id)
gx_engine::GxMachine::parameter_unit_has_std_values
virtual bool parameter_unit_has_std_values(const PluginDef *pdef) const
gx_engine::GxMachine::get_tuner_switcher_active
virtual bool get_tuner_switcher_active()
gx_engine::GxMachine::read_audio
virtual bool read_audio(const std::string &filename, unsigned int *audio_size, int *audio_chan, int *audio_type, int *audio_form, int *audio_rate, float **buffer)
gx_engine::GxMachine::load_ladspalist
virtual void load_ladspalist(std::vector< std::string > &old_not_found, ladspa::LadspaPluginList &pluginlist)
gx_engine::GxMachine::on_impresp
void on_impresp(const std::string &path)
gx_engine::GxMachine::set_midi_channel
virtual void set_midi_channel(int s)
gx_engine::GxMachine::plugin_preset_list_set_on_idle
virtual void plugin_preset_list_set_on_idle(const PluginDef *pdef, bool factory, const Glib::ustring &name)
gx_engine::GxMachine::remove_rack_unit
virtual void remove_rack_unit(const std::string &unit, PluginType type)
gx_engine::GxMachine::save_ladspalist
virtual void save_ladspalist(ladspa::LadspaPluginList &pluginlist)
gx_engine::GxMachine::options
gx_system::CmdlineOptions & options
Definition machine.h:241
gx_engine::GxMachine::get_bank_index
virtual int get_bank_index(const Glib::ustring &bank)
gx_engine::GxMachine::tuner_used_for_display
virtual void tuner_used_for_display(bool on)
gx_engine::GxMachine::bank_size
virtual int bank_size()
gx_engine::GxMachine::midi_set_config_mode
virtual void midi_set_config_mode(bool v, int ctl=-1)
gx_engine::GxMachine::bank_check_reparse
virtual bool bank_check_reparse()
gx_engine::GxMachine::get_current_bank_file
virtual gx_system::PresetFileGui * get_current_bank_file()
gx_engine::GxMachine::rename_preset
virtual bool rename_preset(gx_system::PresetFileGui &pf, const Glib::ustring &oldname, const Glib::ustring &newname)
gx_engine::GxMachine::get_parameter
virtual Parameter & get_parameter(const char *p)
gx_engine::GxMachine::plugin_preset_list_sync_set
virtual void plugin_preset_list_sync_set(const PluginDef *pdef, bool factory, const Glib::ustring &name)
gx_engine::GxMachine::signal_plugin_changed
virtual sigc::signal< void, Plugin *, PluginChange::pc > & signal_plugin_changed()
gx_engine::GxMachine::disable_save_on_exit
virtual void disable_save_on_exit(bool v)
gx_engine::GxMachine::~GxMachine
virtual ~GxMachine()
gx_engine::GxMachine::get_tuner_freq
virtual float get_tuner_freq()
gx_engine::GxMachine::_get_parameter_value_bool
virtual int _get_parameter_value_bool(const std::string &id)
gx_engine::GxMachine::set_oscilloscope_mul_buffer
virtual void set_oscilloscope_mul_buffer(int a)
gx_engine::GxMachine::plugin_preset_list_remove
virtual void plugin_preset_list_remove(const PluginDef *pdef, const Glib::ustring &name)
gx_engine::GxMachine::tuner_switcher_activate
virtual void tuner_switcher_activate(bool v)
gx_engine::GxMachine::load_preset
virtual void load_preset(gx_system::PresetFileGui *pf, const Glib::ustring &name)
gx_engine::GxMachine::set_parameter_value
virtual void set_parameter_value(const std::string &id, const std::string &value)
gx_engine::GxMachine::signal_rack_unit_order_changed
virtual sigc::signal< void, bool > & signal_rack_unit_order_changed()
gx_engine::GxMachine::create_default_scratch_preset
virtual void create_default_scratch_preset()
gx_engine::GxMachine::bank_save
virtual void bank_save()
gx_engine::GxMachine::midi_param2controller
virtual int midi_param2controller(Parameter &param, const MidiController **p)
gx_engine::GxMachine::process_cmdline_bank_preset
void process_cmdline_bank_preset()
gx_engine::GxMachine::get_bank_file
virtual gx_system::PresetFileGui * get_bank_file(const Glib::ustring &bank) const
gx_engine::GxMachine::set_mute_state
void set_mute_state(int mute)
gx_engine::GxMachine::midi_modifyCurrent
virtual void midi_modifyCurrent(Parameter &param, float lower, float upper, bool toggle, int toggle_behaviour)
gx_engine::GxMachine::pf_append
virtual void pf_append(gx_system::PresetFileGui &pf, const Glib::ustring &src, gx_system::PresetFileGui &pftgt, const Glib::ustring &name)
gx_engine::GxMachine::rename_bank
virtual bool rename_bank(const Glib::ustring &oldname, Glib::ustring &newname)
gx_engine::GxMachine::plugin_preset_list_save
virtual void plugin_preset_list_save(const PluginDef *pdef, const Glib::ustring &name)
gx_engine::GxMachine::signal_midi_changed
virtual sigc::signal< void > & signal_midi_changed()
gx_engine::GxMachine::bank_set_flag
virtual void bank_set_flag(gx_system::PresetFileGui *pf, int flag, bool v)
gx_engine::GxMachine::engine
GxEngine engine
Definition machine.h:242
gx_engine::GxMachine::on_tuner_freq_changed
virtual void on_tuner_freq_changed()
gx_engine::GxMachine::next_preset_switch
virtual void next_preset_switch()
gx_engine::GxMachine::set_init_values
virtual void set_init_values()
gx_engine::GxMachine::midi_feedback
virtual void midi_feedback(int c, int v)
gx_engine::GxMachine::tuner_switcher_signal_display
virtual sigc::signal< void, const Glib::ustring &, const Glib::ustring & > & tuner_switcher_signal_display()
gx_engine::GxMachine::bank_remove
virtual bool bank_remove(const Glib::ustring &bank)
gx_engine::GxMachine::get_current_bank
virtual const Glib::ustring & get_current_bank()
gx_engine::GxMachine::get_current_name
virtual const Glib::ustring & get_current_name()
gx_engine::GxMachine::sock
GxService * sock
Definition machine.h:246
gx_engine::GxMachine::bank_get_file
virtual gx_system::PresetFileGui * bank_get_file(const Glib::ustring &bank) const
gx_engine::GxMachine::tuner_switcher_signal_set_state
virtual sigc::signal< void, TunerSwitcher::SwitcherState > & tuner_switcher_signal_set_state()
gx_engine::GxMachine::get_midi_feedback
virtual bool get_midi_feedback()
gx_engine::GxMachine::_signal_parameter_value_int
virtual sigc::signal< void, int > & _signal_parameter_value_int(const std::string &id)
gx_engine::GxMachine::plugin_preset_list_load
virtual void plugin_preset_list_load(const PluginDef *pdef, gx_preset::UnitPresetList &presetnames)
gx_engine::GxMachine::set_jack_insert
virtual void set_jack_insert(bool v)
gx_engine::GxMachine::reload_impresp_list
virtual void reload_impresp_list(const std::string &path)
gx_engine::GxMachine::bank_drag_begin
virtual void bank_drag_begin()
gx_engine::GxMachine::GxMachine
GxMachine(gx_system::CmdlineOptions &options)
gx_engine::GxMachine::tuner_switcher
TunerSwitcher tuner_switcher
Definition machine.h:245
gx_engine::GxMachine::jack
gx_jack::GxJack jack
Definition machine.h:243
gx_engine::GxMachine::bank_begin
virtual bank_iterator bank_begin()
gx_engine::GxMachine::get_bank_name
virtual Glib::ustring get_bank_name(int n)
gx_engine::GxMachine::plugin_preset_list_set
virtual void plugin_preset_list_set(const PluginDef *pdef, bool factory, const Glib::ustring &name)
gx_engine::GxMachine::bank_get_filename
virtual std::string bank_get_filename(const Glib::ustring &bank)
gx_engine::GxMachine::get_parameter
virtual Parameter & get_parameter(const std::string &id)
gx_engine::GxMachine::convert_preset
virtual bool convert_preset(gx_system::PresetFileGui &pf)
gx_engine::GxMachine::set_midi_feedback
virtual void set_midi_feedback(int v)
gx_engine::GxMachine::parameter_hasId
virtual bool parameter_hasId(const std::string &id)
gx_engine::GxMachine::_get_parameter_value_int
virtual int _get_parameter_value_int(const std::string &id)
gx_engine::GxMachine::bank_insert_uri
virtual gx_system::PresetFileGui * bank_insert_uri(const Glib::ustring &uri, bool move, int position)
gx_engine::GxMachine::insert_param
virtual void insert_param(Glib::ustring group, Glib::ustring name)
gx_engine::GxMachine::setting_is_preset
virtual bool setting_is_preset()
gx_engine::GxMachine::tuner_switch
virtual void tuner_switch(bool on)
gx_engine::GxMachine::insert_rack_unit
virtual void insert_rack_unit(const std::string &unit, const std::string &before, PluginType type)
gx_engine::GxMachine::pf_save
virtual void pf_save(gx_system::PresetFileGui &pf, const Glib::ustring &name)
gx_engine::GxMachine::update_parameter
virtual bool update_parameter()
gx_engine::GxMachine::tuner_switcher_signal_selection_done
virtual sigc::signal< void, bool > & tuner_switcher_signal_selection_done()
gx_engine::GxMachineRemote::bank_size
virtual int bank_size()
gx_engine::GxMachineRemote::bank_insert_new
virtual gx_system::PresetFileGui * bank_insert_new(const Glib::ustring &newname)
gx_engine::GxMachineRemote::options
gx_system::CmdlineOptions & options
Definition machine.h:409
gx_engine::GxMachineRemote::midi_get_last_controller_value
int midi_get_last_controller_value(int ctl)
gx_engine::GxMachineRemote::bank_drag_get_counter
int bank_drag_get_counter
Definition machine.h:434
gx_engine::GxMachineRemote::set_statefilename
virtual void set_statefilename(const std::string &fn)
gx_engine::GxMachineRemote::parameter_hasId
virtual bool parameter_hasId(const char *p)
gx_engine::GxMachineRemote::set_midi_channel
virtual void set_midi_channel(int s)
gx_engine::GxMachineRemote::get_jack
virtual gx_jack::GxJack * get_jack()
gx_engine::GxMachineRemote::create_default_scratch_preset
virtual void create_default_scratch_preset()
gx_engine::GxMachineRemote::tuner_used_for_display
virtual void tuner_used_for_display(bool on)
gx_engine::GxMachineRemote::_signal_parameter_value_bool
virtual sigc::signal< void, bool > & _signal_parameter_value_bool(const std::string &id)
gx_engine::GxMachineRemote::commit_ladspa_changes
virtual void commit_ladspa_changes()
gx_engine::GxMachineRemote::pmap
ParamMap pmap
Definition machine.h:410
gx_engine::GxMachineRemote::bank_reorder
virtual void bank_reorder(const std::vector< Glib::ustring > &neworder)
gx_engine::GxMachineRemote::previus_preset_switch
virtual void previus_preset_switch()
gx_engine::GxMachineRemote::signal_midi_value_changed
virtual sigc::signal< void, int, int > & signal_midi_value_changed()
gx_engine::GxMachineRemote::load_ladspalist
virtual void load_ladspalist(std::vector< std::string > &old_not_found, ladspa::LadspaPluginList &pluginlist)
gx_engine::GxMachineRemote::get_bank_name
virtual Glib::ustring get_bank_name(int n)
gx_engine::GxMachineRemote::bank_get_file
virtual gx_system::PresetFileGui * bank_get_file(const Glib::ustring &bank) const
gx_engine::GxMachineRemote::tuner_switch
virtual void tuner_switch(bool on)
gx_engine::GxMachineRemote::signal_selection_changed
virtual sigc::signal< void > & signal_selection_changed()
gx_engine::GxMachineRemote::signal_presetlist_changed
virtual sigc::signal< void > & signal_presetlist_changed()
gx_engine::GxMachineRemote::bank_remove
virtual bool bank_remove(const Glib::ustring &bank)
gx_engine::GxMachineRemote::signal_midi_changed
virtual sigc::signal< void > & signal_midi_changed()
gx_engine::GxMachineRemote::set_state
virtual void set_state(GxEngineState state)
gx_engine::GxMachineRemote::disable_autosave
virtual void disable_autosave(bool v)
gx_engine::GxMachineRemote::pluginlist_lookup_plugin
virtual Plugin * pluginlist_lookup_plugin(const std::string &id) const
gx_engine::GxMachineRemote::setting_is_preset
virtual bool setting_is_preset()
gx_engine::GxMachineRemote::start_socket
virtual void start_socket(sigc::slot< void > quit_mainloop, const Glib::ustring &host, int port)
gx_engine::GxMachineRemote::bank_insert_uri
virtual gx_system::PresetFileGui * bank_insert_uri(const Glib::ustring &uri, bool move, int position)
gx_engine::GxMachineRemote::banks
gx_system::PresetBanks banks
Definition machine.h:412
gx_engine::GxMachineRemote::throw_error
void throw_error(gx_system::JsonStringParser *jp)
gx_engine::GxMachineRemote::signal_state_change
virtual sigc::signal< void, GxEngineState > & signal_state_change()
gx_engine::GxMachineRemote::tuner_switcher_signal_display
virtual sigc::signal< void, const Glib::ustring &, const Glib::ustring & > & tuner_switcher_signal_display()
gx_engine::GxMachineRemote::read_audio
virtual bool read_audio(const std::string &filename, unsigned int *audio_size, int *audio_chan, int *audio_type, int *audio_form, int *audio_rate, float **buffer)
gx_engine::GxMachineRemote::set_midi_feedback
virtual void set_midi_feedback(int v)
gx_engine::GxMachineRemote::current_bank
Glib::ustring current_bank
Definition machine.h:432
gx_engine::GxMachineRemote::get_current_name
virtual const Glib::ustring & get_current_name()
gx_engine::GxMachineRemote::socket
Glib::RefPtr< Gio::Socket > socket
Definition machine.h:416
gx_engine::GxMachineRemote::get_current_bank_file
virtual gx_system::PresetFileGui * get_current_bank_file()
gx_engine::GxMachineRemote::socket_error
void socket_error(int loc)
gx_engine::GxMachineRemote::pf_insert_after
virtual void pf_insert_after(gx_system::PresetFileGui &pf, const Glib::ustring &src, gx_system::PresetFileGui &pftgt, const Glib::ustring &pos, const Glib::ustring &name)
gx_engine::GxMachineRemote::midi_get_config_mode
virtual bool midi_get_config_mode(int *ctl=0)
gx_engine::GxMachineRemote::get_options
virtual gx_system::CmdlineOptions & get_options() const
gx_engine::GxMachineRemote::list
std::vector< Glib::ustring > list
Definition machine.h:417
gx_engine::GxMachineRemote::start_call
const jsonrpc_method_def & start_call(jsonrpc_method m_id)
gx_engine::GxMachineRemote::plugin_preset_list_sync_set
virtual void plugin_preset_list_sync_set(const PluginDef *pdef, bool factory, const Glib::ustring &name)
gx_engine::GxMachineRemote::midi_deleteParameter
virtual void midi_deleteParameter(Parameter &param)
gx_engine::GxMachineRemote::pf_save
virtual void pf_save(gx_system::PresetFileGui &pf, const Glib::ustring &name)
gx_engine::GxMachineRemote::load_preset
virtual void load_preset(gx_system::PresetFileGui *pf, const Glib::ustring &name)
gx_engine::GxMachineRemote::erase_preset
virtual void erase_preset(gx_system::PresetFileGui &pf, const Glib::ustring &name)
gx_engine::GxMachineRemote::pluginlist
PluginListBase pluginlist
Definition machine.h:411
gx_engine::GxMachineRemote::set_parameter_value
virtual void set_parameter_value(const std::string &id, int value)
gx_engine::GxMachineRemote::midi_set_current_control
virtual void midi_set_current_control(int v)
gx_engine::GxMachineRemote::get_midi_feedback
virtual bool get_midi_feedback()
gx_engine::GxMachineRemote::create_bluetooth_socket
void create_bluetooth_socket(const Glib::ustring &bdaddr)
gx_engine::GxMachineRemote::rack_units
gx_preset::UnitRacks rack_units
Definition machine.h:428
gx_engine::GxMachineRemote::remove_rack_unit
virtual void remove_rack_unit(const std::string &unit, PluginType type)
gx_engine::GxMachineRemote::tuner_switcher_display
sigc::signal< void, const Glib::ustring &, const Glib::ustring & > tuner_switcher_display
Definition machine.h:436
gx_engine::GxMachineRemote::convert_preset
virtual bool convert_preset(gx_system::PresetFileGui &pf)
gx_engine::GxMachineRemote::tuner_switcher_signal_set_state
virtual sigc::signal< void, TunerSwitcher::SwitcherState > & tuner_switcher_signal_set_state()
gx_engine::GxMachineRemote::save_ladspalist
virtual void save_ladspalist(ladspa::LadspaPluginList &pluginlist)
gx_engine::GxMachineRemote::tuner_switcher_toggle
virtual void tuner_switcher_toggle(bool v)
gx_engine::GxMachineRemote::_get_parameter_value_int
virtual int _get_parameter_value_int(const std::string &id)
gx_engine::GxMachineRemote::report_rpc_error
void report_rpc_error(gx_system::JsonStringParser *jp, const gx_system::JsonException &e, const char *method=0)
gx_engine::GxMachineRemote::bank_drag_begin
virtual void bank_drag_begin()
gx_engine::GxMachineRemote::get_bank_index
virtual int get_bank_index(const Glib::ustring &bank)
gx_engine::GxMachineRemote::midi_size
virtual int midi_size()
gx_engine::GxMachineRemote::get_parameter
virtual Parameter & get_parameter(const char *p)
gx_engine::GxMachineRemote::set_parameter_value
virtual void set_parameter_value(const std::string &id, bool value)
gx_engine::GxMachineRemote::midi_param2controller
virtual int midi_param2controller(Parameter &param, const MidiController **p)
gx_engine::GxMachineRemote::save_to_state
virtual void save_to_state(bool preserve_preset=false)
gx_engine::GxMachineRemote::parameter_changed
void parameter_changed(gx_system::JsonStringParser *jp)
gx_engine::GxMachineRemote::get_state
virtual GxEngineState get_state()
gx_engine::GxMachineRemote::signal_rack_unit_order_changed
virtual sigc::signal< void, bool > & signal_rack_unit_order_changed()
gx_engine::GxMachineRemote::disable_save_on_exit
virtual void disable_save_on_exit(bool v)
gx_engine::GxMachineRemote::rename_preset
virtual bool rename_preset(gx_system::PresetFileGui &pf, const Glib::ustring &oldname, const Glib::ustring &newname)
gx_engine::GxMachineRemote::writebuf
boost::iostreams::file_descriptor_sink * writebuf
Definition machine.h:422
gx_engine::GxMachineRemote::loadstate
virtual void loadstate()
gx_engine::GxMachineRemote::_get_parameter_value_float
virtual float _get_parameter_value_float(const std::string &id)
gx_engine::GxMachineRemote::set_init_values
virtual void set_init_values()
gx_engine::GxMachineRemote::parameter_unit_has_std_values
virtual bool parameter_unit_has_std_values(const PluginDef *pdef) const
gx_engine::GxMachineRemote::load_unit
virtual bool load_unit(gx_gui::UiBuilderImpl &builder, PluginDef *pdef)
gx_engine::GxMachineRemote::tuner_switcher_set_state
sigc::signal< void, TunerSwitcher::SwitcherState > tuner_switcher_set_state
Definition machine.h:437
gx_engine::GxMachineRemote::get_parameter
virtual Parameter & get_parameter(const std::string &id)
gx_engine::GxMachineRemote::parameter_hasId
virtual bool parameter_hasId(const std::string &id)
gx_engine::GxMachineRemote::on_tuner_freq_changed
virtual void on_tuner_freq_changed()
gx_engine::GxMachineRemote::get_file_list
virtual const std::vector< Glib::ustring > & get_file_list(const std::string &id)
gx_engine::GxMachineRemote::get_bool
bool get_bool(gx_system::JsonStringParser *jp)
gx_engine::GxMachineRemote::bank_get_filename
virtual std::string bank_get_filename(const Glib::ustring &bank)
gx_engine::GxMachineRemote::signal_plugin_changed
virtual sigc::signal< void, Plugin *, PluginChange::pc > & signal_plugin_changed()
gx_engine::GxMachineRemote::next_preset_switch
virtual void next_preset_switch()
gx_engine::GxMachineRemote::handle_notify
void handle_notify(gx_system::JsonStringParser *jp)
gx_engine::GxMachineRemote::midi_set_config_mode
virtual void midi_set_config_mode(bool v, int ctl=-1)
gx_engine::GxMachineRemote::jw
gx_system::JsonWriter * jw
Definition machine.h:425
gx_engine::GxMachineRemote::socket_input_handler
bool socket_input_handler(Glib::IOCondition cond)
gx_engine::GxMachineRemote::plugin_preset_list_remove
virtual void plugin_preset_list_remove(const PluginDef *pdef, const Glib::ustring &name)
gx_engine::GxMachineRemote::bank_set_flag
virtual void bank_set_flag(gx_system::PresetFileGui *pf, int flag, bool v)
gx_engine::GxMachineRemote::_get_parameter_value_bool
virtual int _get_parameter_value_bool(const std::string &id)
gx_engine::GxMachineRemote::get_rack_unit_order
virtual const std::vector< std::string > & get_rack_unit_order(PluginType type)
gx_engine::GxMachineRemote::plugin_changed
sigc::signal< void, Plugin *, PluginChange::pc > plugin_changed
Definition machine.h:439
gx_engine::GxMachineRemote::pluginlist_append_rack
virtual void pluginlist_append_rack(UiBuilderBase &ui)
gx_engine::GxMachineRemote::_signal_parameter_value_int
virtual sigc::signal< void, int > & _signal_parameter_value_int(const std::string &id)
gx_engine::GxMachineRemote::midi_controller_map
ControllerArray midi_controller_map
Definition machine.h:431
gx_engine::GxMachineRemote::update_plugins
void update_plugins(gx_system::JsonParser *jp)
gx_engine::GxMachineRemote::param_signal
void param_signal(Parameter *p)
gx_engine::GxMachineRemote::tuner_switcher_signal_selection_done
virtual sigc::signal< void, bool > & tuner_switcher_signal_selection_done()
gx_engine::GxMachineRemote::load_remote_ui
int load_remote_ui(const UiBuilder &builder, int form)
gx_engine::GxMachineRemote::set_parameter_value
virtual void set_parameter_value(const std::string &id, const std::string &value)
gx_engine::GxMachineRemote::plugin_preset_list_load
virtual void plugin_preset_list_load(const PluginDef *pdef, gx_preset::UnitPresetList &presetnames)
gx_engine::GxMachineRemote::rename_bank
virtual bool rename_bank(const Glib::ustring &oldname, Glib::ustring &newname)
gx_engine::GxMachineRemote::os
boost::iostreams::stream< boost::iostreams::file_descriptor_sink > * os
Definition machine.h:423
gx_engine::GxMachineRemote::GxMachineRemote
GxMachineRemote(gx_system::CmdlineOptions &options)
gx_engine::GxMachineRemote::reset_unit
virtual void reset_unit(const PluginDef *pdef) const
gx_engine::GxMachineRemote::plugin_preset_list_set
virtual void plugin_preset_list_set(const PluginDef *pdef, bool factory, const Glib::ustring &name)
gx_engine::GxMachineRemote::send
void send()
gx_engine::GxMachineRemote::process_previus_preset_switch
virtual void process_previus_preset_switch(bool s)
gx_engine::GxMachineRemote::pf_insert_before
virtual void pf_insert_before(gx_system::PresetFileGui &pf, const Glib::ustring &src, gx_system::PresetFileGui &pftgt, const Glib::ustring &pos, const Glib::ustring &name)
gx_engine::GxMachineRemote::get_tuner_note
virtual float get_tuner_note()
gx_engine::GxMachineRemote::tuner_switcher_activate
virtual void tuner_switcher_activate(bool v)
gx_engine::GxMachineRemote::tuner_switcher_deactivate
virtual void tuner_switcher_deactivate()
gx_engine::GxMachineRemote::stop_socket
virtual void stop_socket()
gx_engine::GxMachineRemote::current_preset
Glib::ustring current_preset
Definition machine.h:433
gx_engine::GxMachineRemote::receive
gx_system::JsonStringParser * receive()
gx_engine::GxMachineRemote::notify_list
std::vector< gx_system::JsonStringParser * > notify_list
Definition machine.h:426
gx_engine::GxMachineRemote::tuner_used_by_midi
virtual void tuner_used_by_midi(bool on)
gx_engine::GxMachineRemote::set_jack_insert
virtual void set_jack_insert(bool v)
gx_engine::GxMachineRemote::get_tuner_switcher_active
virtual bool get_tuner_switcher_active()
gx_engine::GxMachineRemote::bank_save
virtual void bank_save()
gx_engine::GxMachineRemote::get_tuner_freq
virtual float get_tuner_freq()
gx_engine::GxMachineRemote::engine_state_change
sigc::signal< void, GxEngineState > engine_state_change
Definition machine.h:413
gx_engine::GxMachineRemote::midi_feedback
virtual void midi_feedback(int c, int v)
gx_engine::GxMachineRemote::bank_end
virtual bank_iterator bank_end()
gx_engine::GxMachineRemote::midi_modifyCurrent
virtual void midi_modifyCurrent(Parameter &param, float lower, float upper, bool toggle, int toggle_behaviour)
gx_engine::GxMachineRemote::create_tcp_socket
void create_tcp_socket()
gx_engine::GxMachineRemote::set_oscilloscope_mul_buffer
virtual void set_oscilloscope_mul_buffer(int a)
gx_engine::GxMachineRemote::reorder_preset
virtual void reorder_preset(gx_system::PresetFileGui &pf, const std::vector< Glib::ustring > &neworder)
gx_engine::GxMachineRemote::_get_parameter_value_string
virtual std::string _get_parameter_value_string(const std::string &id)
gx_engine::GxMachineRemote::plugin_preset_list_save
virtual void plugin_preset_list_save(const PluginDef *pdef, const Glib::ustring &name)
gx_engine::GxMachineRemote::~GxMachineRemote
virtual ~GxMachineRemote()
gx_engine::GxMachineRemote::load_impresp_dirs
virtual void load_impresp_dirs(std::vector< gx_system::FileName > &dirs)
gx_engine::GxMachineRemote::idle_notify_handler
bool idle_notify_handler()
gx_engine::GxMachineRemote::presetlist_changed
sigc::signal< void > presetlist_changed
Definition machine.h:415
gx_engine::GxMachineRemote::bank_begin
virtual bank_iterator bank_begin()
gx_engine::GxMachineRemote::get_oscilloscope_mul_buffer
virtual int get_oscilloscope_mul_buffer()
gx_engine::GxMachineRemote::midi_changed
sigc::signal< void > midi_changed
Definition machine.h:429
gx_engine::GxMachineRemote::tuner_switcher_selection_done
sigc::signal< void, bool > tuner_switcher_selection_done
Definition machine.h:438
gx_engine::GxMachineRemote::insert_param
virtual void insert_param(Glib::ustring group, Glib::ustring name)
gx_engine::GxMachineRemote::update_parameter
virtual bool update_parameter()
gx_engine::GxMachineRemote::add_idle_handler
void add_idle_handler()
gx_engine::GxMachineRemote::request_midi_value_update
virtual void request_midi_value_update()
gx_engine::GxMachineRemote::process_next_preset_switch
virtual void process_next_preset_switch(bool s)
gx_engine::GxMachineRemote::set_parameter_value
virtual void set_parameter_value(const std::string &id, float value)
gx_engine::GxMachineRemote::midi_get
virtual midi_controller_list & midi_get(int n)
gx_engine::GxMachineRemote::plugin_preset_list_set_on_idle
virtual void plugin_preset_list_set_on_idle(const PluginDef *pdef, bool factory, const Glib::ustring &name)
gx_engine::GxMachineRemote::_signal_parameter_value_float
virtual sigc::signal< void, float > & _signal_parameter_value_float(const std::string &id)
gx_engine::GxMachineRemote::midi_value_changed
sigc::signal< void, int, int > midi_value_changed
Definition machine.h:430
gx_engine::GxMachineRemote::reload_impresp_list
virtual void reload_impresp_list(const std::string &path)
gx_engine::GxMachineRemote::pf_append
virtual void pf_append(gx_system::PresetFileGui &pf, const Glib::ustring &src, gx_system::PresetFileGui &pftgt, const Glib::ustring &name)
gx_engine::GxMachineRemote::get_bank_file
virtual gx_system::PresetFileGui * get_bank_file(const Glib::ustring &bank) const
gx_engine::GxMachineRemote::bank_drag_get_path
std::string bank_drag_get_path
Definition machine.h:435
gx_engine::GxMachineRemote::insert_rack_unit
virtual void insert_rack_unit(const std::string &unit, const std::string &before, PluginType type)
gx_engine::GxMachineRemote::bank_check_reparse
virtual bool bank_check_reparse()
gx_engine::GxMachineRemote::midi_set_last_controller_value
void midi_set_last_controller_value(int ctl, int v)
gx_engine::GxMachineRemote::get_current_bank
virtual const Glib::ustring & get_current_bank()
gx_engine::GxMachineRemote::msend_midi_cc
virtual bool msend_midi_cc(int cc, int pgn, int bgn, int num)
gx_engine::GxMachineRemote::idle_conn
sigc::connection idle_conn
Definition machine.h:427
gx_engine::GxMachineRemote::selection_changed
sigc::signal< void > selection_changed
Definition machine.h:414
gx_engine::MidiController
Definition gx_parameter.h:706
gx_engine::ModuleSequencer::start_ramp_down
virtual void start_ramp_down()
gx_engine::ModuleSequencer::wait_ramp_down_finished
virtual void wait_ramp_down_finished()
gx_engine::ParamMap
Definition gx_parameter.h:535
gx_engine::Parameter
Definition gx_parameter.h:107
gx_engine::Plugin
Definition gx_pluginloader.h:45
gx_engine::PluginListBase
Definition gx_pluginloader.h:129
gx_engine::UiBuilderBase
Definition gx_pluginloader.h:89
gx_engine::bank_iterator
Definition machine.h:45
gx_engine::bank_iterator::operator->
gx_system::PresetFileGui * operator->()
Definition machine.h:53
gx_engine::bank_iterator::bank_iterator
bank_iterator(gx_system::PresetBanks::iterator it_)
Definition machine.h:49
gx_engine::bank_iterator::operator!=
bool operator!=(const bank_iterator &i) const
Definition machine.h:51
gx_engine::bank_iterator::operator*
gx_system::PresetFileGui * operator*()
Definition machine.h:54
gx_engine::bank_iterator::~bank_iterator
~bank_iterator()
Definition machine.h:50
gx_engine::bank_iterator::it
gx_system::PresetBanks::iterator it
Definition machine.h:47
gx_engine::bank_iterator::operator++
bank_iterator & operator++()
Definition machine.h:52
gx_gui::UiBuilderImpl
Definition gx_ui_builder.h:181
gx_jack::GxJack
Definition gx_jack.h:168
gx_preset::GxSettings
Definition gx_preset.h:140
gx_preset::UnitRacks
Definition gx_preset.h:39
gx_system::CmdlineOptions
Definition gx_system.h:395
gx_system::JsonException
Definition gx_json.h:40
gx_system::JsonParser
Definition gx_json.h:112
gx_system::JsonStringParser
Definition gx_json.h:202
gx_system::JsonWriter
Definition gx_json.h:55
gx_system::PresetBanks::iterator
Definition gx_json.h:427
gx_system::PresetBanks
Definition gx_json.h:415
gx_system::PresetFileGui
Definition gx_json.h:373
gx_system::PresetFile::get_guiwrapper
PresetFileGui * get_guiwrapper()
Definition gx_json.h:396
ladspa::LadspaPluginList
Definition ladspaback.h:201
PluginType
PluginType
Definition machine.h:38
PLUGIN_TYPE_MONO
@ PLUGIN_TYPE_MONO
Definition machine.h:39
PLUGIN_TYPE_STEREO
@ PLUGIN_TYPE_STEREO
Definition machine.h:40
gx_engine
Definition gx_convolver.h:37
gx_engine::midi_controller_list
list< MidiController > midi_controller_list
Definition gx_parameter.h:731
gx_engine::output_listen_map
map< string, set< void * > > output_listen_map
Definition machine.h:57
gx_engine::GxEngineState
GxEngineState
Definition gx_modulesequencer.h:301
gx_gui
Definition gx_gui_helpers.h:28
gx_preset::UnitPresetList
std::vector< PluginPresetEntry > UnitPresetList
Definition gx_preset.h:138
PluginDef
Definition gx_plugin.h:195
UiBuilder
Definition gx_plugin.h:63