Browse Source

Do not include auto-generated files

pull/1/head
falkTX 5 years ago
parent
commit
1ad5a1931d
32 changed files with 0 additions and 21470 deletions
  1. +0
    -2452
      zynaddsubfx/UI/ADnoteUI.cpp
  2. +0
    -308
      zynaddsubfx/UI/ADnoteUI.h
  3. +0
    -196
      zynaddsubfx/UI/BankUI.cpp
  4. +0
    -60
      zynaddsubfx/UI/BankUI.h
  5. +0
    -397
      zynaddsubfx/UI/ConfigUI.cpp
  6. +0
    -90
      zynaddsubfx/UI/ConfigUI.h
  7. +0
    -3024
      zynaddsubfx/UI/EffUI.cpp
  8. +0
    -318
      zynaddsubfx/UI/EffUI.h
  9. +0
    -1352
      zynaddsubfx/UI/EnvelopeUI.cpp
  10. +0
    -256
      zynaddsubfx/UI/EnvelopeUI.h
  11. +0
    -905
      zynaddsubfx/UI/FilterUI.cpp
  12. +0
    -161
      zynaddsubfx/UI/FilterUI.h
  13. +0
    -251
      zynaddsubfx/UI/LFOUI.cpp
  14. +0
    -44
      zynaddsubfx/UI/LFOUI.h
  15. +0
    -2547
      zynaddsubfx/UI/MasterUI.cpp
  16. +0
    -417
      zynaddsubfx/UI/MasterUI.h
  17. +0
    -449
      zynaddsubfx/UI/MicrotonalUI.cpp
  18. +0
    -79
      zynaddsubfx/UI/MicrotonalUI.h
  19. +0
    -1336
      zynaddsubfx/UI/OscilGenUI.cpp
  20. +0
    -260
      zynaddsubfx/UI/OscilGenUI.h
  21. +0
    -1444
      zynaddsubfx/UI/PADnoteUI.cpp
  22. +0
    -247
      zynaddsubfx/UI/PADnoteUI.h
  23. +0
    -2024
      zynaddsubfx/UI/PartUI.cpp
  24. +0
    -274
      zynaddsubfx/UI/PartUI.h
  25. +0
    -331
      zynaddsubfx/UI/PresetsUI.cpp
  26. +0
    -92
      zynaddsubfx/UI/PresetsUI.h
  27. +0
    -461
      zynaddsubfx/UI/ResonanceUI.cpp
  28. +0
    -91
      zynaddsubfx/UI/ResonanceUI.h
  29. +0
    -821
      zynaddsubfx/UI/SUBnoteUI.cpp
  30. +0
    -131
      zynaddsubfx/UI/SUBnoteUI.h
  31. +0
    -552
      zynaddsubfx/UI/VirKeyboard.cpp
  32. +0
    -100
      zynaddsubfx/UI/VirKeyboard.h

+ 0
- 2452
zynaddsubfx/UI/ADnoteUI.cpp
File diff suppressed because it is too large
View File


+ 0
- 308
zynaddsubfx/UI/ADnoteUI.h View File

@@ -1,308 +0,0 @@
// generated by Fast Light User Interface Designer (fluid) version 1.0300

#ifndef ADnoteUI_h
#define ADnoteUI_h
#include <FL/Fl.H>
#include "../Params/ADnoteParameters.h"
#include "ResonanceUI.h"
#include "Fl_Osc_Slider.H"
#include <FL/Fl_Box.H>
#include <FL/Fl_Group.H>
#include "Fl_Osc_Pane.H"
#include "Fl_Osc_Dial.H"
#include "Fl_Osc_Check.H"
#include "Fl_Osc_Choice.H"
#include "Fl_Osc_Slider.H"
#include "Fl_Osc_VSlider.H"
#include "Fl_Oscilloscope.h"
#include "EnvelopeUI.h"
#include "LFOUI.h"
#include "FilterUI.h"
#include "OscilGenUI.h"
#include "PresetsUI.h"

class PhaseSlider : public Fl_Osc_TSlider {
public:
PhaseSlider(int x,int y, int w, int h, const char *label=0)
;
void set_scope(Fl_Oscilloscope *newscope);
void OSC_value(int i);
void cb(void);
private:
Fl_Oscilloscope *oscope = NULL;
};
#include <FL/Fl_Box.H>
#include <FL/Fl_Button.H>

class ADvoicelistitem : public Fl_Osc_Group {
Fl_Osc_Group* make_window();
Fl_Osc_Group *ADnoteVoiceListItem;
Fl_Osc_Group *voicelistitemgroup;
public:
Fl_Osc_VSlider *voicevolume;
Fl_Osc_Check *voiceresonanceenabled;
Fl_Osc_VSlider *voicelfofreq;
Fl_Osc_Dial *voicepanning;
Fl_Osc_Group *voiceoscil;
Fl_Osc_Output *detunevalueoutput;
Fl_Osc_Slider *voicedetune;
private:
void cb_voicedetune_i(Fl_Osc_Slider*, void*);
static void cb_voicedetune(Fl_Osc_Slider*, void*);
public:
Fl_Box *whitenoiselabel;
Fl_Box *pinknoiselabel;
private:
Fl_Osc_Check *voiceenabled;
void cb_voiceenabled_i(Fl_Osc_Check*, void*);
static void cb_voiceenabled(Fl_Osc_Check*, void*);
void cb_edit_i(Fl_Button*, void*);
static void cb_edit(Fl_Button*, void*);
public:
ADvoicelistitem(int x,int y, int w, int h, const char *label=0);
void init(int nvoice_, std::string loc_, Fl_Osc_Interface *osc_);
void refreshlist();
~ADvoicelistitem();
private:
int nvoice;
class Osc_IntModel *voice_phase;
class Osc_IntModel *sound_type;
class Osc_IntModel *ext_oscil;
Fl_Oscilloscope *oscil;
std::string loc;
};
#include <FL/Fl_Group.H>

class ADvoiceUI : public Fl_Group {
public:
Fl_Osc_Group* make_window();
Fl_Osc_Group *ADnoteVoiceParameters;
Fl_Group *voiceparametersgroup;
Fl_Group *voicemodegroup;
Fl_Group *voiceFMparametersgroup;
Fl_Group *modfrequency;
EnvelopeUI *voiceFMfreqenvgroup;
private:
void cb_On_i(Fl_Osc_Check*, void*);
static void cb_On(Fl_Osc_Check*, void*);
void cb__i(Fl_Osc_Slider*, void*);
static void cb_(Fl_Osc_Slider*, void*);
public:
Fl_Osc_Output *fmdetunevalueoutput;
private:
void cb_Detune_i(Fl_Osc_Choice*, void*);
static void cb_Detune(Fl_Osc_Choice*, void*);
void cb_440Hz_i(Fl_Osc_Check*, void*);
static void cb_440Hz(Fl_Osc_Check*, void*);
public:
EnvelopeUI *voiceFMampenvgroup;
private:
void cb_On1_i(Fl_Osc_Check*, void*);
static void cb_On1(Fl_Osc_Check*, void*);
public:
Fl_Group *modoscil;
Fl_Osc_Group *fmoscil;
Fl_Button *changeFMoscilbutton;
private:
void cb_changeFMoscilbutton_i(Fl_Button*, void*);
static void cb_changeFMoscilbutton(Fl_Button*, void*);
public:
Fl_Osc_Choice *extFMoscil;
private:
void cb_extFMoscil_i(Fl_Osc_Choice*, void*);
static void cb_extFMoscil(Fl_Osc_Choice*, void*);
public:
Fl_Osc_Choice *extMod;
private:
void cb_extMod_i(Fl_Osc_Choice*, void*);
static void cb_extMod(Fl_Osc_Choice*, void*);
public:
Fl_Osc_Choice *mod_type;
private:
void cb_mod_type_i(Fl_Osc_Choice*, void*);
static void cb_mod_type(Fl_Osc_Choice*, void*);
static Fl_Menu_Item menu_mod_type[];
public:
EnvelopeUI *voicefreqenvgroup;
private:
void cb_On2_i(Fl_Osc_Check*, void*);
static void cb_On2(Fl_Osc_Check*, void*);
public:
LFOUI *voicefreqlfogroup;
private:
void cb_On3_i(Fl_Osc_Check*, void*);
static void cb_On3(Fl_Osc_Check*, void*);
public:
Fl_Osc_Dial *bendadjdial;
Fl_Osc_Dial *offsethzdial;
private:
void cb_1_i(Fl_Osc_Slider*, void*);
static void cb_1(Fl_Osc_Slider*, void*);
public:
Fl_Osc_Output *detunevalueoutput;
private:
void cb_440Hz1_i(Fl_Osc_Check*, void*);
static void cb_440Hz1(Fl_Osc_Check*, void*);
public:
Fl_Osc_Dial *fixedfreqetdial;
private:
void cb_Detune1_i(Fl_Osc_Choice*, void*);
static void cb_Detune1(Fl_Osc_Choice*, void*);
public:
Fl_Osc_Group *voiceoscil;
Fl_Button *changevoiceoscilbutton;
private:
void cb_changevoiceoscilbutton_i(Fl_Button*, void*);
static void cb_changevoiceoscilbutton(Fl_Button*, void*);
public:
Fl_Osc_Choice *extoscil;
private:
void cb_extoscil_i(Fl_Osc_Choice*, void*);
static void cb_extoscil(Fl_Osc_Choice*, void*);
void cb_Frequency_i(Fl_Osc_Slider*, void*);
static void cb_Frequency(Fl_Osc_Slider*, void*);
public:
Fl_Osc_Output *unisonspreadoutput;
EnvelopeUI *voiceampenvgroup;
private:
void cb_On4_i(Fl_Osc_Check*, void*);
static void cb_On4(Fl_Osc_Check*, void*);
public:
LFOUI *voiceamplfogroup;
private:
void cb_On5_i(Fl_Osc_Check*, void*);
static void cb_On5(Fl_Osc_Check*, void*);
public:
Fl_Group *voicefiltergroup;
EnvelopeUI *voicefilterenvgroup;
private:
void cb_On6_i(Fl_Osc_Check*, void*);
static void cb_On6(Fl_Osc_Check*, void*);
public:
LFOUI *voicefilterlfogroup;
private:
void cb_On7_i(Fl_Osc_Check*, void*);
static void cb_On7(Fl_Osc_Check*, void*);
public:
Fl_Group *activeVoiceID;
private:
void cb_2_i(Fl_Osc_Choice*, void*);
static void cb_2(Fl_Osc_Choice*, void*);
static Fl_Menu_Item menu_[];
public:
Fl_Osc_Check *bypassfiltercheckbutton;
private:
void cb_On8_i(Fl_Osc_Check*, void*);
static void cb_On8(Fl_Osc_Check*, void*);
public:
Fl_Box *whitenoiselabel;
Fl_Box *pinknoiselabel;
Fl_Osc_Check *voiceonbutton;
private:
void cb_voiceonbutton_i(Fl_Osc_Check*, void*);
static void cb_voiceonbutton(Fl_Osc_Check*, void*);
public:
ADvoiceUI(int x,int y, int w, int h, const char *label=0);
void init(int nvoice_, std::string loc_, Fl_Osc_Interface *osc_);
~ADvoiceUI();
void change_voice(int nvoice_);
private:
int nvoice;
OscilEditor *oscedit;
Fl_Oscilloscope *osc;
Fl_Oscilloscope *oscFM;
std::string loc;
std::string base;
Fl_Osc_Interface *osc_i;
};
#include <FL/Fl_Counter.H>
#include <FL/Fl_Text_Display.H>
#include <FL/Fl_Scroll.H>
#include <FL/Fl_Pack.H>

class ADnoteUI : public PresetsUI_ {
Fl_Osc_Window* make_window();
public:
Fl_Osc_Window *ADnoteGlobalParameters;
EnvelopeUI *freqenv;
Fl_Osc_Counter *octave;
Fl_Osc_Counter *coarsedet;
LFOUI *freqlfo;
Fl_Osc_Slider *detune;
private:
void cb_detune_i(Fl_Osc_Slider*, void*);
static void cb_detune(Fl_Osc_Slider*, void*);
public:
Fl_Osc_Output *detunevalueoutput;
Fl_Osc_Choice *detunetype;
private:
void cb_detunetype_i(Fl_Osc_Choice*, void*);
static void cb_detunetype(Fl_Osc_Choice*, void*);
void cb_relBW_i(Fl_Osc_Dial*, void*);
static void cb_relBW(Fl_Osc_Dial*, void*);
public:
Fl_Osc_VSlider *volume;
Fl_Osc_VSlider *vsns;
Fl_Osc_Dial *pan;
Fl_Osc_Dial *pstr;
Fl_Osc_Dial *pt;
Fl_Osc_Dial *pstc;
Fl_Osc_Dial *pvel;
EnvelopeUI *ampenv;
LFOUI *amplfo;
Fl_Osc_Check *rndgrp;
EnvelopeUI *filterenv;
LFOUI *filterlfo;
FilterUI *filterui;
Fl_Osc_Check *stereo;
private:
void cb_Show_i(Fl_Button*, void*);
static void cb_Show(Fl_Button*, void*);
void cb_Show1_i(Fl_Button*, void*);
static void cb_Show1(Fl_Button*, void*);
void cb_Close_i(Fl_Button*, void*);
static void cb_Close(Fl_Button*, void*);
void cb_Resonance_i(Fl_Button*, void*);
static void cb_Resonance(Fl_Button*, void*);
void cb_C_i(Fl_Button*, void*);
static void cb_C(Fl_Button*, void*);
void cb_P_i(Fl_Button*, void*);
static void cb_P(Fl_Button*, void*);
public:
Fl_Osc_Window *ADnoteVoice;
ADvoiceUI *advoice;
private:
void cb_Close1_i(Fl_Button*, void*);
static void cb_Close1(Fl_Button*, void*);
public:
Fl_Counter *currentvoicecounter;
private:
void cb_currentvoicecounter_i(Fl_Counter*, void*);
static void cb_currentvoicecounter(Fl_Counter*, void*);
void cb_C1_i(Fl_Button*, void*);
static void cb_C1(Fl_Button*, void*);
void cb_P1_i(Fl_Button*, void*);
static void cb_P1(Fl_Button*, void*);
void cb_Show2_i(Fl_Button*, void*);
static void cb_Show2(Fl_Button*, void*);
void cb_Show3_i(Fl_Button*, void*);
static void cb_Show3(Fl_Button*, void*);
public:
Fl_Osc_Window *ADnoteVoiceList;
private:
void cb_Close2_i(Fl_Button*, void*);
static void cb_Close2(Fl_Button*, void*);
void cb_Edit_i(Fl_Button*, void*);
static void cb_Edit(Fl_Button*, void*);
public:
ADnoteUI(std::string loc_, Fl_Osc_Interface *osc_);
~ADnoteUI();
void refresh();
private:
ResonanceUI *resui;
int nvoice;
ADvoicelistitem *voicelistitem[NUM_VOICES];
std::string loc;
Fl_Osc_Interface *osc;
};
#endif

+ 0
- 196
zynaddsubfx/UI/BankUI.cpp View File

@@ -1,196 +0,0 @@
// generated by Fast Light User Interface Designer (fluid) version 1.0300

#include "external/zynaddsubfx/UI/BankUI.h"
//Copyright (c) 2002-2005 Nasca Octavian Paul
//License: GNU GPL version 2 or later

void BankUI::cb_Close_i(Fl_Button*, void*) {
bankuiwindow->hide();
}
void BankUI::cb_Close(Fl_Button* o, void* v) {
((BankUI*)(o->parent()->user_data()))->cb_Close_i(o,v);
}

void BankUI::cb_New_i(Fl_Button*, void*) {
const char *dirname;

dirname=fl_input("New empty Bank:");
if (dirname==NULL) return;

osc->write("/bank/newbank", "s", dirname);
refreshmainwindow();
}
void BankUI::cb_New(Fl_Button* o, void* v) {
((BankUI*)(o->parent()->user_data()))->cb_New_i(o,v);
}

void BankUI::cb_banklist_i(BankList*, void*) {
refreshmainwindow();
}
void BankUI::cb_banklist(BankList* o, void* v) {
((BankUI*)(o->parent()->user_data()))->cb_banklist_i(o,v);
}

void BankUI::cb_Refresh_i(Fl_Button*, void*) {
rescan_for_banks();
banklist->value(0);
}
void BankUI::cb_Refresh(Fl_Button* o, void* v) {
((BankUI*)(o->parent()->user_data()))->cb_Refresh_i(o,v);
}

void BankUI::cb_Search_i(Fl_Input* o, void*) {
std::string str = o->value();
update_search(str);
}
void BankUI::cb_Search(Fl_Input* o, void* v) {
((BankUI*)(o->parent()->user_data()))->cb_Search_i(o,v);
}

Fl_Osc_Window* BankUI::make_window() {
{ bankuiwindow = new Fl_Osc_Window(785, 575, "Bank");
bankuiwindow->box(FL_FLAT_BOX);
bankuiwindow->color(FL_BACKGROUND_COLOR);
bankuiwindow->selection_color(FL_BACKGROUND_COLOR);
bankuiwindow->labeltype(FL_NO_LABEL);
bankuiwindow->labelfont(0);
bankuiwindow->labelsize(14);
bankuiwindow->labelcolor(FL_FOREGROUND_COLOR);
bankuiwindow->user_data((void*)(this));
bankuiwindow->align(Fl_Align(FL_ALIGN_TOP));
bankuiwindow->when(FL_WHEN_RELEASE);
{ new Fl_Box(0, 0, 0, 0);
bankuiwindow->init(osc, "/");
} // Fl_Box* o
{ Fl_Button* o = new Fl_Button(705, 546, 70, 24, "Close");
o->box(FL_THIN_UP_BOX);
o->callback((Fl_Callback*)cb_Close);
} // Fl_Button* o
{ bankview = new BankView(5, 34, 772, 491);
bankview->box(FL_ENGRAVED_FRAME);
bankview->color(FL_BACKGROUND_COLOR);
bankview->selection_color(FL_BACKGROUND_COLOR);
bankview->labeltype(FL_NORMAL_LABEL);
bankview->labelfont(0);
bankview->labelsize(14);
bankview->labelcolor(FL_FOREGROUND_COLOR);
bankview->align(Fl_Align(FL_ALIGN_TOP));
bankview->when(FL_WHEN_RELEASE);
bankview->end();
} // BankView* bankview
{ BankViewControls* o = modeselect = new BankViewControls(5, 528, 425, 42);
modeselect->box(FL_ENGRAVED_BOX);
modeselect->color(FL_BACKGROUND_COLOR);
modeselect->selection_color(FL_BACKGROUND_COLOR);
modeselect->labeltype(FL_NORMAL_LABEL);
modeselect->labelfont(0);
modeselect->labelsize(14);
modeselect->labelcolor(FL_FOREGROUND_COLOR);
modeselect->align(Fl_Align(FL_ALIGN_TOP));
modeselect->when(FL_WHEN_RELEASE);
o->box(FL_UP_BOX);
modeselect->end();
} // BankViewControls* modeselect
{ Fl_Button* o = new Fl_Button(685, 5, 93, 25, "New Bank...");
o->labelfont(1);
o->labelsize(11);
o->callback((Fl_Callback*)cb_New);
o->align(Fl_Align(FL_ALIGN_WRAP));
} // Fl_Button* o
{ Fl_Osc_Check* o = new Fl_Osc_Check(705, 529, 60, 15, "auto close");
o->tooltip("automatically close the bank window if the instrument is loaded");
o->box(FL_NO_BOX);
o->down_box(FL_DOWN_BOX);
o->color(FL_BACKGROUND_COLOR);
o->selection_color(FL_FOREGROUND_COLOR);
o->labeltype(FL_NORMAL_LABEL);
o->labelfont(0);
o->labelsize(10);
o->labelcolor(FL_FOREGROUND_COLOR);
o->align(Fl_Align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE));
o->when(FL_WHEN_RELEASE);
o->init("config/cfg.BankUIAutoClose");
} // Fl_Osc_Check* o
{ BankList* o = banklist = new BankList(5, 8, 220, 20);
banklist->box(FL_UP_BOX);
banklist->down_box(FL_BORDER_BOX);
banklist->color(FL_BACKGROUND_COLOR);
banklist->selection_color(FL_SELECTION_COLOR);
banklist->labeltype(FL_NORMAL_LABEL);
banklist->labelfont(1);
banklist->labelsize(14);
banklist->labelcolor(FL_FOREGROUND_COLOR);
banklist->textfont(1);
banklist->textsize(11);
banklist->callback((Fl_Callback*)cb_banklist);
banklist->align(Fl_Align(FL_ALIGN_CENTER));
banklist->when(FL_WHEN_RELEASE);
bankview->init(osc, modeselect, npart);
o->init("bank/bank_select");
} // BankList* banklist
{ Fl_Button* o = new Fl_Button(230, 8, 105, 20, "Refresh bank list");
o->tooltip("Refresh the bank list (rescan)");
o->box(FL_THIN_UP_BOX);
o->color(FL_LIGHT1);
o->labelsize(11);
o->callback((Fl_Callback*)cb_Refresh);
} // Fl_Button* o
{ Fl_Input* o = new Fl_Input(460, 8, 105, 20, "Search by name: ");
o->tooltip("Enter text to search for");
o->box(FL_THIN_UP_BOX);
o->color(FL_LIGHT1);
o->labelsize(11);
o->callback((Fl_Callback*)cb_Search);
o->when(FL_WHEN_CHANGED);
} // Fl_Input* o
bankuiwindow->end();
} // Fl_Osc_Window* bankuiwindow
return bankuiwindow;
}

BankUI::BankUI(int *npart_, Fl_Osc_Interface *osc_) {
npart=npart_;
osc =osc_;
make_window();
}

BankUI::~BankUI() {
bankuiwindow->hide();
delete bankuiwindow;
}

void BankUI::show() {
bankuiwindow->show();
}

void BankUI::hide() {
bankuiwindow->hide();
}

void BankUI::init(Fl_Valuator *cbwig_) {
cbwig=cbwig_;
bankview->cbwig(cbwig);
rescan_for_banks();
}

void BankUI::process() {
}

void BankUI::refreshmainwindow() {
bankview->refresh();
}

void BankUI::rescan_for_banks() {
banklist->clear();
osc->write("/bank/rescan");
if (banklist->size() == 0)
banklist->add(" ");
}

void BankUI::update_search(std::string search_string) {
if (search_string.empty()) {
refreshmainwindow();
} else {
osc->write("/bank/search", "s", search_string.c_str());
}
}

+ 0
- 60
zynaddsubfx/UI/BankUI.h View File

@@ -1,60 +0,0 @@
// generated by Fast Light User Interface Designer (fluid) version 1.0300

#ifndef BankUI_h
#define BankUI_h
#include <FL/Fl.H>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <FL/Fl_Button.H>
#include <FL/Fl_File_Chooser.H>
#include <FL/Fl_Input.H>
#include "Fl_Osc_Interface.h"
#include "Fl_Osc_Check.H"
#include "Fl_Osc_Pane.H"
#include "../Misc/Util.h"
#include "BankView.h"
#include <FL/Fl_Box.H>
#include <FL/Fl_Button.H>
#include <FL/Fl_Input.H>

class BankUI {
public:
Fl_Osc_Window* make_window();
Fl_Osc_Window *bankuiwindow;
private:
void cb_Close_i(Fl_Button*, void*);
static void cb_Close(Fl_Button*, void*);
public:
BankView *bankview;
BankViewControls *modeselect;
private:
void cb_New_i(Fl_Button*, void*);
static void cb_New(Fl_Button*, void*);
public:
BankList *banklist;
private:
void cb_banklist_i(BankList*, void*);
static void cb_banklist(BankList*, void*);
void cb_Refresh_i(Fl_Button*, void*);
static void cb_Refresh(Fl_Button*, void*);
void cb_Search_i(Fl_Input*, void*);
static void cb_Search(Fl_Input*, void*);
public:
BankUI(int *npart_, Fl_Osc_Interface *osc_);
virtual ~BankUI();
void show();
void hide();
void init(Fl_Valuator *cbwig_);
void process();
void refreshmainwindow();
void rescan_for_banks();
void update_search(std::string search_string);
private:
Fl_Osc_Interface *osc;
public:
Fl_Valuator *cbwig;
private:
int *npart;
};
#endif

+ 0
- 397
zynaddsubfx/UI/ConfigUI.cpp View File

@@ -1,397 +0,0 @@
// generated by Fast Light User Interface Designer (fluid) version 1.0300

#include "external/zynaddsubfx/UI/ConfigUI.h"
//Copyright (c) 2002-2005 Nasca Octavian Paul
//License: GNU GPL version 2 or later

void ConfigUI::cb_configwindow_i(Fl_Osc_Window* o, void*) {
o->hide();
}
void ConfigUI::cb_configwindow(Fl_Osc_Window* o, void* v) {
((ConfigUI*)(o->user_data()))->cb_configwindow_i(o,v);
}

void ConfigUI::cb_oscilsize_widget_i(Fl_Choice* o, void*) {
oscilsize->updateVal((int)(o->value()+7));
}
void ConfigUI::cb_oscilsize_widget(Fl_Choice* o, void* v) {
((ConfigUI*)(o->parent()->parent()->parent()->user_data()))->cb_oscilsize_widget_i(o,v);
}

Fl_Menu_Item ConfigUI::menu_oscilsize_widget[] = {
{"128", 0, 0, 0, 0, FL_NORMAL_LABEL, 1, 14, 0},
{"256", 0, 0, 0, 0, FL_NORMAL_LABEL, 1, 14, 0},
{"512", 0, 0, 0, 0, FL_NORMAL_LABEL, 1, 14, 0},
{"1024", 0, 0, 0, 0, FL_NORMAL_LABEL, 1, 14, 0},
{"2048", 0, 0, 0, 0, FL_NORMAL_LABEL, 1, 14, 0},
{"4096", 0, 0, 0, 0, FL_NORMAL_LABEL, 1, 14, 0},
{"8192", 0, 0, 0, 0, FL_NORMAL_LABEL, 1, 14, 0},
{"16384", 0, 0, 0, 0, FL_NORMAL_LABEL, 1, 14, 0},
{0,0,0,0,0,0,0,0,0}
};

Fl_Menu_Item ConfigUI::menu_PADsynth[] = {
{"Linear(fast)", 0, 0, 0, 0, FL_NORMAL_LABEL, 1, 10, 0},
{"Cubic(slow)", 0, 0, 0, 0, FL_NORMAL_LABEL, 1, 10, 0},
{0,0,0,0,0,0,0,0,0}
};

Fl_Menu_Item ConfigUI::menu_Virtual[] = {
{" ", 0, 0, 0, 1, FL_NORMAL_LABEL, 1, 11, 0},
{"QWERTY", 0, 0, 0, 0, FL_NORMAL_LABEL, 1, 11, 0},
{"Dvorak", 0, 0, 0, 0, FL_NORMAL_LABEL, 1, 11, 0},
{"QWERTZ", 0, 0, 0, 0, FL_NORMAL_LABEL, 1, 11, 0},
{"AZERTY", 0, 0, 0, 0, FL_NORMAL_LABEL, 1, 11, 0},
{0,0,0,0,0,0,0,0,0}
};

void ConfigUI::cb_rootsbrowse_i(Fl_Osc_ListView* o, void*) {
activatebutton_rootdir(o->value()!=0);
}
void ConfigUI::cb_rootsbrowse(Fl_Osc_ListView* o, void* v) {
((ConfigUI*)(o->parent()->parent()->parent()->user_data()))->cb_rootsbrowse_i(o,v);
}

void ConfigUI::cb_Add_i(Fl_Button*, void*) {
const char *dirname;
dirname=fl_dir_chooser("Add a root directory for banks:",NULL,0);
if (dirname==NULL) return;

rootsbrowse->append(dirname);
}
void ConfigUI::cb_Add(Fl_Button* o, void* v) {
((ConfigUI*)(o->parent()->parent()->parent()->user_data()))->cb_Add_i(o,v);
}

void ConfigUI::cb_removerootdirbutton_i(Fl_Button*, void*) {
if (rootsbrowse->value()!=0) {
rootsbrowse->doRemove(rootsbrowse->value());
};
activatebutton_rootdir(false);
}
void ConfigUI::cb_removerootdirbutton(Fl_Button* o, void* v) {
((ConfigUI*)(o->parent()->parent()->parent()->user_data()))->cb_removerootdirbutton_i(o,v);
}

void ConfigUI::cb_makedefaultrootdirbutton_i(Fl_Button*, void*) {
int n=rootsbrowse->value();

if (n!=0) {
rootsbrowse->doMove(1,n);
rootsbrowse->value(1);
rootsbrowse->redraw();
};
activatebutton_rootdir(true);
}
void ConfigUI::cb_makedefaultrootdirbutton(Fl_Button* o, void* v) {
((ConfigUI*)(o->parent()->parent()->parent()->user_data()))->cb_makedefaultrootdirbutton_i(o,v);
}

void ConfigUI::cb_presetbrowse_i(Fl_Osc_ListView* o, void*) {
activatebutton_presetdir(o->value()!=0);
}
void ConfigUI::cb_presetbrowse(Fl_Osc_ListView* o, void* v) {
((ConfigUI*)(o->parent()->parent()->parent()->user_data()))->cb_presetbrowse_i(o,v);
}

void ConfigUI::cb_Add1_i(Fl_Button*, void*) {
const char *dirname;
dirname=fl_dir_chooser("Add a preset directory :",NULL,0);
if (dirname==NULL) return;

presetbrowse->add(dirname);
}
void ConfigUI::cb_Add1(Fl_Button* o, void* v) {
((ConfigUI*)(o->parent()->parent()->parent()->user_data()))->cb_Add1_i(o,v);
}

void ConfigUI::cb_removepresetbutton_i(Fl_Button*, void*) {
if (presetbrowse->value()!=0) {
presetbrowse->remove(presetbrowse->value());
};
activatebutton_presetdir(false);
}
void ConfigUI::cb_removepresetbutton(Fl_Button* o, void* v) {
((ConfigUI*)(o->parent()->parent()->parent()->user_data()))->cb_removepresetbutton_i(o,v);
}

void ConfigUI::cb_makedefaultpresetbutton_i(Fl_Button*, void*) {
int n=presetbrowse->value();

if (n!=0) {
presetbrowse->move(1,n);
presetbrowse->value(1);
presetbrowse->redraw();
};
activatebutton_presetdir(true);
}
void ConfigUI::cb_makedefaultpresetbutton(Fl_Button* o, void* v) {
((ConfigUI*)(o->parent()->parent()->parent()->user_data()))->cb_makedefaultpresetbutton_i(o,v);
}

void ConfigUI::cb_Close_i(Fl_Button*, void*) {
configwindow->hide();
}
void ConfigUI::cb_Close(Fl_Button* o, void* v) {
((ConfigUI*)(o->parent()->user_data()))->cb_Close_i(o,v);
}

Fl_Osc_Window* ConfigUI::make_window() {
{ configwindow = new Fl_Osc_Window(510, 370, "ZynAddSubFX Settings");
configwindow->box(FL_FLAT_BOX);
configwindow->color(FL_BACKGROUND_COLOR);
configwindow->selection_color(FL_BACKGROUND_COLOR);
configwindow->labeltype(FL_NO_LABEL);
configwindow->labelfont(0);
configwindow->labelsize(14);
configwindow->labelcolor(FL_FOREGROUND_COLOR);
configwindow->callback((Fl_Callback*)cb_configwindow, (void*)(this));
configwindow->align(Fl_Align(FL_ALIGN_TOP));
configwindow->when(FL_WHEN_RELEASE);
{ dummy = new Fl_Box(25, 25, 25, 25);
configwindow->init(osc, "/config/");
} // Fl_Box* dummy
{ Fl_Tabs* o = new Fl_Tabs(5, 5, 500, 330);
{ mainsettings = new Fl_Group(5, 25, 500, 310, "Main settings");
{ Fl_Group* o = new Fl_Group(15, 45, 165, 30, "Sample Rate");
o->box(FL_ENGRAVED_FRAME);
{ Fl_Osc_Numeric_Input* o = samplerateinput = new Fl_Osc_Numeric_Input(115, 50, 60, 20);
samplerateinput->type(2);
samplerateinput->box(FL_DOWN_BOX);
samplerateinput->color(FL_BACKGROUND2_COLOR);
samplerateinput->selection_color(FL_SELECTION_COLOR);
samplerateinput->labeltype(FL_NORMAL_LABEL);
samplerateinput->labelfont(0);
samplerateinput->labelsize(14);
samplerateinput->labelcolor(FL_FOREGROUND_COLOR);
samplerateinput->textfont(1);
samplerateinput->align(Fl_Align(FL_ALIGN_LEFT));
samplerateinput->when(FL_WHEN_RELEASE);
o->init("cfg.SampleRate");
} // Fl_Osc_Numeric_Input* samplerateinput
o->end();
} // Fl_Group* o
{ Fl_Osc_Numeric_Input* o = new Fl_Osc_Numeric_Input(190, 45, 60, 20, "Buffer Size");
o->tooltip("Internal Sound Buffer Size (samples)");
o->type(2);
o->box(FL_DOWN_BOX);
o->color(FL_BACKGROUND2_COLOR);
o->selection_color(FL_SELECTION_COLOR);
o->labeltype(FL_NORMAL_LABEL);
o->labelfont(0);
o->labelsize(11);
o->labelcolor(FL_FOREGROUND_COLOR);
o->textfont(1);
o->align(Fl_Align(129));
o->when(FL_WHEN_RELEASE);
o->init("cfg.SoundBufferSize");
} // Fl_Osc_Numeric_Input* o
{ Fl_Osc_Check* o = new Fl_Osc_Check(15, 80, 95, 20, "Swap Stereo ");
o->box(FL_NO_BOX);
o->down_box(FL_DOWN_BOX);
o->color(FL_BACKGROUND_COLOR);
o->selection_color(FL_FOREGROUND_COLOR);
o->labeltype(FL_NORMAL_LABEL);
o->labelfont(0);
o->labelsize(11);
o->labelcolor(FL_FOREGROUND_COLOR);
o->align(Fl_Align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE));
o->when(FL_WHEN_RELEASE);
o->init("cfg.SwapStereo");
} // Fl_Osc_Check* o
{ oscilsize_widget = new Fl_Choice(175, 80, 75, 20, "OscilSize");
oscilsize_widget->tooltip("ADSynth Oscillator Size (samples)");
oscilsize_widget->down_box(FL_BORDER_BOX);
oscilsize_widget->labelfont(1);
oscilsize_widget->labelsize(11);
oscilsize_widget->textsize(10);
oscilsize_widget->callback((Fl_Callback*)cb_oscilsize_widget);
oscilsize_widget->menu(menu_oscilsize_widget);
} // Fl_Choice* oscilsize_widget
{ Fl_Box* o = new Fl_Box(10, 300, 235, 30, "Most settings has effect only after ZynAddSubFX is restarted.");
o->labelfont(1);
o->labelsize(11);
o->align(Fl_Align(FL_ALIGN_WRAP));
} // Fl_Box* o
{ Fl_Osc_Counter* o = new Fl_Osc_Counter(20, 215, 65, 15, "XML compression level");
o->tooltip("gzip compression level (0 - uncompressed)");
o->type(1);
o->box(FL_UP_BOX);
o->color(FL_BACKGROUND_COLOR);
o->selection_color(FL_INACTIVE_COLOR);
o->labeltype(FL_NORMAL_LABEL);
o->labelfont(0);
o->labelsize(11);
o->labelcolor(FL_FOREGROUND_COLOR);
o->minimum(0);
o->maximum(9);
o->step(1);
o->align(Fl_Align(FL_ALIGN_RIGHT));
o->when(FL_WHEN_CHANGED);
o->init("cfg.GzipCompression");
} // Fl_Osc_Counter* o
{ Fl_Osc_Choice* o = new Fl_Osc_Choice(175, 105, 75, 15, "PADsynth Interpolation");
o->box(FL_UP_BOX);
o->down_box(FL_BORDER_BOX);
o->color(FL_BACKGROUND_COLOR);
o->selection_color(FL_SELECTION_COLOR);
o->labeltype(FL_NORMAL_LABEL);
o->labelfont(0);
o->labelsize(10);
o->labelcolor(FL_FOREGROUND_COLOR);
o->textsize(11);
o->align(Fl_Align(FL_ALIGN_LEFT));
o->when(FL_WHEN_RELEASE);
o->menu(menu_PADsynth);
o->init("cfg.Interpolation");
} // Fl_Osc_Choice* o
{ Fl_Osc_Choice* o = new Fl_Osc_Choice(155, 235, 85, 20, "Virtual Keyboard Layout");
o->box(FL_UP_BOX);
o->down_box(FL_BORDER_BOX);
o->color(FL_BACKGROUND_COLOR);
o->selection_color(FL_SELECTION_COLOR);
o->labeltype(FL_NORMAL_LABEL);
o->labelfont(0);
o->labelsize(12);
o->labelcolor(FL_FOREGROUND_COLOR);
o->textfont(1);
o->textsize(11);
o->align(Fl_Align(FL_ALIGN_LEFT));
o->when(FL_WHEN_RELEASE);
o->menu(menu_Virtual);
o->init("cfg.VirKeybLayout");
} // Fl_Osc_Choice* o
{ Fl_Osc_Check* o = new Fl_Osc_Check(10, 255, 220, 20, "Ignore MIDI Program Change");
o->box(FL_NO_BOX);
o->down_box(FL_DOWN_BOX);
o->color(FL_BACKGROUND_COLOR);
o->selection_color(FL_FOREGROUND_COLOR);
o->labeltype(FL_NORMAL_LABEL);
o->labelfont(0);
o->labelsize(14);
o->labelcolor(FL_FOREGROUND_COLOR);
o->align(Fl_Align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE));
o->when(FL_WHEN_RELEASE);
o->init("cfg.IgnoreProgramChange");
} // Fl_Osc_Check* o
mainsettings->end();
} // Fl_Group* mainsettings
{ Fl_Group* o = new Fl_Group(5, 25, 500, 285, "Bank root dirs");
o->hide();
{ Fl_Osc_ListView* o = rootsbrowse = new Fl_Osc_ListView(15, 35, 485, 220);
rootsbrowse->type(2);
rootsbrowse->box(FL_NO_BOX);
rootsbrowse->color(FL_BACKGROUND2_COLOR);
rootsbrowse->selection_color(FL_SELECTION_COLOR);
rootsbrowse->labeltype(FL_NORMAL_LABEL);
rootsbrowse->labelfont(0);
rootsbrowse->labelsize(14);
rootsbrowse->labelcolor(FL_FOREGROUND_COLOR);
rootsbrowse->callback((Fl_Callback*)cb_rootsbrowse);
rootsbrowse->align(Fl_Align(FL_ALIGN_BOTTOM));
rootsbrowse->when(FL_WHEN_RELEASE_ALWAYS);
o->init("cfg.bankRootDirList");
} // Fl_Osc_ListView* rootsbrowse
{ Fl_Button* o = new Fl_Button(15, 265, 80, 35, "Add root directory...");
o->box(FL_THIN_UP_BOX);
o->callback((Fl_Callback*)cb_Add);
o->align(Fl_Align(FL_ALIGN_WRAP));
} // Fl_Button* o
{ Fl_Button* o = removerootdirbutton = new Fl_Button(105, 265, 80, 35, "Remove root dir...");
removerootdirbutton->box(FL_THIN_UP_BOX);
removerootdirbutton->callback((Fl_Callback*)cb_removerootdirbutton);
removerootdirbutton->align(Fl_Align(FL_ALIGN_WRAP));
o->deactivate();
} // Fl_Button* removerootdirbutton
{ Fl_Button* o = makedefaultrootdirbutton = new Fl_Button(190, 265, 80, 35, "Make default");
makedefaultrootdirbutton->box(FL_THIN_UP_BOX);
makedefaultrootdirbutton->callback((Fl_Callback*)cb_makedefaultrootdirbutton);
makedefaultrootdirbutton->align(Fl_Align(FL_ALIGN_WRAP));
o->deactivate();
} // Fl_Button* makedefaultrootdirbutton
o->end();
} // Fl_Group* o
{ Fl_Group* o = new Fl_Group(5, 25, 500, 285, "Presets dirs");
o->hide();
{ Fl_Osc_ListView* o = presetbrowse = new Fl_Osc_ListView(15, 35, 485, 220);
presetbrowse->type(2);
presetbrowse->box(FL_NO_BOX);
presetbrowse->color(FL_BACKGROUND2_COLOR);
presetbrowse->selection_color(FL_SELECTION_COLOR);
presetbrowse->labeltype(FL_NORMAL_LABEL);
presetbrowse->labelfont(0);
presetbrowse->labelsize(14);
presetbrowse->labelcolor(FL_FOREGROUND_COLOR);
presetbrowse->callback((Fl_Callback*)cb_presetbrowse);
presetbrowse->align(Fl_Align(FL_ALIGN_BOTTOM));
presetbrowse->when(FL_WHEN_RELEASE_ALWAYS);
o->init("cfg.presetsDirList");
} // Fl_Osc_ListView* presetbrowse
{ Fl_Button* o = new Fl_Button(15, 265, 80, 35, "Add preset directory...");
o->box(FL_THIN_UP_BOX);
o->callback((Fl_Callback*)cb_Add1);
o->align(Fl_Align(FL_ALIGN_WRAP));
} // Fl_Button* o
{ Fl_Button* o = removepresetbutton = new Fl_Button(105, 265, 80, 35, "Remove preset dir...");
removepresetbutton->box(FL_THIN_UP_BOX);
removepresetbutton->callback((Fl_Callback*)cb_removepresetbutton);
removepresetbutton->align(Fl_Align(FL_ALIGN_WRAP));
o->deactivate();
} // Fl_Button* removepresetbutton
{ Fl_Button* o = makedefaultpresetbutton = new Fl_Button(190, 265, 80, 35, "Make default");
makedefaultpresetbutton->box(FL_THIN_UP_BOX);
makedefaultpresetbutton->callback((Fl_Callback*)cb_makedefaultpresetbutton);
makedefaultpresetbutton->align(Fl_Align(FL_ALIGN_WRAP));
o->deactivate();
} // Fl_Button* makedefaultpresetbutton
o->end();
} // Fl_Group* o
o->end();
} // Fl_Tabs* o
{ Fl_Button* o = new Fl_Button(200, 345, 105, 20, "Close");
o->box(FL_THIN_UP_BOX);
o->callback((Fl_Callback*)cb_Close);
} // Fl_Button* o
configwindow->end();
} // Fl_Osc_Window* configwindow
return configwindow;
}

ConfigUI::ConfigUI(Fl_Osc_Interface *osc_) {
osc = osc_;
make_window();
oscilsize = new Osc_IntModel(osc);
oscilsize->callback = [this](int i){
oscilsize_widget->value(i-7);
};
oscilsize->doUpdate("/config/cfg.OscilPower");
}

void ConfigUI::activatebutton_rootdir(bool active) {
if (active) {
removerootdirbutton->activate();
makedefaultrootdirbutton->activate();
}else{
removerootdirbutton->deactivate();
makedefaultrootdirbutton->deactivate();
};
}

void ConfigUI::activatebutton_presetdir(bool active) {
if (active) {
removepresetbutton->activate();
makedefaultpresetbutton->activate();
}else{
removepresetbutton->deactivate();
makedefaultpresetbutton->deactivate();
};
}

void ConfigUI::show() {
if (isPlugin) {
mainsettings->deactivate();
}
rootsbrowse->update();
presetbrowse->update();
configwindow->show();
}

+ 0
- 90
zynaddsubfx/UI/ConfigUI.h View File

@@ -1,90 +0,0 @@
// generated by Fast Light User Interface Designer (fluid) version 1.0300

#ifndef ConfigUI_h
#define ConfigUI_h
#include <FL/Fl.H>
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <FL/Fl_File_Chooser.H>
#include "Fl_Osc_Button.H"
#include "Fl_Osc_Counter.H"
#include "Fl_Osc_Choice.H"
#include "Osc_IntModel.h"
#include "Fl_Osc_Check.H"
#include "Fl_Osc_Input.H"
#include "Fl_Osc_Numeric_Input.H"
#include "Fl_Osc_ListView.H"
#include "Fl_Osc_Pane.H"
#include "../globals.h"
#include "../Misc/Util.h"
using namespace zyncarla;
#include <FL/Fl_Box.H>
#include <FL/Fl_Tabs.H>
#include <FL/Fl_Group.H>
#include <FL/Fl_Choice.H>
#include <FL/Fl_Button.H>

class ConfigUI {
public:
Fl_Osc_Window* make_window();
Fl_Osc_Window *configwindow;
private:
void cb_configwindow_i(Fl_Osc_Window*, void*);
static void cb_configwindow(Fl_Osc_Window*, void*);
public:
Fl_Box *dummy;
Fl_Group *mainsettings;
Fl_Osc_Numeric_Input *samplerateinput;
Fl_Choice *oscilsize_widget;
private:
void cb_oscilsize_widget_i(Fl_Choice*, void*);
static void cb_oscilsize_widget(Fl_Choice*, void*);
static Fl_Menu_Item menu_oscilsize_widget[];
static Fl_Menu_Item menu_PADsynth[];
static Fl_Menu_Item menu_Virtual[];
public:
Fl_Osc_ListView *rootsbrowse;
private:
void cb_rootsbrowse_i(Fl_Osc_ListView*, void*);
static void cb_rootsbrowse(Fl_Osc_ListView*, void*);
void cb_Add_i(Fl_Button*, void*);
static void cb_Add(Fl_Button*, void*);
public:
Fl_Button *removerootdirbutton;
private:
void cb_removerootdirbutton_i(Fl_Button*, void*);
static void cb_removerootdirbutton(Fl_Button*, void*);
public:
Fl_Button *makedefaultrootdirbutton;
private:
void cb_makedefaultrootdirbutton_i(Fl_Button*, void*);
static void cb_makedefaultrootdirbutton(Fl_Button*, void*);
public:
Fl_Osc_ListView *presetbrowse;
private:
void cb_presetbrowse_i(Fl_Osc_ListView*, void*);
static void cb_presetbrowse(Fl_Osc_ListView*, void*);
void cb_Add1_i(Fl_Button*, void*);
static void cb_Add1(Fl_Button*, void*);
public:
Fl_Button *removepresetbutton;
private:
void cb_removepresetbutton_i(Fl_Button*, void*);
static void cb_removepresetbutton(Fl_Button*, void*);
public:
Fl_Button *makedefaultpresetbutton;
private:
void cb_makedefaultpresetbutton_i(Fl_Button*, void*);
static void cb_makedefaultpresetbutton(Fl_Button*, void*);
void cb_Close_i(Fl_Button*, void*);
static void cb_Close(Fl_Button*, void*);
public:
ConfigUI(Fl_Osc_Interface *osc_);
void activatebutton_rootdir(bool active);
void activatebutton_presetdir(bool active);
void show();
class Fl_Osc_Interface *osc;
class Osc_IntModel *oscilsize;
};
#endif

+ 0
- 3024
zynaddsubfx/UI/EffUI.cpp
File diff suppressed because it is too large
View File


+ 0
- 318
zynaddsubfx/UI/EffUI.h View File

@@ -1,318 +0,0 @@
// generated by Fast Light User Interface Designer (fluid) version 1.0300

#ifndef EffUI_h
#define EffUI_h
#include <FL/Fl.H>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "../globals.h"
#include "Fl_Osc_Dial.H"
#include "Fl_Osc_Check.H"
#include "Fl_EQGraph.H"
#include "Fl_Osc_Pane.H"
#include "EnvelopeUI.h"
#include "FilterUI.h"
#include "../Misc/Util.h"
#include "../Effects/EffectMgr.h"
#include "../Effects/Phaser.h" /* for macros only, TODO */
#include "../Effects/Alienwah.h" /* for macros only, TODO */
#include "PresetsUI.h"
#include "common.H"
using namespace zyncarla;
#include <FL/Fl_Counter.H>
#include <FL/Fl_Group.H>
#include <FL/Fl_Button.H>
#include <FL/Fl_Double_Window.H>

class EffUI : public Fl_Osc_Group,public PresetsUI_ {
public:
EffUI(int x,int y, int w, int h, const char *label=0);
~EffUI();
Fl_Group* make_null_window();
Fl_Group *effnullwindow;
Fl_Group* make_reverb_window();
Fl_Group *effreverbwindow;
Fl_Osc_Choice *revp;
static Fl_Menu_Item menu_revp[];
Fl_Osc_Choice *revp10;
private:
void cb_revp10_i(Fl_Osc_Choice*, void*);
static void cb_revp10(Fl_Osc_Choice*, void*);
static Fl_Menu_Item menu_revp10[];
public:
Fl_Osc_Dial *revp0;
Fl_Osc_Dial *revp1;
Fl_Osc_Dial *revp2;
Fl_Osc_Dial *revp3;
Fl_Osc_Dial *revp4;
Fl_Osc_Dial *revp12;
Fl_Osc_Dial *revp6;
Fl_Osc_Dial *revp7;
Fl_Osc_Dial *revp8;
Fl_Osc_Dial *revp9;
Fl_Osc_Dial *revp11;
Fl_Group* make_echo_window();
Fl_Group *effechowindow;
Fl_Osc_Choice *echop;
static Fl_Menu_Item menu_echop[];
Fl_Osc_Dial *echop0;
Fl_Osc_Dial *echop1;
Fl_Osc_Dial *echop2;
Fl_Osc_Dial *echop3;
Fl_Osc_Dial *echop4;
Fl_Osc_Dial *echop5;
Fl_Osc_Dial *echop6;
Fl_Group* make_chorus_window();
Fl_Group *effchoruswindow;
Fl_Osc_Choice *chorusp;
static Fl_Menu_Item menu_chorusp[];
Fl_Osc_Dial *chorusp0;
Fl_Osc_Dial *chorusp1;
Fl_Osc_Dial *chorusp2;
Fl_Osc_Dial *chorusp3;
Fl_Osc_Dial *chorusp5;
Fl_Osc_Dial *chorusp6;
Fl_Osc_Dial *chorusp7;
Fl_Osc_Dial *chorusp8;
Fl_Osc_Dial *chorusp9;
Fl_Osc_Check *chorusp11;
Fl_Osc_Choice *chorusp4;
static Fl_Menu_Item menu_chorusp4[];
Fl_Group* make_phaser_window();
Fl_Group *effphaserwindow;
Fl_Osc_Choice *phaserp;
static Fl_Menu_Item menu_phaserp[];
Fl_Osc_Dial *phaserp0;
Fl_Osc_Dial *phaserp1;
Fl_Osc_Dial *phaserp2;
Fl_Osc_Dial *phaserp3;
Fl_Osc_Choice *phaserp4;
static Fl_Menu_Item menu_phaserp4[];
Fl_Osc_Dial *phaserp5;
Fl_Osc_Dial *phaserp6;
Fl_Osc_Dial *phaserp7;
Fl_Osc_Counter *phaserp8;
Fl_Osc_Dial *phaserp9;
Fl_Osc_Check *phaserp10;
Fl_Osc_Dial *phaserp11;
Fl_Osc_Check *phaserp12;
Fl_Osc_Dial *phaserp13;
Fl_Osc_Check *phaserp14;
Fl_Group* make_alienwah_window();
Fl_Group *effalienwahwindow;
Fl_Osc_Choice *awp;
static Fl_Menu_Item menu_awp[];
Fl_Osc_Dial *awp0;
Fl_Osc_Dial *awp1;
Fl_Osc_Dial *awp2;
Fl_Osc_Dial *awp3;
Fl_Osc_Dial *awp5;
Fl_Osc_Dial *awp6;
Fl_Osc_Dial *awp7;
Fl_Osc_Dial *awp9;
Fl_Osc_Choice *awp4;
static Fl_Menu_Item menu_awp4[];
Fl_Osc_Dial *awp10;
Fl_Osc_Counter *awp8;
Fl_Group* make_distorsion_window();
Fl_Group *effdistorsionwindow;
Fl_Osc_Choice *distp;
static Fl_Menu_Item menu_distp[];
Fl_Osc_Dial *distp0;
Fl_Osc_Dial *distp1;
Fl_Osc_Dial *distp2;
Fl_Osc_Dial *distp3;
Fl_Osc_Dial *distp4;
Fl_Osc_Dial *distp7;
Fl_Osc_Dial *distp8;
Fl_Osc_Choice *distp5;
static Fl_Menu_Item menu_distp5[];
Fl_Osc_Check *distp6;
Fl_Osc_Check *distp9;
Fl_Osc_Check *distp10;
Fl_Group* make_eq_window();
Fl_Group *effeqwindow;
Fl_Osc_Dial *eqp0;
private:
void cb_eqp0_i(Fl_Osc_Dial*, void*);
static void cb_eqp0(Fl_Osc_Dial*, void*);
public:
Fl_Counter *bandcounter;
private:
void cb_bandcounter_i(Fl_Counter*, void*);
static void cb_bandcounter(Fl_Counter*, void*);
public:
Fl_Group *bandgroup;
Fl_Osc_Dial *freqdial;
private:
void cb_freqdial_i(Fl_Osc_Dial*, void*);
static void cb_freqdial(Fl_Osc_Dial*, void*);
public:
Fl_Osc_Dial *gaindial;
private:
void cb_gaindial_i(Fl_Osc_Dial*, void*);
static void cb_gaindial(Fl_Osc_Dial*, void*);
public:
Fl_Osc_Dial *qdial;
private:
void cb_qdial_i(Fl_Osc_Dial*, void*);
static void cb_qdial(Fl_Osc_Dial*, void*);
public:
Fl_Osc_Counter *stagescounter;
private:
void cb_stagescounter_i(Fl_Osc_Counter*, void*);
static void cb_stagescounter(Fl_Osc_Counter*, void*);
public:
Fl_Osc_Choice *typechoice;
private:
void cb_typechoice_i(Fl_Osc_Choice*, void*);
static void cb_typechoice(Fl_Osc_Choice*, void*);
static Fl_Menu_Item menu_typechoice[];
public:
Fl_EQGraph *eqgraph;
Fl_Group* make_dynamicfilter_window();
Fl_Group *effdynamicfilterwindow;
Fl_Osc_Choice *dfp;
static Fl_Menu_Item menu_dfp[];
Fl_Osc_Dial *dfp0;
Fl_Osc_Dial *dfp1;
Fl_Osc_Dial *dfp2;
Fl_Osc_Dial *dfp3;
Fl_Osc_Dial *dfp5;
Fl_Osc_Dial *dfp6;
Fl_Osc_Choice *dfp4;
static Fl_Menu_Item menu_dfp4[];
private:
void cb_Filter_i(Fl_Button*, void*);
static void cb_Filter(Fl_Button*, void*);
public:
Fl_Osc_Dial *dfp7;
Fl_Osc_Dial *dfp9;
Fl_Osc_Check *dfp8;
Fl_Double_Window* make_filter_window();
Fl_Double_Window *filterwindow;
private:
void cb_Close_i(Fl_Button*, void*);
static void cb_Close(Fl_Button*, void*);
public:
void init(bool ins_);
void refresh();
private:
int eqband;
public:
bool insertion;
int efftype;
};

class SimpleEffUI : public Fl_Osc_Group,public PresetsUI_ {
public:
SimpleEffUI(int x,int y, int w, int h, const char *label=0);
~SimpleEffUI();
Fl_Group* make_null_window();
Fl_Group *effnullwindow;
Fl_Group* make_reverb_window();
Fl_Group *effreverbwindow;
Fl_Osc_Choice *revp;
static Fl_Menu_Item menu_revp1[];
Fl_Osc_Dial *revp0;
Fl_Osc_Dial *revp2;
Fl_Osc_Dial *revp3;
Fl_Osc_Dial *revp9;
Fl_Group* make_echo_window();
Fl_Group *effechowindow;
Fl_Osc_Choice *echop;
static Fl_Menu_Item menu_echop1[];
Fl_Osc_Dial *echop0;
Fl_Osc_Dial *echop2;
Fl_Osc_Dial *echop5;
Fl_Group* make_chorus_window();
Fl_Group *effchoruswindow;
Fl_Osc_Choice *chorusp;
static Fl_Menu_Item menu_chorusp1[];
Fl_Osc_Dial *chorusp0;
Fl_Osc_Dial *chorusp2;
Fl_Osc_Dial *chorusp6;
Fl_Osc_Dial *chorusp7;
Fl_Osc_Dial *chorusp8;
Fl_Group* make_phaser_window();
Fl_Group *effphaserwindow;
Fl_Osc_Choice *phaserp;
static Fl_Menu_Item menu_phaserp1[];
Fl_Osc_Dial *phaserp0;
Fl_Osc_Dial *phaserp2;
Fl_Osc_Dial *phaserp5;
Fl_Osc_Dial *phaserp6;
Fl_Osc_Dial *phaserp7;
Fl_Osc_Counter *phaserp8;
Fl_Group* make_alienwah_window();
Fl_Group *effalienwahwindow;
Fl_Osc_Choice *awp;
static Fl_Menu_Item menu_awp1[];
Fl_Osc_Dial *awp0;
Fl_Osc_Dial *awp2;
Fl_Osc_Dial *awp6;
Fl_Osc_Counter *awp8;
Fl_Group* make_distorsion_window();
Fl_Group *effdistorsionwindow;
Fl_Osc_Choice *distp;
static Fl_Menu_Item menu_distp1[];
Fl_Osc_Dial *distp0;
Fl_Osc_Dial *distp3;
Fl_Osc_Dial *distp4;
Fl_Osc_Dial *distp7;
Fl_Osc_Choice *distp5;
static Fl_Menu_Item menu_distp51[];
Fl_Group* make_eq_window();
Fl_Group *effeqwindow;
Fl_Counter *bandcounter;
private:
void cb_bandcounter1_i(Fl_Counter*, void*);
static void cb_bandcounter1(Fl_Counter*, void*);
public:
Fl_Group *bandgroup;
Fl_Osc_Dial *freqdial;
private:
void cb_freqdial1_i(Fl_Osc_Dial*, void*);
static void cb_freqdial1(Fl_Osc_Dial*, void*);
public:
Fl_Osc_Dial *gaindial;
private:
void cb_gaindial1_i(Fl_Osc_Dial*, void*);
static void cb_gaindial1(Fl_Osc_Dial*, void*);
public:
Fl_Osc_Dial *qdial;
private:
void cb_qdial1_i(Fl_Osc_Dial*, void*);
static void cb_qdial1(Fl_Osc_Dial*, void*);
public:
Fl_Osc_Counter *stagescounter;
private:
void cb_stagescounter1_i(Fl_Osc_Counter*, void*);
static void cb_stagescounter1(Fl_Osc_Counter*, void*);
public:
Fl_Osc_Choice *typechoice;
private:
void cb_typechoice1_i(Fl_Osc_Choice*, void*);
static void cb_typechoice1(Fl_Osc_Choice*, void*);
static Fl_Menu_Item menu_typechoice1[];
public:
Fl_EQGraph *eqgraph;
Fl_Group* make_dynamicfilter_window();
Fl_Group *effdynamicfilterwindow;
Fl_Osc_Choice *dfp;
static Fl_Menu_Item menu_dfp1[];
Fl_Osc_Dial *dfp0;
Fl_Osc_Dial *dfp2;
Fl_Osc_Dial *dfp6;
Fl_Osc_Dial *dfp7;
Fl_Osc_Dial *dfp9;
void init(bool ins_);
void refresh();
private:
int eqband;
public:
bool insertion;
int efftype;
};
#endif

+ 0
- 1352
zynaddsubfx/UI/EnvelopeUI.cpp
File diff suppressed because it is too large
View File


+ 0
- 256
zynaddsubfx/UI/EnvelopeUI.h View File

@@ -1,256 +0,0 @@
// generated by Fast Light User Interface Designer (fluid) version 1.0300

#ifndef EnvelopeUI_h
#define EnvelopeUI_h
#include <FL/Fl.H>
#include "Fl_Osc_Dial.H"
#include "Fl_Osc_Check.H"
#include "Fl_Osc_Button.H"
#include "Fl_Osc_Counter.H"
#include "Fl_Osc_Pane.H"
#include <stdio.h>
#include <stdlib.h>
#include "../globals.h"
#include <FL/Fl_Group.H>
#include "../Params/EnvelopeParams.h"
#include <FL/Fl_Box.H>
#include <FL/fl_draw.H>
#include <FL/fl_ask.H>
#include "PresetsUI.h"
#include "common.H"
#include "EnvelopeFreeEdit.h"

class PointButton : public Fl_Button, public Fl_Osc_Widget {
public:
PointButton(int x,int y, int w, int h, const char *label=0);
void rebase(std::string new_base);
void init(std::string path_);
};
#include <FL/Fl_Button.H>
#include <FL/Fl_Group.H>

class EnvelopeUI : public Fl_Osc_Group,PresetsUI_ {
public:
EnvelopeUI(int x,int y, int w, int h, const char *label=0);
~EnvelopeUI();
Fl_Osc_Window* make_freemode_edit_window();
Fl_Osc_Window *freemodeeditwindow;
private:
void cb_C_i(Fl_Button*, void*);
static void cb_C(Fl_Button*, void*);
void cb_P_i(Fl_Button*, void*);
static void cb_P(Fl_Button*, void*);
public:
PointButton *addpoint;
private:
void cb_addpoint_i(PointButton*, void*);
static void cb_addpoint(PointButton*, void*);
public:
EnvelopeFreeEdit *freeedit;
private:
void cb_freeedit_i(EnvelopeFreeEdit*, void*);
static void cb_freeedit(EnvelopeFreeEdit*, void*);
public:
PointButton *deletepoint;
private:
void cb_deletepoint_i(PointButton*, void*);
static void cb_deletepoint(PointButton*, void*);
public:
Fl_Osc_Check *forcedreleasecheck;
Fl_Osc_Dial *envstretchdial;
private:
void cb_Close_i(Fl_Button*, void*);
static void cb_Close(Fl_Button*, void*);
public:
Fl_Osc_Check *linearenvelopecheck;
Fl_Osc_Counter *sustaincounter;
private:
void cb_sustaincounter_i(Fl_Osc_Counter*, void*);
static void cb_sustaincounter(Fl_Osc_Counter*, void*);
public:
Fl_Osc_Check *freemodehack;
private:
void cb_freemodehack_i(Fl_Osc_Check*, void*);
static void cb_freemodehack(Fl_Osc_Check*, void*);
void cb_Cancel_i(Fl_Osc_Button*, void*);
static void cb_Cancel(Fl_Osc_Button*, void*);
public:
Fl_Osc_Group* make_ADSR_window();
Fl_Osc_Group *envADSR;
private:
void cb_C1_i(Fl_Button*, void*);
static void cb_C1(Fl_Button*, void*);
void cb_P1_i(Fl_Button*, void*);
static void cb_P1(Fl_Button*, void*);
public:
Fl_Osc_Dial *e1adt;
private:
void cb_e1adt_i(Fl_Osc_Dial*, void*);
static void cb_e1adt(Fl_Osc_Dial*, void*);
public:
Fl_Osc_Dial *e1ddt;
private:
void cb_e1ddt_i(Fl_Osc_Dial*, void*);
static void cb_e1ddt(Fl_Osc_Dial*, void*);
public:
Fl_Osc_Dial *e1rdt;
private:
void cb_e1rdt_i(Fl_Osc_Dial*, void*);
static void cb_e1rdt(Fl_Osc_Dial*, void*);
public:
Fl_Osc_Dial *e1sval;
private:
void cb_e1sval_i(Fl_Osc_Dial*, void*);
static void cb_e1sval(Fl_Osc_Dial*, void*);
public:
Fl_Osc_Check *e1forcedrelease;
Fl_Osc_Dial *e1envstretch;
private:
void cb_E_i(Fl_Osc_Button*, void*);
static void cb_E(Fl_Osc_Button*, void*);
public:
Fl_Osc_Check *e1linearenvelope;
Fl_Osc_Group* make_ASR_window();
Fl_Osc_Group *envASR;
private:
void cb_C2_i(Fl_Button*, void*);
static void cb_C2(Fl_Button*, void*);
void cb_P2_i(Fl_Button*, void*);
static void cb_P2(Fl_Button*, void*);
public:
Fl_Osc_Dial *e2aval;
private:
void cb_e2aval_i(Fl_Osc_Dial*, void*);
static void cb_e2aval(Fl_Osc_Dial*, void*);
public:
Fl_Osc_Dial *e2adt;
private:
void cb_e2adt_i(Fl_Osc_Dial*, void*);
static void cb_e2adt(Fl_Osc_Dial*, void*);
public:
Fl_Osc_Dial *e2rval;
private:
void cb_e2rval_i(Fl_Osc_Dial*, void*);
static void cb_e2rval(Fl_Osc_Dial*, void*);
public:
Fl_Osc_Dial *e2rdt;
private:
void cb_e2rdt_i(Fl_Osc_Dial*, void*);
static void cb_e2rdt(Fl_Osc_Dial*, void*);
public:
Fl_Osc_Dial *e2envstretch;
Fl_Osc_Check *e2forcedrelease;
private:
void cb_E1_i(Fl_Osc_Button*, void*);
static void cb_E1(Fl_Osc_Button*, void*);
public:
Fl_Osc_Group* make_ADSRfilter_window();
Fl_Osc_Group *envADSRfilter;
private:
void cb_C3_i(Fl_Button*, void*);
static void cb_C3(Fl_Button*, void*);
void cb_P3_i(Fl_Button*, void*);
static void cb_P3(Fl_Button*, void*);
public:
Fl_Osc_Dial *e3aval;
private:
void cb_e3aval_i(Fl_Osc_Dial*, void*);
static void cb_e3aval(Fl_Osc_Dial*, void*);
public:
Fl_Osc_Dial *e3adt;
private:
void cb_e3adt_i(Fl_Osc_Dial*, void*);
static void cb_e3adt(Fl_Osc_Dial*, void*);
public:
Fl_Osc_Dial *e3dval;
private:
void cb_e3dval_i(Fl_Osc_Dial*, void*);
static void cb_e3dval(Fl_Osc_Dial*, void*);
public:
Fl_Osc_Dial *e3ddt;
private:
void cb_e3ddt_i(Fl_Osc_Dial*, void*);
static void cb_e3ddt(Fl_Osc_Dial*, void*);
public:
Fl_Osc_Dial *e3rdt;
private:
void cb_e3rdt_i(Fl_Osc_Dial*, void*);
static void cb_e3rdt(Fl_Osc_Dial*, void*);
public:
Fl_Osc_Dial *e3rval;
private:
void cb_e3rval_i(Fl_Osc_Dial*, void*);
static void cb_e3rval(Fl_Osc_Dial*, void*);
public:
Fl_Osc_Dial *e3envstretch;
Fl_Osc_Check *e3forcedrelease;
private:
void cb_E2_i(Fl_Osc_Button*, void*);
static void cb_E2(Fl_Osc_Button*, void*);
public:
Fl_Osc_Group* make_ASRbw_window();
Fl_Osc_Group *envASRbw;
private:
void cb_C4_i(Fl_Button*, void*);
static void cb_C4(Fl_Button*, void*);
void cb_P4_i(Fl_Button*, void*);
static void cb_P4(Fl_Button*, void*);
public:
Fl_Osc_Dial *e4aval;
private:
void cb_e4aval_i(Fl_Osc_Dial*, void*);
static void cb_e4aval(Fl_Osc_Dial*, void*);
public:
Fl_Osc_Dial *e4adt;
private:
void cb_e4adt_i(Fl_Osc_Dial*, void*);
static void cb_e4adt(Fl_Osc_Dial*, void*);
public:
Fl_Osc_Dial *e4rval;
private:
void cb_e4rval_i(Fl_Osc_Dial*, void*);
static void cb_e4rval(Fl_Osc_Dial*, void*);
public:
Fl_Osc_Dial *e4rdt;
private:
void cb_e4rdt_i(Fl_Osc_Dial*, void*);
static void cb_e4rdt(Fl_Osc_Dial*, void*);
public:
Fl_Osc_Dial *e4envstretch;
Fl_Osc_Check *e4forcedrelease;
private:
void cb_E3_i(Fl_Osc_Button*, void*);
static void cb_E3(Fl_Osc_Button*, void*);
public:
Fl_Osc_Group* make_free_window();
Fl_Osc_Group *envfree;
Fl_Group *envfreegroup;
private:
void cb_E4_i(Fl_Osc_Button*, void*);
static void cb_E4(Fl_Osc_Button*, void*);
public:
EnvelopeFreeEdit *freeeditsmall;
private:
void cb_freeeditsmall_i(EnvelopeFreeEdit*, void*);
static void cb_freeeditsmall(EnvelopeFreeEdit*, void*);
void cb_C5_i(Fl_Button*, void*);
static void cb_C5(Fl_Button*, void*);
void cb_P5_i(Fl_Button*, void*);
static void cb_P5(Fl_Button*, void*);
public:
void open_as_freemode();
void init(int env_type, Fl_Osc_Interface *osc_, std::string base_, std::string ext_);
void rebase(std::string new_base);
void disable_freemode();
void refresh();
void refresh_display();
private:
int Envmode;
int Penvsustain;
int Penvpoints;
int Penvstretch;
int Pforcedrelease;
int Plinearenvelope;
Fl_Group *envwindow;
};
#endif

+ 0
- 905
zynaddsubfx/UI/FilterUI.cpp View File

@@ -1,905 +0,0 @@
// generated by Fast Light User Interface Designer (fluid) version 1.0300

#include "external/zynaddsubfx/UI/FilterUI.h"
//Copyright (c) 2002-2005 Nasca Octavian Paul
//License: GNU GPL version 2 or later
#include <cmath>
#include <stdio.h>
#include <stdlib.h>

void FilterUI::cb_P_i(Fl_Button*, void*) {
presetsui->paste(filterui->loc(),this);
}
void FilterUI::cb_P(Fl_Button* o, void* v) {
((FilterUI*)(o->parent()->user_data()))->cb_P_i(o,v);
}

Fl_Menu_Item FilterUI::menu_analogfiltertypechoice[] = {
{"LPF1", 0, 0, 0, 0, FL_NORMAL_LABEL, 1, 10, 0},
{"HPF1", 0, 0, 0, 0, FL_NORMAL_LABEL, 1, 10, 0},
{"LPF2", 0, 0, 0, 0, FL_NORMAL_LABEL, 1, 10, 0},
{"HPF2", 0, 0, 0, 0, FL_NORMAL_LABEL, 1, 10, 0},
{"BPF2", 0, 0, 0, 0, FL_NORMAL_LABEL, 1, 10, 0},
{"NF2", 0, 0, 0, 0, FL_NORMAL_LABEL, 1, 10, 0},
{"PkF2", 0, 0, 0, 0, FL_NORMAL_LABEL, 1, 10, 0},
{"LSh2", 0, 0, 0, 0, FL_NORMAL_LABEL, 1, 10, 0},
{"HSh2", 0, 0, 0, 0, FL_NORMAL_LABEL, 1, 10, 0},
{0,0,0,0,0,0,0,0,0}
};

Fl_Menu_Item FilterUI::menu_svfiltertypechoice[] = {
{"1LPF", 0, 0, 0, 0, FL_NORMAL_LABEL, 1, 10, 0},
{"1HPF", 0, 0, 0, 0, FL_NORMAL_LABEL, 1, 10, 0},
{"1BPF", 0, 0, 0, 0, FL_NORMAL_LABEL, 1, 10, 0},
{"1NF", 0, 0, 0, 0, FL_NORMAL_LABEL, 1, 10, 0},
{0,0,0,0,0,0,0,0,0}
};

void FilterUI::cb_filtertype_i(Fl_Osc_Choice*, void*) {
refresh();
}
void FilterUI::cb_filtertype(Fl_Osc_Choice* o, void* v) {
((FilterUI*)(o->parent()->parent()->user_data()))->cb_filtertype_i(o,v);
}

Fl_Menu_Item FilterUI::menu_filtertype[] = {
{"Analog", 0, 0, 0, 0, FL_NORMAL_LABEL, 1, 10, 0},
{"Formant", 0, 0, 0, 0, FL_NORMAL_LABEL, 1, 10, 0},
{"StVarF", 0, 0, 0, 0, FL_NORMAL_LABEL, 1, 10, 0},
{0,0,0,0,0,0,0,0,0}
};

void FilterUI::cb_qdial_i(Fl_Osc_Dial*, void*) {
formantfiltergraph->redraw();
}
void FilterUI::cb_qdial(Fl_Osc_Dial* o, void* v) {
((FilterUI*)(o->parent()->parent()->user_data()))->cb_qdial_i(o,v);
}

void FilterUI::cb_gaindial_i(Fl_Osc_Dial*, void*) {
formantfiltergraph->redraw();
}
void FilterUI::cb_gaindial(Fl_Osc_Dial* o, void* v) {
((FilterUI*)(o->parent()->parent()->user_data()))->cb_gaindial_i(o,v);
}

void FilterUI::cb_stcounter_i(Fl_Osc_Choice*, void*) {
formantfiltergraph->redraw();
}
void FilterUI::cb_stcounter(Fl_Osc_Choice* o, void* v) {
((FilterUI*)(o->parent()->parent()->user_data()))->cb_stcounter_i(o,v);
}

void FilterUI::cb_editbutton_i(Fl_Button*, void*) {
formantparswindow->show();
}
void FilterUI::cb_editbutton(Fl_Button* o, void* v) {
((FilterUI*)(o->parent()->user_data()))->cb_editbutton_i(o,v);
}

void FilterUI::cb_C_i(Fl_Button*, void*) {
presetsui->copy(filterui->loc());
}
void FilterUI::cb_C(Fl_Button* o, void* v) {
((FilterUI*)(o->parent()->user_data()))->cb_C_i(o,v);
}

void FilterUI::cb_P1_i(Fl_Button*, void*) {
presetsui->paste(filterui->loc(),this);
}
void FilterUI::cb_P1(Fl_Button* o, void* v) {
((FilterUI*)(o->parent()->user_data()))->cb_P1_i(o,v);
}

void FilterUI::cb_P2_i(Fl_Button*, void*) {
presetsui->paste(filterui->loc(),this,nvowel);
}
void FilterUI::cb_P2(Fl_Button* o, void* v) {
((FilterUI*)(o->parent()->user_data()))->cb_P2_i(o,v);
}

void FilterUI::cb_Formant_i(Fl_Counter* o, void*) {
nformant=(int) o->value();
formantparsgroup->reext("Pvowels"+to_s(nvowel)+"/Pformants"+to_s(nformant)+"/");
update_formant_window();
formantfiltergraph->redraw();
}
void FilterUI::cb_Formant(Fl_Counter* o, void* v) {
((FilterUI*)(o->parent()->parent()->user_data()))->cb_Formant_i(o,v);
}

void FilterUI::cb_Vowel_i(Fl_Counter* o, void*) {
nvowel=(int) o->value();
formantparsgroup->reext("Pvowels"+to_s(nvowel)+"/Pformants"+to_s(nformant)+"/");
update_formant_window();
formantfiltergraph->redraw();
}
void FilterUI::cb_Vowel(Fl_Counter* o, void* v) {
((FilterUI*)(o->parent()->parent()->user_data()))->cb_Vowel_i(o,v);
}

void FilterUI::cb_formant_freq_dial_i(Fl_Osc_Dial*, void*) {
formantfiltergraph->update();
}
void FilterUI::cb_formant_freq_dial(Fl_Osc_Dial* o, void* v) {
((FilterUI*)(o->parent()->parent()->parent()->user_data()))->cb_formant_freq_dial_i(o,v);
}

void FilterUI::cb_formant_q_dial_i(Fl_Osc_Dial*, void*) {
formantfiltergraph->update();
}
void FilterUI::cb_formant_q_dial(Fl_Osc_Dial* o, void* v) {
((FilterUI*)(o->parent()->parent()->parent()->user_data()))->cb_formant_q_dial_i(o,v);
}

void FilterUI::cb_formant_amp_dial_i(Fl_Osc_Dial*, void*) {
formantfiltergraph->update();
}
void FilterUI::cb_formant_amp_dial(Fl_Osc_Dial* o, void* v) {
((FilterUI*)(o->parent()->parent()->parent()->user_data()))->cb_formant_amp_dial_i(o,v);
}

void FilterUI::cb_sequencesize_i(Fl_Osc_Counter*, void*) {
update_formant_window();
}
void FilterUI::cb_sequencesize(Fl_Osc_Counter* o, void* v) {
((FilterUI*)(o->parent()->parent()->user_data()))->cb_sequencesize_i(o,v);
}

void FilterUI::cb_S_i(Fl_Counter* o, void*) {
nseqpos = o->value();update_formant_window();vowel_counter->oscMove("vowel_seq"+to_s(nseqpos));
}
void FilterUI::cb_S(Fl_Counter* o, void* v) {
((FilterUI*)(o->parent()->parent()->user_data()))->cb_S_i(o,v);
}

void FilterUI::cb_vowel_counter_i(Fl_Osc_Counter* o, void*) {
(void)o;//pars->Psequence[nseqpos].nvowel=(int) o->value(); pars->changed=true;
}
void FilterUI::cb_vowel_counter(Fl_Osc_Counter* o, void* v) {
((FilterUI*)(o->parent()->parent()->user_data()))->cb_vowel_counter_i(o,v);
}

void FilterUI::cb_numformants_i(Fl_Osc_Counter*, void*) {
update_formant_window();
formantfiltergraph->redraw();
}
void FilterUI::cb_numformants(Fl_Osc_Counter* o, void* v) {
((FilterUI*)(o->parent()->user_data()))->cb_numformants_i(o,v);
}

void FilterUI::cb_centerfreqvo_i(Fl_Osc_Output* o, void*) {
o->value(o->newvalue()/1000.0);
}
void FilterUI::cb_centerfreqvo(Fl_Osc_Output* o, void* v) {
((FilterUI*)(o->parent()->user_data()))->cb_centerfreqvo_i(o,v);
}

void FilterUI::cb_octavesfreqvo_i(Fl_Osc_Output* o, void*) {
o->value(o->newvalue());
}
void FilterUI::cb_octavesfreqvo(Fl_Osc_Output* o, void* v) {
((FilterUI*)(o->parent()->user_data()))->cb_octavesfreqvo_i(o,v);
}

void FilterUI::cb_cfknob_i(Fl_Osc_Slider*, void*) {
centerfreqvo->update();
}
void FilterUI::cb_cfknob(Fl_Osc_Slider* o, void* v) {
((FilterUI*)(o->parent()->user_data()))->cb_cfknob_i(o,v);
}

void FilterUI::cb_octknob_i(Fl_Osc_Slider*, void*) {
octavesfreqvo->update();
}
void FilterUI::cb_octknob(Fl_Osc_Slider* o, void* v) {
((FilterUI*)(o->parent()->user_data()))->cb_octknob_i(o,v);
}

void FilterUI::cb_Close_i(Fl_Button*, void*) {
formantparswindow->hide();
}
void FilterUI::cb_Close(Fl_Button* o, void* v) {
((FilterUI*)(o->parent()->user_data()))->cb_Close_i(o,v);
}

void FilterUI::cb_C1_i(Fl_Button*, void*) {
presetsui->copy(filterui->loc(),nvowel);
}
void FilterUI::cb_C1(Fl_Button* o, void* v) {
((FilterUI*)(o->parent()->user_data()))->cb_C1_i(o,v);
}

FilterUI::FilterUI(int x,int y, int w, int h, const char *label):Fl_Osc_Group(x,y,w,h) {
nvowel=0;nformant=0;nseqpos=0;
}

FilterUI::~FilterUI() {
filterui->hide();
formantparswindow->hide();
hide();
//delete (filterui);
delete (formantparswindow);
}

Fl_Osc_Group* FilterUI::make_window() {
{ filterui = new Fl_Osc_Group(0, 0, 275, 70);
filterui->box(FL_FLAT_BOX);
filterui->color(FL_LIGHT1);
filterui->selection_color(FL_BACKGROUND_COLOR);
filterui->labeltype(FL_NO_LABEL);
filterui->labelfont(1);
filterui->labelsize(14);
filterui->labelcolor(FL_FOREGROUND_COLOR);
filterui->user_data((void*)(this));
filterui->align(Fl_Align(FL_ALIGN_TOP));
filterui->when(FL_WHEN_RELEASE);
{ Fl_Button* o = new Fl_Button(203, 5, 15, 15, "P");
o->box(FL_THIN_UP_BOX);
o->color((Fl_Color)179);
o->labelfont(1);
o->labelsize(10);
o->labelcolor((Fl_Color)55);
o->callback((Fl_Callback*)cb_P);
} // Fl_Button* o
{ Fl_Group* o = filterparamswindow = new Fl_Group(0, 0, 275, 75, "Filter Parameters");
filterparamswindow->box(FL_UP_FRAME);
filterparamswindow->color((Fl_Color)183);
filterparamswindow->labeltype(FL_ENGRAVED_LABEL);
filterparamswindow->labelsize(10);
filterparamswindow->align(Fl_Align(FL_ALIGN_TOP|FL_ALIGN_INSIDE));
{ Fl_Osc_Choice* o = analogfiltertypechoice = new Fl_Osc_Choice(10, 50, 50, 15, "FilterType");
analogfiltertypechoice->tooltip("The Filter type");
analogfiltertypechoice->box(FL_UP_BOX);
analogfiltertypechoice->down_box(FL_BORDER_BOX);
analogfiltertypechoice->color(FL_BACKGROUND_COLOR);
analogfiltertypechoice->selection_color(FL_SELECTION_COLOR);
analogfiltertypechoice->labeltype(FL_NORMAL_LABEL);
analogfiltertypechoice->labelfont(0);
analogfiltertypechoice->labelsize(10);
analogfiltertypechoice->labelcolor(FL_FOREGROUND_COLOR);
analogfiltertypechoice->textsize(10);
analogfiltertypechoice->align(Fl_Align(FL_ALIGN_TOP_LEFT));
analogfiltertypechoice->when(FL_WHEN_RELEASE);
analogfiltertypechoice->menu(menu_analogfiltertypechoice);
o->init("Ptype");
} // Fl_Osc_Choice* analogfiltertypechoice
{ Fl_Osc_Choice* o = svfiltertypechoice = new Fl_Osc_Choice(10, 50, 50, 15, "FilterType");
svfiltertypechoice->tooltip("The Filter type");
svfiltertypechoice->box(FL_UP_BOX);
svfiltertypechoice->down_box(FL_BORDER_BOX);
svfiltertypechoice->color(FL_BACKGROUND_COLOR);
svfiltertypechoice->selection_color(FL_SELECTION_COLOR);
svfiltertypechoice->labeltype(FL_NORMAL_LABEL);
svfiltertypechoice->labelfont(0);
svfiltertypechoice->labelsize(10);
svfiltertypechoice->labelcolor(FL_FOREGROUND_COLOR);
svfiltertypechoice->textsize(10);
svfiltertypechoice->align(Fl_Align(FL_ALIGN_TOP_LEFT));
svfiltertypechoice->when(FL_WHEN_RELEASE);
svfiltertypechoice->menu(menu_svfiltertypechoice);
o->init("Ptype");
} // Fl_Osc_Choice* svfiltertypechoice
{ Fl_Osc_Choice* o = filtertype = new Fl_Osc_Choice(10, 20, 60, 15, "Category");
filtertype->tooltip("The Category of the Filter (Analog/Formantic/etc.)");
filtertype->box(FL_UP_BOX);
filtertype->down_box(FL_BORDER_BOX);
filtertype->color(FL_BACKGROUND_COLOR);
filtertype->selection_color(FL_SELECTION_COLOR);
filtertype->labeltype(FL_NORMAL_LABEL);
filtertype->labelfont(0);
filtertype->labelsize(10);
filtertype->labelcolor(FL_FOREGROUND_COLOR);
filtertype->textsize(10);
filtertype->callback((Fl_Callback*)cb_filtertype);
filtertype->align(Fl_Align(FL_ALIGN_TOP_LEFT));
filtertype->when(FL_WHEN_RELEASE);
filtertype->menu(menu_filtertype);
o->init("Pcategory");
} // Fl_Osc_Choice* filtertype
{ Fl_Osc_Dial* o = cfreqdial = new Fl_Osc_Dial(75, 25, 30, 30, "C.Freq");
cfreqdial->tooltip("Center Frequency of the Filter or the base position in the vowel\'s sequence");
cfreqdial->box(FL_ROUND_UP_BOX);
cfreqdial->color(FL_BACKGROUND_COLOR);
cfreqdial->selection_color(FL_INACTIVE_COLOR);
cfreqdial->labeltype(FL_NORMAL_LABEL);
cfreqdial->labelfont(0);
cfreqdial->labelsize(10);
cfreqdial->labelcolor(FL_FOREGROUND_COLOR);
cfreqdial->maximum(127);
cfreqdial->step(1);
cfreqdial->align(Fl_Align(FL_ALIGN_BOTTOM));
cfreqdial->when(FL_WHEN_CHANGED);
o->init("Pfreq");
} // Fl_Osc_Dial* cfreqdial
{ Fl_Osc_Dial* o = qdial = new Fl_Osc_Dial(110, 25, 30, 30, "Q");
qdial->tooltip("Filter resonance or bandwidth");
qdial->box(FL_ROUND_UP_BOX);
qdial->color(FL_BACKGROUND_COLOR);
qdial->selection_color(FL_INACTIVE_COLOR);
qdial->labeltype(FL_NORMAL_LABEL);
qdial->labelfont(0);
qdial->labelsize(10);
qdial->labelcolor(FL_FOREGROUND_COLOR);
qdial->maximum(127);
qdial->step(1);
qdial->callback((Fl_Callback*)cb_qdial);
qdial->align(Fl_Align(FL_ALIGN_BOTTOM));
qdial->when(FL_WHEN_CHANGED);
o->init("Pq");
} // Fl_Osc_Dial* qdial
{ Fl_Osc_Dial* o = freqtrdial = new Fl_Osc_Dial(215, 25, 30, 30, "freq.tr.");
freqtrdial->tooltip("Filter frequency tracking (left is negative, middle is 0, and right is positi\
ve)");
freqtrdial->box(FL_ROUND_UP_BOX);
freqtrdial->color(FL_BACKGROUND_COLOR);
freqtrdial->selection_color(FL_INACTIVE_COLOR);
freqtrdial->labeltype(FL_NORMAL_LABEL);
freqtrdial->labelfont(0);
freqtrdial->labelsize(10);
freqtrdial->labelcolor(FL_FOREGROUND_COLOR);
freqtrdial->maximum(127);
freqtrdial->step(1);
freqtrdial->align(Fl_Align(FL_ALIGN_BOTTOM));
freqtrdial->when(FL_WHEN_CHANGED);
o->init("Pfreqtrack");
} // Fl_Osc_Dial* freqtrdial
{ Fl_Osc_Dial* o = vsnsadial = new Fl_Osc_Dial(145, 25, 30, 30, "V.SnsA.");
vsnsadial->tooltip("Velocity sensing amount of the Filter");
vsnsadial->box(FL_ROUND_UP_BOX);
vsnsadial->color(FL_BACKGROUND_COLOR);
vsnsadial->selection_color(FL_INACTIVE_COLOR);
vsnsadial->labeltype(FL_NORMAL_LABEL);
vsnsadial->labelfont(0);
vsnsadial->labelsize(10);
vsnsadial->labelcolor(FL_FOREGROUND_COLOR);
vsnsadial->maximum(127);
vsnsadial->step(1);
vsnsadial->align(Fl_Align(FL_ALIGN_BOTTOM));
vsnsadial->when(FL_WHEN_CHANGED);
if(!alt_root.empty()) o->alt_init(alt_root, "VelocityScale");
else {o->deactivate(); o->value(127);o->mark_dead();}
} // Fl_Osc_Dial* vsnsadial
{ Fl_Osc_Dial* o = vsnsdial = new Fl_Osc_Dial(180, 25, 30, 30, "V.Sns.");
vsnsdial->tooltip("Velocity Sensing Function of the Filter");
vsnsdial->box(FL_ROUND_UP_BOX);
vsnsdial->color(FL_BACKGROUND_COLOR);
vsnsdial->selection_color(FL_INACTIVE_COLOR);
vsnsdial->labeltype(FL_NORMAL_LABEL);
vsnsdial->labelfont(0);
vsnsdial->labelsize(10);
vsnsdial->labelcolor(FL_FOREGROUND_COLOR);
vsnsdial->maximum(127);
vsnsdial->step(1);
vsnsdial->align(Fl_Align(FL_ALIGN_BOTTOM));
vsnsdial->when(FL_WHEN_CHANGED);
if(!alt_root.empty()) o->alt_init(alt_root, "VelocityScaleFunction");
else {o->deactivate(); o->value(127);o->mark_dead();}
} // Fl_Osc_Dial* vsnsdial
{ Fl_Osc_Dial* o = gaindial = new Fl_Osc_Dial(250, 35, 20, 20, "gain");
gaindial->tooltip("Filter output gain/damp");
gaindial->box(FL_ROUND_UP_BOX);
gaindial->color(FL_BACKGROUND_COLOR);
gaindial->selection_color(FL_INACTIVE_COLOR);
gaindial->labeltype(FL_NORMAL_LABEL);
gaindial->labelfont(0);
gaindial->labelsize(10);
gaindial->labelcolor(FL_FOREGROUND_COLOR);
gaindial->maximum(127);
gaindial->step(1);
gaindial->callback((Fl_Callback*)cb_gaindial);
gaindial->align(Fl_Align(FL_ALIGN_BOTTOM));
gaindial->when(FL_WHEN_CHANGED);
o->init("Pgain");
} // Fl_Osc_Dial* gaindial
{ Fl_Osc_Choice* o = stcounter = new Fl_Osc_Choice(235, 5, 35, 15, "St");
stcounter->tooltip("Filter stages (in order to increase dB/oct. value and the order of the filter\
)");
stcounter->box(FL_UP_BOX);
stcounter->down_box(FL_BORDER_BOX);
stcounter->color(FL_BACKGROUND_COLOR);
stcounter->selection_color(FL_SELECTION_COLOR);
stcounter->labeltype(FL_NORMAL_LABEL);
stcounter->labelfont(0);
stcounter->labelsize(10);
stcounter->labelcolor(FL_FOREGROUND_COLOR);
stcounter->textfont(1);
stcounter->textsize(10);
stcounter->callback((Fl_Callback*)cb_stcounter);
stcounter->align(Fl_Align(FL_ALIGN_LEFT));
stcounter->when(FL_WHEN_RELEASE);
for (int i=0;i<MAX_FILTER_STAGES;i++) {char tmp[10];snprintf(tmp,10,"%dx",i+1);o->add(tmp);};
o->init("Pstages");
} // Fl_Osc_Choice* stcounter
set_module_parameters( o );
filterparamswindow->end();
} // Fl_Group* filterparamswindow
{ editbutton = new Fl_Button(15, 40, 50, 25, "Edit");
editbutton->labelfont(1);
editbutton->labelsize(11);
editbutton->callback((Fl_Callback*)cb_editbutton);
} // Fl_Button* editbutton
{ Fl_Button* o = new Fl_Button(186, 5, 15, 15, "C");
o->box(FL_THIN_UP_BOX);
o->color((Fl_Color)179);
o->labelfont(1);
o->labelsize(10);
o->labelcolor((Fl_Color)55);
o->callback((Fl_Callback*)cb_C);
} // Fl_Button* o
{ Fl_Button* o = new Fl_Button(203, 5, 15, 15, "P");
o->box(FL_THIN_UP_BOX);
o->color((Fl_Color)179);
o->labelfont(1);
o->labelsize(10);
o->labelcolor((Fl_Color)55);
o->callback((Fl_Callback*)cb_P1);
} // Fl_Button* o
filterui->end();
} // Fl_Osc_Group* filterui
return filterui;
}

Fl_Osc_Window* FilterUI::make_formant_window() {
{ formantparswindow = new Fl_Osc_Window(700, 205, "Formant Filter Parameters");
formantparswindow->box(FL_FLAT_BOX);
formantparswindow->color(FL_BACKGROUND_COLOR);
formantparswindow->selection_color(FL_BACKGROUND_COLOR);
formantparswindow->labeltype(FL_NO_LABEL);
formantparswindow->labelfont(0);
formantparswindow->labelsize(14);
formantparswindow->labelcolor(FL_FOREGROUND_COLOR);
formantparswindow->user_data((void*)(this));
formantparswindow->align(Fl_Align(FL_ALIGN_TOP));
formantparswindow->when(FL_WHEN_RELEASE);
{ Fl_Button* o = new Fl_Button(665, 25, 25, 15, "P");
o->box(FL_THIN_UP_BOX);
o->color((Fl_Color)179);