Logo Search packages:      
Sourcecode: csound version File versions  Download package

winsound.cxx

// generated by Fast Light User Interface Designer (fluid) version 1.0107

#include "frontends/winsound/winsound.h"
#include <FL/Fl_File_Chooser.H>
int do_exit;
int do_perf, do_util;
int do_load;
Fl_Double_Window *ew;
Fl_Double_Window *xw;
Fl_Double_Window *uw;
Fl_Double_Window *textw;
Fl_Text_Buffer *text_buffer;
#include <FL/Fl_Pixmap.H>
#include "winsound.xpm"
void savetext(Fl_Text_Buffer*,int);
char *getopcodedir(void);
void cs_util_sndinfo(void);
void cs_util_opc(int full), cs_util_het(void), cs_util_lpc(void),cs_util_dnoise(void),cs_util_pinfo(void), cs_util_cvl(void), cs_util_pvc(void);

static void cb_WinSound(Fl_Double_Window* o, void*) {
  do_exit = 1;
o->hide();
}

Fl_File_Input *orchname=(Fl_File_Input *)0;

static void cb_orchname(Fl_File_Input*, void*) {
  do_load = 1;
}

Fl_File_Input *scorename=(Fl_File_Input *)0;

Fl_File_Input *output=(Fl_File_Input *)0;

static void cb_output(Fl_File_Input*, void*) {
  DAC->value(0);
}

Fl_Check_Button *DAC=(Fl_Check_Button *)0;

static void cb_DAC(Fl_Check_Button*, void*) {
  if (DAC->value()) output->value("dac");
}

Fl_Round_Button *wav=(Fl_Round_Button *)0;

static void cb_wav(Fl_Round_Button*, void*) {
  wav->value(1);
aiff->value(0);
ircam->value(0);
raw->value(0);
}

Fl_Round_Button *aiff=(Fl_Round_Button *)0;

static void cb_aiff(Fl_Round_Button*, void*) {
  wav->value(0);
aiff->value(1);
ircam->value(0);
raw->value(0);
}

Fl_Round_Button *ircam=(Fl_Round_Button *)0;

static void cb_ircam(Fl_Round_Button*, void*) {
  wav->value(0);
aiff->value(0);
ircam->value(1);
raw->value(0);
}

Fl_Round_Button *raw=(Fl_Round_Button *)0;

static void cb_raw(Fl_Round_Button*, void*) {
  wav->value(0);
aiff->value(0);
ircam->value(0);
raw->value(1);
}

Fl_Round_Button *size_8=(Fl_Round_Button *)0;

static void cb_size_8(Fl_Round_Button*, void*) {
  size_8->value(1);
size_16->value(0);
size_24->value(0);
size_32->value(0);
size_f->value(0);
}

Fl_Round_Button *size_16=(Fl_Round_Button *)0;

static void cb_size_16(Fl_Round_Button*, void*) {
  size_8->value(0);
size_16->value(1);
size_24->value(0);
size_32->value(0);
size_f->value(0);
}

Fl_Round_Button *size_24=(Fl_Round_Button *)0;

static void cb_size_24(Fl_Round_Button*, void*) {
  size_8->value(0);
size_16->value(0);
size_24->value(1);
size_32->value(0);
size_f->value(0);
}

Fl_Round_Button *size_32=(Fl_Round_Button *)0;

static void cb_size_32(Fl_Round_Button*, void*) {
  size_8->value(0);
size_16->value(0);
size_24->value(0);
size_32->value(1);
size_f->value(0);
}

Fl_Round_Button *size_f=(Fl_Round_Button *)0;

static void cb_size_f(Fl_Round_Button*, void*) {
  size_8->value(0);
size_16->value(0);
size_24->value(0);
size_32->value(0);
size_f->value(1);
}

Fl_Check_Button *mK=(Fl_Check_Button *)0;

static void cb_Render(Fl_Button*, void*) {
  do_perf = 1;
}

static void cb_Env(Fl_Button*, void*) {
  ew->show();
}

static void cb_Cancel(Fl_Button*, void*) {
  do_exit = 1;
}

static void cb_Utilities(Fl_Button*, void*) {
  uw->show();
}

static void cb_Extra(Fl_Button*, void*) {
  xw->show();
}

static void cb_New(Fl_Button*, void*) {
  do_load = 1;
}

static void cb_(Fl_Button*, void*) {
  orchname->value(fl_file_chooser("Orc/Csd", "*.{orc,csd}", NULL));
      do_load = 1;
}

static void cb_1(Fl_Button*, void*) {
  scorename->value(fl_file_chooser("Score", "*.sco", NULL));
}

static void cb_2(Fl_Button*, void*) {
  output->value(fl_file_chooser("Output", "*.{wav,aif,raw,irc}", NULL));
}

Fl_Button *icon=(Fl_Button *)0;

Fl_Double_Window* make_mainwindow() {
  Fl_Double_Window* w;
  { Fl_Double_Window* o = new Fl_Double_Window(465, 535, "WinSound");
    w = o;
    o->callback((Fl_Callback*)cb_WinSound);
    { Fl_File_Input* o = orchname = new Fl_File_Input(130, 15, 310, 30, "Orchestra           ");
      o->tooltip("File for csd or orchestra file");
      o->labeltype(FL_EMBOSSED_LABEL);
      o->callback((Fl_Callback*)cb_orchname);
      char *t; prof.get((const char*)"orchestra",t,"");
      o->value(t); free(t);
      do_load=1;
    }
    { Fl_File_Input* o = scorename = new Fl_File_Input(130, 65, 310, 30, "Score           ");
      o->tooltip("File for score");
      o->labeltype(FL_EMBOSSED_LABEL);
      char *t; prof.get("score",t,"");
      o->value(t); free(t);
    }
    { Fl_File_Input* o = output = new Fl_File_Input(130, 120, 310, 30, "Output File           ");
      o->tooltip("File for output, or dac or devaudio");
      o->labeltype(FL_EMBOSSED_LABEL);
      o->callback((Fl_Callback*)cb_output);
      char *t; prof.get("output",t,"");
      o->value(t); free(t);
    }
    { Fl_Check_Button* o = DAC = new Fl_Check_Button(385, 150, 55, 30, "DAC");
      o->tooltip("Set for immediate sound");
      o->down_box(FL_DOWN_BOX);
      o->labeltype(FL_EMBOSSED_LABEL);
      o->callback((Fl_Callback*)cb_DAC);
    }
    { Fl_Group* o = new Fl_Group(40, 180, 110, 155, "Format");
      o->tooltip("Set format of output file");
      o->box(FL_BORDER_BOX);
      o->align(FL_ALIGN_TOP_LEFT);
      { Fl_Round_Button* o = wav = new Fl_Round_Button(65, 195, 25, 25, "WAV");
        o->down_box(FL_ROUND_DOWN_BOX);
        o->callback((Fl_Callback*)cb_wav);
        int t; prof.get("W",t, 1);wav->value(t);
      }
      { Fl_Round_Button* o = aiff = new Fl_Round_Button(65, 230, 25, 25, "AIFF");
        o->down_box(FL_ROUND_DOWN_BOX);
        o->callback((Fl_Callback*)cb_aiff);
        int t; prof.get("A",t, 0);aiff->value(t);
      }
      { Fl_Round_Button* o = ircam = new Fl_Round_Button(65, 265, 25, 25, "IRCAM");
        o->down_box(FL_ROUND_DOWN_BOX);
        o->callback((Fl_Callback*)cb_ircam);
        int t; prof.get("J",t, 0);ircam->value(t);
      }
      { Fl_Round_Button* o = raw = new Fl_Round_Button(65, 300, 25, 25, "Raw");
        o->down_box(FL_ROUND_DOWN_BOX);
        o->callback((Fl_Callback*)cb_raw);
        int t; prof.get("h",t,0); o->value(t);
      }
      o->end();
    }
    { Fl_Group* o = new Fl_Group(175, 180, 105, 185, "Size");
      o->tooltip("Set sample size");
      o->box(FL_BORDER_BOX);
      o->align(FL_ALIGN_TOP_LEFT);
      { Fl_Round_Button* o = size_8 = new Fl_Round_Button(205, 200, 25, 25, "8bit");
        o->down_box(FL_ROUND_DOWN_BOX);
        o->callback((Fl_Callback*)cb_size_8);
        int t; prof.get("c",t,0);o->value(t);
      }
      { Fl_Round_Button* o = size_16 = new Fl_Round_Button(205, 235, 25, 25, "16bit");
        o->down_box(FL_ROUND_DOWN_BOX);
        o->callback((Fl_Callback*)cb_size_16);
        int t; prof.get("s",t,1);o->value(t);
      }
      { Fl_Round_Button* o = size_24 = new Fl_Round_Button(205, 270, 25, 25, "24bit");
        o->down_box(FL_ROUND_DOWN_BOX);
        o->callback((Fl_Callback*)cb_size_24);
        int t; prof.get("3",t,0);o->value(t);
      }
      { Fl_Round_Button* o = size_32 = new Fl_Round_Button(205, 305, 25, 25, "32bit");
        o->down_box(FL_ROUND_DOWN_BOX);
        o->callback((Fl_Callback*)cb_size_32);
        int t; prof.get("l",t,0);o->value(t);
      }
      { Fl_Round_Button* o = size_f = new Fl_Round_Button(205, 335, 25, 25, "floats");
        o->down_box(FL_ROUND_DOWN_BOX);
        o->callback((Fl_Callback*)cb_size_f);
        int t; prof.get("f",t,0);o->value(t);
      }
      o->end();
    }
    { Fl_Check_Button* o = mK = new Fl_Check_Button(40, 350, 110, 25, "Peak Chunks");
      o->tooltip("Include peak chunks in WAV output");
      o->down_box(FL_DOWN_BOX);
      int t; prof.get("K",t,1);o->value(t);
    }
    { Fl_Button* o = new Fl_Button(45, 415, 80, 35, "Render");
      o->tooltip("Render the piece");
      o->box(FL_ENGRAVED_BOX);
      o->down_box(FL_EMBOSSED_BOX);
      o->color((Fl_Color)3);
      o->callback((Fl_Callback*)cb_Render);
    }
    { Fl_Button* o = new Fl_Button(140, 415, 80, 35, "Env");
      o->tooltip("Set up environment variables");
      o->box(FL_ENGRAVED_BOX);
      o->down_box(FL_EMBOSSED_BOX);
      o->color((Fl_Color)133);
      o->callback((Fl_Callback*)cb_Env);
      w->hotspot(o);
    }
    { Fl_Button* o = new Fl_Button(235, 415, 80, 35, "Cancel");
      o->tooltip("Exit winsound5");
      o->box(FL_ENGRAVED_BOX);
      o->down_box(FL_EMBOSSED_BOX);
      o->color((Fl_Color)1);
      o->callback((Fl_Callback*)cb_Cancel);
    }
    { Fl_Button* o = new Fl_Button(335, 415, 80, 35, "Utilities");
      o->tooltip("Dialog for utility programs");
      o->box(FL_ENGRAVED_BOX);
      o->down_box(FL_EMBOSSED_BOX);
      o->color((Fl_Color)143);
      o->callback((Fl_Callback*)cb_Utilities);
    }
    { Fl_Button* o = new Fl_Button(335, 355, 80, 35, "Extra");
      o->tooltip("Additional command options");
      o->box(FL_ENGRAVED_BOX);
      o->down_box(FL_EMBOSSED_BOX);
      o->color((Fl_Color)231);
      o->callback((Fl_Callback*)cb_Extra);
    }
    { Fl_Button* o = new Fl_Button(335, 295, 80, 35, "Help");
      o->tooltip("Call Help");
      o->box(FL_ENGRAVED_BOX);
      o->down_box(FL_EMBOSSED_BOX);
      o->color((Fl_Color)251);
      o->deactivate();
    }
    { Fl_Button* o = new Fl_Button(335, 235, 80, 35, "New");
      o->tooltip("Force recompilation");
      o->box(FL_ENGRAVED_BOX);
      o->down_box(FL_EMBOSSED_BOX);
      o->color(FL_BACKGROUND2_COLOR);
      o->callback((Fl_Callback*)cb_New);
    }
    { Fl_Output* o = new Fl_Output(140, 475, 275, 35, "output:");
      o->box(FL_NO_BOX);
      o->color(FL_BACKGROUND_COLOR);
      o->labelfont(9);
      o->labelsize(18);
      o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
      o->value("Csound5 Launcher");
    }
    { Fl_Button* o = new Fl_Button(100, 20, 25, 25, "?");
      o->callback((Fl_Callback*)cb_);
    }
    { Fl_Button* o = new Fl_Button(100, 70, 25, 25, "?");
      o->callback((Fl_Callback*)cb_1);
    }
    { Fl_Button* o = new Fl_Button(100, 125, 25, 25, "?");
      o->callback((Fl_Callback*)cb_2);
    }
    { Fl_Button* o = icon = new Fl_Button(65, 460, 65, 65);
      o->box(FL_NO_BOX);
      o->deactivate();
      Fl_Pixmap *pixmap = new Fl_Pixmap(winsound_xpm);
      icon->image(pixmap);
    }
    o->end();
  }
  return w;
}

Fl_Round_Button *util_het=(Fl_Round_Button *)0;

static void cb_util_het(Fl_Round_Button*, void*) {
  util_lpc->value(0);
util_pvc->value(0);
util_cvl->value(0);
util_info->value(0);
util_pinfo->value(0);
util_dnoise->value(0);
util_opc->value(0);
util_opv->value(0);
}

Fl_Round_Button *util_lpc=(Fl_Round_Button *)0;

static void cb_util_lpc(Fl_Round_Button*, void*) {
  util_het->value(0);
util_pvc->value(0);
util_cvl->value(0);
util_info->value(0);
util_pinfo->value(0);
util_dnoise->value(0);
util_opc->value(0);
util_opv->value(0);
}

Fl_Round_Button *util_pvc=(Fl_Round_Button *)0;

static void cb_util_pvc(Fl_Round_Button*, void*) {
  util_het->value(0);
util_lpc->value(0);
util_cvl->value(0);
util_info->value(0);
util_pinfo->value(0);
util_dnoise->value(0);
util_opc->value(0);
util_opv->value(0);
}

Fl_Round_Button *util_cvl=(Fl_Round_Button *)0;

static void cb_util_cvl(Fl_Round_Button*, void*) {
  util_het->value(0);
util_lpc->value(0);
util_pvc->value(0);
util_info->value(0);
util_pinfo->value(0);
util_dnoise->value(0);
util_opc->value(0);
util_opv->value(0);
}

Fl_Round_Button *util_info=(Fl_Round_Button *)0;

static void cb_util_info(Fl_Round_Button*, void*) {
  util_het->value(0);
util_lpc->value(0);
util_pvc->value(0);
util_cvl->value(0);
util_pinfo->value(0);
util_dnoise->value(0);
util_opc->value(0);
util_opv->value(0);
}

Fl_Round_Button *util_pinfo=(Fl_Round_Button *)0;

static void cb_util_pinfo(Fl_Round_Button*, void*) {
  util_het->value(0);
util_lpc->value(0);
util_pvc->value(0);
util_cvl->value(0);
util_info->value(0);
util_dnoise->value(0);
util_opc->value(0);
util_opv->value(0);
}

Fl_Round_Button *util_dnoise=(Fl_Round_Button *)0;

static void cb_util_dnoise(Fl_Round_Button*, void*) {
  util_het->value(0);
util_lpc->value(0);
util_pvc->value(0);
util_cvl->value(0);
util_info->value(0);
util_pinfo->value(0);
util_opc->value(0);
util_opv->value(0);
}

Fl_Round_Button *util_opc=(Fl_Round_Button *)0;

static void cb_util_opc(Fl_Round_Button*, void*) {
  util_het->value(0);
util_lpc->value(0);
util_pvc->value(0);
util_cvl->value(0);
util_info->value(0);
util_pinfo->value(0);
util_dnoise->value(0);
util_opv->value(0);
}

Fl_Round_Button *util_opv=(Fl_Round_Button *)0;

static void cb_util_opv(Fl_Round_Button*, void*) {
  util_het->value(0);
util_lpc->value(0);
util_pvc->value(0);
util_cvl->value(0);
util_info->value(0);
util_pinfo->value(0);
util_dnoise->value(0);
util_opc->value(0);
}

static void cb_OK(Fl_Button*, void*) {
  // Do the thing
uw->hide();
do_util = 0;
if (util_info->value()) cs_util_sndinfo();
else if (util_opc->value()) cs_util_opc(0);
else if (util_opv->value()) cs_util_opc(1);
else if (util_het->value()) cs_util_het();
else if (util_lpc->value()) cs_util_lpc();
else if (util_pvc->value()) cs_util_pvc();
else if (util_cvl->value()) cs_util_cvl();
else if (util_pinfo->value()) cs_util_pinfo();
else if (util_dnoise->value()) cs_util_dnoise();
}

static void cb_Cancel1(Fl_Button*, void*) {
  uw->hide();
}

Fl_Double_Window* make_utils() {
  Fl_Double_Window* w;
  { Fl_Double_Window* o = new Fl_Double_Window(215, 300, "Utilities");
    w = o;
    { Fl_Round_Button* o = util_het = new Fl_Round_Button(25, 5, 150, 25, "Hetrodyne Analysis");
      o->down_box(FL_ROUND_DOWN_BOX);
      o->callback((Fl_Callback*)cb_util_het);
    }
    { Fl_Round_Button* o = util_lpc = new Fl_Round_Button(25, 32, 150, 25, "LPC Analysis");
      o->down_box(FL_ROUND_DOWN_BOX);
      o->callback((Fl_Callback*)cb_util_lpc);
    }
    { Fl_Round_Button* o = util_pvc = new Fl_Round_Button(25, 60, 185, 25, "Phase Vocoding Analysis");
      o->down_box(FL_ROUND_DOWN_BOX);
      o->callback((Fl_Callback*)cb_util_pvc);
    }
    { Fl_Round_Button* o = util_cvl = new Fl_Round_Button(25, 87, 155, 25, "Convolution Analysis");
      o->down_box(FL_ROUND_DOWN_BOX);
      o->callback((Fl_Callback*)cb_util_cvl);
    }
    { Fl_Round_Button* o = util_info = new Fl_Round_Button(25, 115, 150, 25, "Sound File Info");
      o->down_box(FL_ROUND_DOWN_BOX);
      o->callback((Fl_Callback*)cb_util_info);
      util_info->value(1);
    }
    { Fl_Round_Button* o = util_pinfo = new Fl_Round_Button(25, 142, 180, 23, "Phase Vocoder File Info");
      o->down_box(FL_ROUND_DOWN_BOX);
      o->callback((Fl_Callback*)cb_util_pinfo);
    }
    { Fl_Round_Button* o = util_dnoise = new Fl_Round_Button(25, 170, 150, 25, "De Noiser");
      o->down_box(FL_ROUND_DOWN_BOX);
      o->callback((Fl_Callback*)cb_util_dnoise);
    }
    { Fl_Round_Button* o = util_opc = new Fl_Round_Button(25, 197, 150, 20, "List Opcodes");
      o->down_box(FL_ROUND_DOWN_BOX);
      o->callback((Fl_Callback*)cb_util_opc);
    }
    { Fl_Round_Button* o = util_opv = new Fl_Round_Button(25, 220, 150, 25, "Opcode Details");
      o->down_box(FL_ROUND_DOWN_BOX);
      o->callback((Fl_Callback*)cb_util_opv);
    }
    { Fl_Button* o = new Fl_Button(25, 260, 60, 25, "OK");
      o->color((Fl_Color)3);
      o->callback((Fl_Callback*)cb_OK);
    }
    { Fl_Button* o = new Fl_Button(130, 260, 55, 25, "Cancel");
      o->color((Fl_Color)1);
      o->callback((Fl_Callback*)cb_Cancel1);
    }
    o->end();
  }
  return w;
}

Fl_Check_Button *mI=(Fl_Check_Button *)0;

Fl_Check_Button *mn=(Fl_Check_Button *)0;

Fl_Check_Button *mv=(Fl_Check_Button *)0;

Fl_Check_Button *mR=(Fl_Check_Button *)0;

Fl_Value_Input *mH=(Fl_Value_Input *)0;

Fl_Check_Button *mN=(Fl_Check_Button *)0;

Fl_Value_Input *mr=(Fl_Value_Input *)0;

Fl_Value_Input *mk=(Fl_Value_Input *)0;

Fl_Value_Input *mm=(Fl_Value_Input *)0;

Fl_Value_Input *mt=(Fl_Value_Input *)0;

Fl_Value_Input *mB=(Fl_Value_Input *)0;

Fl_Value_Input *mb=(Fl_Value_Input *)0;

Fl_File_Input *mM=(Fl_File_Input *)0;

Fl_File_Input *mi=(Fl_File_Input *)0;

Fl_Check_Button *mSave=(Fl_Check_Button *)0;

Fl_Check_Button *mZ=(Fl_Check_Button *)0;

static void cb_OK1(Fl_Button*, void* v) {
  // Transfer!!!
xw->hide();prof.set("t0",mSave->value());
prof.set("Z",mZ->value());prof.set("I",mI->value());prof.set("n",mn->value());
prof.set("v",mv->value());prof.set("R",mR->value());prof.set("H",mH->value());
prof.set("N",mN->value());prof.set("r",mr->value());prof.set("k",mk->value());
prof.set("m",mm->value());prof.set("t",mt->value());prof.set("B",mB->value());
prof.set("b",mb->value());prof.set("M",mM->value());prof.set("i",mi->value());
}

static void cb_Cancel2(Fl_Button*, void*) {
  xw->hide();
}

static void cb_3(Fl_Button*, void*) {
  mM->value(fl_file_chooser("MIDI", "*.mid", NULL));
}

static void cb_4(Fl_Button*, void*) {
  mi->value(fl_file_chooser("Input", "*.{wav,aif}", NULL));
}

Fl_Double_Window* make_extras() {
  Fl_Double_Window* w;
  { Fl_Double_Window* o = new Fl_Double_Window(400, 350, "Additional Arguments");
    w = o;
    { Fl_Check_Button* o = mI = new Fl_Check_Button(15, 25, 25, 25, "I time only (-I)");
      o->down_box(FL_DOWN_BOX);
      int t; prof.get("I",t,0);o->value(t);
    }
    { Fl_Check_Button* o = mn = new Fl_Check_Button(15, 58, 25, 25, "No sound to disk (-n)");
      o->down_box(FL_DOWN_BOX);
      int t; prof.get("n",t,0);o->value(t);
    }
    { Fl_Check_Button* o = mv = new Fl_Check_Button(15, 91, 25, 25, "Verbose (-v)");
      o->down_box(FL_DOWN_BOX);
      int t; prof.get("v",t,0);o->value(t);
    }
    { Fl_Check_Button* o = mR = new Fl_Check_Button(15, 124, 25, 25, "Rewrite Header (-R)");
      o->down_box(FL_DOWN_BOX);
      int t; prof.get("R",t,0);o->value(t);
    }
    { Fl_Value_Input* o = mH = new Fl_Value_Input(15, 157, 30, 25, "Heartbeat (-H)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof.get("H",t,0);o->value(t);
    }
    { Fl_Check_Button* o = mN = new Fl_Check_Button(15, 190, 25, 25, "Notify (-N)");
      o->down_box(FL_DOWN_BOX);
      int t; prof.get("N",t,0);o->value(t);
    }
    { Fl_Value_Input* o = mr = new Fl_Value_Input(335, 25, 40, 25, "SRate override (-r)");
      int t; prof.get("r",t,-1);o->value(t);
    }
    { Fl_Value_Input* o = mk = new Fl_Value_Input(335, 56, 40, 25, "KRate override (-k)");
      int t; prof.get("k",t,-1);o->value(t);
    }
    { Fl_Value_Input* o = mm = new Fl_Value_Input(335, 87, 40, 25, "Message level (-m)");
      int t; prof.get("m",t,7);o->value(t);
    }
    { Fl_Value_Input* o = mt = new Fl_Value_Input(335, 118, 40, 25, "Beats (-t)");
      int t; prof.get("t",t,-1);o->value(t);
    }
    { Fl_Value_Input* o = mB = new Fl_Value_Input(335, 149, 40, 25, "Samples/Hardware (-B)");
      int t; prof.get("B",t,1024);o->value(t);
    }
    { Fl_Value_Input* o = mb = new Fl_Value_Input(335, 180, 40, 25, "Samples/Hardware (-b)");
      int t; prof.get("b",t,512);o->value(t);
    }
    { Fl_File_Input* o = mM = new Fl_File_Input(20, 240, 160, 25, "MIDI File input (-M)");
      o->align(FL_ALIGN_TOP_LEFT);
      char *t; prof.get("M",t,""); o->value(t); free(t);
    }
    { Fl_File_Input* o = mi = new Fl_File_Input(210, 240, 160, 30, "Sound Input (-i)");
      o->align(FL_ALIGN_TOP_LEFT);
      char *t; prof.get("i",t,""); o->value(t); free(t);
    }
    { Fl_Check_Button* o = mSave = new Fl_Check_Button(20, 275, 25, 25, "Keep Sorted Score");
      o->down_box(FL_DOWN_BOX);
      int t; prof.get("t0",t,0);o->value(t);
    }
    { Fl_Check_Button* o = mZ = new Fl_Check_Button(215, 280, 25, 25, "Dither Output");
      o->down_box(FL_DOWN_BOX);
      int t; prof.get("Z",t,0);o->value(t);
    }
    { Fl_Button* o = new Fl_Button(65, 305, 75, 30, "OK");
      o->color((Fl_Color)3);
      o->callback((Fl_Callback*)cb_OK1);
    }
    { Fl_Button* o = new Fl_Button(265, 305, 75, 30, "Cancel");
      o->color((Fl_Color)1);
      o->callback((Fl_Callback*)cb_Cancel2);
    }
    { Fl_Button* o = new Fl_Button(160, 220, 20, 20, "?");
      o->callback((Fl_Callback*)cb_3);
    }
    { Fl_Button* o = new Fl_Button(350, 220, 20, 20, "?");
      o->callback((Fl_Callback*)cb_4);
    }
    o->end();
  }
  return w;
}

Fl_File_Input *op=(Fl_File_Input *)0;

Fl_File_Input *ss=(Fl_File_Input *)0;

Fl_File_Input *sf=(Fl_File_Input *)0;

Fl_File_Input *sa=(Fl_File_Input *)0;

static void cb_OK2(Fl_Button*, void*) {
  // Transfer vales!!
csoundSetGlobalEnv("OPCODEDIR",(char*) op->value());
csoundSetGlobalEnv("SSDIR", (char*) ss->value());
csoundSetGlobalEnv("SFDIR", (char*) sf->value());
csoundSetGlobalEnv("SADIR", (char*) sa->value());
ew->hide();
}

static void cb_Cancel3(Fl_Button*, void*) {
  ew->hide();
}

static void cb_O(Fl_Button*, void*) {
  op->value(fl_dir_chooser("OPCODEDIR", NULL));
}

static void cb_S(Fl_Button*, void*) {
  ss->value(fl_dir_chooser("SSDIR", NULL));
}

static void cb_F(Fl_Button*, void*) {
  sf->value(fl_dir_chooser("SFDIR", NULL));
}

static void cb_A(Fl_Button*, void*) {
  sa->value(fl_dir_chooser("SADIR", NULL));
}

Fl_Double_Window* make_environ() {
  Fl_Double_Window* w;
  { Fl_Double_Window* o = new Fl_Double_Window(325, 230, "Settings");
    w = o;
    { Fl_File_Input* o = op = new Fl_File_Input(95, 15, 185, 25, "OPCODEDIR");
      char *t; prof.get("envop",t, getopcodedir());
      op->value(t);
    }
    { Fl_File_Input* o = ss = new Fl_File_Input(95, 60, 185, 25, "SSDIR");
      char *t; prof.get("envss",t, getenv("SSDIR"));
      ss->value(t);
    }
    { Fl_File_Input* o = sf = new Fl_File_Input(95, 105, 185, 25, "SFDIR");
      char *t; prof.get("envsf",t, getenv("SFDIR"));
      sf->value(t);
    }
    { Fl_File_Input* o = sa = new Fl_File_Input(95, 145, 185, 25, "SADIR");
      char *t; prof.get("envop",t, getenv("SADIR"));
      sa->value(t);
    }
    { Fl_Button* o = new Fl_Button(50, 185, 75, 30, "OK");
      o->color((Fl_Color)3);
      o->callback((Fl_Callback*)cb_OK2);
    }
    { Fl_Button* o = new Fl_Button(205, 185, 75, 30, "Cancel");
      o->color((Fl_Color)1);
      o->callback((Fl_Callback*)cb_Cancel3);
    }
    { Fl_Button* o = new Fl_Button(290, 15, 25, 25, "O");
      o->color((Fl_Color)222);
      o->callback((Fl_Callback*)cb_O);
    }
    { Fl_Button* o = new Fl_Button(290, 60, 25, 25, "S");
      o->color((Fl_Color)222);
      o->callback((Fl_Callback*)cb_S);
    }
    { Fl_Button* o = new Fl_Button(290, 105, 25, 25, "F");
      o->color((Fl_Color)222);
      o->callback((Fl_Callback*)cb_F);
    }
    { Fl_Button* o = new Fl_Button(290, 145, 25, 25, "A");
      o->color((Fl_Color)222);
      o->callback((Fl_Callback*)cb_A);
    }
    o->end();
  }
  return w;
}

Fl_File_Input *sndinfo_file=(Fl_File_Input *)0;

static void cb_OK3(Fl_Return_Button*, void*) {
  do_util = 1;
}

static void cb_Cancel4(Fl_Button*, void*) {
  do_util = -1;
}

static void cb_Browse(Fl_Button*, void*) {
  sndinfo_file->value(fl_file_chooser("SndInfo", "*.{wav,aif,raw,irc}", NULL));
}

Fl_Double_Window* make_info() {
  Fl_Double_Window* w;
  { Fl_Double_Window* o = new Fl_Double_Window(260, 80, "Sndinfo");
    w = o;
    { Fl_File_Input* o = sndinfo_file = new Fl_File_Input(0, 0, 260, 30);
      sndinfo_file->value(output->value());
    }
    { Fl_Return_Button* o = new Fl_Return_Button(10, 40, 55, 25, "OK");
      o->color((Fl_Color)3);
      o->callback((Fl_Callback*)cb_OK3);
    }
    { Fl_Button* o = new Fl_Button(105, 40, 50, 25, "Cancel");
      o->color((Fl_Color)1);
      o->callback((Fl_Callback*)cb_Cancel4);
    }
    { Fl_Button* o = new Fl_Button(205, 40, 50, 25, "Browse");
      o->callback((Fl_Callback*)cb_Browse);
    }
    o->end();
  }
  return w;
}

Fl_Double_Window *analw=(Fl_Double_Window *)0;

Fl_File_Input *analin=(Fl_File_Input *)0;

Fl_File_Input *analout=(Fl_File_Input *)0;

static void cb_Cancel5(Fl_Button*, void*) {
  analw->hide();
}

Fl_Double_Window* make_anal() {
  Fl_Double_Window* w;
  { Fl_Double_Window* o = analw = new Fl_Double_Window(365, 100);
    w = o;
    analin = new Fl_File_Input(40, 10, 290, 25, "Input");
    analout = new Fl_File_Input(40, 35, 290, 25, "Output");
    { Fl_Return_Button* o = new Fl_Return_Button(20, 65, 50, 25, "OK");
      o->color((Fl_Color)3);
    }
    { Fl_Button* o = new Fl_Button(310, 65, 50, 25, "Cancel");
      o->color((Fl_Color)1);
      o->callback((Fl_Callback*)cb_Cancel5);
    }
    { Fl_Button* o = new Fl_Button(330, 10, 25, 25, "?");
      o->color((Fl_Color)5);
    }
    { Fl_Button* o = new Fl_Button(330, 35, 25, 25, "?");
      o->color((Fl_Color)5);
    }
    o->end();
  }
  return w;
}

Fl_Text_Display *text=(Fl_Text_Display *)0;

static void cb_Hide(Fl_Button*, void*) {
  textw->hide();
}

static void cb_Clear(Fl_Button*, void*) {
  text_buffer->remove(0, text_buffer->length());
}

static void cb_Save(Fl_Button*, void*) {
  savetext(text->buffer(),0);
}

static void cb_Save1(Fl_Button*, void*) {
  savetext(text->buffer(),1);
}

Fl_Double_Window* make_textwindow() {
  Fl_Double_Window* w;
  { Fl_Double_Window* o = new Fl_Double_Window(725, 570);
    w = o;
    { Fl_Text_Display* o = text = new Fl_Text_Display(25, 25, 665, 500, "Winsound5 Output");
      Fl_Group::current()->resizable(o);
      text_buffer = new Fl_Text_Buffer(1024);
      text->buffer(text_buffer);
      text->textfont(FL_COURIER);
    }
    { Fl_Button* o = new Fl_Button(25, 535, 45, 25, "Hide");
      o->callback((Fl_Callback*)cb_Hide);
    }
    { Fl_Button* o = new Fl_Button(90, 535, 45, 25, "Clear");
      o->callback((Fl_Callback*)cb_Clear);
    }
    { Fl_Button* o = new Fl_Button(155, 535, 65, 25, "Save All");
      o->callback((Fl_Callback*)cb_Save);
    }
    { Fl_Button* o = new Fl_Button(240, 535, 104, 25, "Save Selection");
      o->callback((Fl_Callback*)cb_Save1);
    }
    o->end();
  }
  return w;
}

Fl_File_Input *savefile=(Fl_File_Input *)0;

static void cb_OK4(Fl_Return_Button*, void*) {
  do_util = 1;
}

static void cb_Cancel6(Fl_Button*, void*) {
  do_util = -1;
}

Fl_Double_Window* make_saver() {
  Fl_Double_Window* w;
  { Fl_Double_Window* o = new Fl_Double_Window(395, 80, "Save As");
    w = o;
    savefile = new Fl_File_Input(60, 5, 285, 30, "Save as");
    { Fl_Button* o = new Fl_Button(345, 5, 30, 30, "?");
      o->color((Fl_Color)5);
    }
    { Fl_Return_Button* o = new Fl_Return_Button(20, 44, 50, 25, "OK");
      o->color((Fl_Color)3);
      o->callback((Fl_Callback*)cb_OK4);
    }
    { Fl_Button* o = new Fl_Button(325, 47, 50, 25, "Cancel");
      o->color((Fl_Color)1);
      o->callback((Fl_Callback*)cb_Cancel6);
    }
    o->end();
  }
  return w;
}

static void cb_Hetrodyne(Fl_Double_Window*, void*) {
  do_util = 0;
}

Fl_File_Input *het_analin=(Fl_File_Input *)0;

Fl_File_Input *het_analout=(Fl_File_Input *)0;

static void cb_OK5(Fl_Return_Button*, void*) {
  do_util = 1;
}

static void cb_Cancel7(Fl_Button*, void*) {
  do_util = -1;
}

static void cb_5(Fl_Button*, void*) {
  het_analin->value(fl_file_chooser("HETRO", "*.wav", NULL));
}

static void cb_6(Fl_Button*, void*) {
  het_analout->value(fl_file_chooser("Output", "*.ads", NULL));
}

Fl_Round_Button *het_ac=(Fl_Round_Button *)0;

static void cb_het_ac(Fl_Round_Button*, void*) {
  het_c1->value(0);
het_c2->value(0);
het_c3->value(0);
het_c4->value(0);
}

Fl_Round_Button *het_c1=(Fl_Round_Button *)0;

static void cb_het_c1(Fl_Round_Button*, void*) {
  het_ac->value(0);
het_c2->value(0);
het_c3->value(0);
het_c4->value(0);
}

Fl_Round_Button *het_c2=(Fl_Round_Button *)0;

static void cb_het_c2(Fl_Round_Button*, void*) {
  het_ac->value(0);
het_c1->value(0);
het_c3->value(0);
het_c4->value(0);
}

Fl_Round_Button *het_c3=(Fl_Round_Button *)0;

static void cb_het_c3(Fl_Round_Button*, void*) {
  het_ac->value(0);
het_c1->value(0);
het_c2->value(0);
het_c4->value(0);
}

Fl_Round_Button *het_c4=(Fl_Round_Button *)0;

static void cb_het_c4(Fl_Round_Button*, void*) {
  het_ac->value(0);
het_c1->value(0);
het_c2->value(0);
het_c3->value(0);
}

Fl_Value_Input *het_s=(Fl_Value_Input *)0;

Fl_Value_Input *het_b=(Fl_Value_Input *)0;

Fl_Value_Input *het_d=(Fl_Value_Input *)0;

Fl_Value_Input *het_f=(Fl_Value_Input *)0;

Fl_Value_Input *het_h=(Fl_Value_Input *)0;

Fl_Value_Input *het_M=(Fl_Value_Input *)0;

Fl_Value_Input *het_n=(Fl_Value_Input *)0;

Fl_Value_Input *het_I=(Fl_Value_Input *)0;

Fl_Value_Input *het_m=(Fl_Value_Input *)0;

Fl_Double_Window* make_hetanal() {
  Fl_Double_Window* w;
  { Fl_Double_Window* o = new Fl_Double_Window(360, 380, "Hetrodyne Analysis");
    w = o;
    o->callback((Fl_Callback*)cb_Hetrodyne);
    { Fl_File_Input* o = het_analin = new Fl_File_Input(50, 5, 280, 30, "Input");
      char *t; prof_h.get("input", t, ""); o->value(t);free(t);
    }
    { Fl_File_Input* o = het_analout = new Fl_File_Input(50, 35, 280, 30, "Output");
      char *t; prof_h.get("output", t, "test.ads"); o->value(t);free(t);
    }
    { Fl_Return_Button* o = new Fl_Return_Button(10, 330, 50, 25, "OK");
      o->color((Fl_Color)3);
      o->callback((Fl_Callback*)cb_OK5);
    }
    { Fl_Button* o = new Fl_Button(290, 325, 50, 25, "Cancel");
      o->color((Fl_Color)1);
      o->callback((Fl_Callback*)cb_Cancel7);
    }
    { Fl_Button* o = new Fl_Button(330, 5, 25, 30, "?");
      o->color((Fl_Color)5);
      o->callback((Fl_Callback*)cb_5);
    }
    { Fl_Button* o = new Fl_Button(330, 35, 25, 30, "?");
      o->color((Fl_Color)5);
      o->callback((Fl_Callback*)cb_6);
    }
    { Fl_Group* o = new Fl_Group(205, 80, 140, 105);
      o->box(FL_THIN_DOWN_FRAME);
      { Fl_Round_Button* o = het_ac = new Fl_Round_Button(220, 80, 110, 25, "All Channels");
        o->down_box(FL_ROUND_DOWN_BOX);
        o->callback((Fl_Callback*)cb_het_ac);
      }
      { Fl_Round_Button* o = het_c1 = new Fl_Round_Button(220, 100, 110, 25, "Channel 1");
        o->down_box(FL_ROUND_DOWN_BOX);
        o->callback((Fl_Callback*)cb_het_c1);
      }
      { Fl_Round_Button* o = het_c2 = new Fl_Round_Button(220, 120, 110, 25, "Channel 2");
        o->down_box(FL_ROUND_DOWN_BOX);
        o->callback((Fl_Callback*)cb_het_c2);
      }
      { Fl_Round_Button* o = het_c3 = new Fl_Round_Button(220, 140, 110, 25, "Channel 3");
        o->down_box(FL_ROUND_DOWN_BOX);
        o->callback((Fl_Callback*)cb_het_c3);
      }
      { Fl_Round_Button* o = het_c4 = new Fl_Round_Button(220, 155, 110, 30, "Channel 4");
        o->down_box(FL_ROUND_DOWN_BOX);
        o->callback((Fl_Callback*)cb_het_c4);
      }
      o->end();
    }
    { Fl_Value_Input* o = het_s = new Fl_Value_Input(30, 75, 55, 25, "Sample rate (-s)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_h.get("s",t,0); o->value(t);
    }
    { Fl_Value_Input* o = het_b = new Fl_Value_Input(30, 115, 55, 25, "Begin time (-b)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_h.get("b",t,0); o->value(t);
    }
    { Fl_Value_Input* o = het_d = new Fl_Value_Input(30, 155, 55, 25, "Duration (-d)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_h.get("d",t,0); o->value(t);
    }
    { Fl_Value_Input* o = het_f = new Fl_Value_Input(30, 195, 55, 25, "Fundamental (-f)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_h.get("f",t,100); o->value(t);
    }
    { Fl_Value_Input* o = het_h = new Fl_Value_Input(30, 240, 55, 25, "Harmonic (-h)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_h.get("h",t,0); o->value(t);
    }
    { Fl_Value_Input* o = het_M = new Fl_Value_Input(30, 280, 70, 25, "Maxumum (-M)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_h.get("M",t,32767); o->value(t);
    }
    { Fl_Value_Input* o = het_n = new Fl_Value_Input(205, 195, 40, 25, "Number (-n)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_h.get("s",t,256); o->value(t);
    }
    { Fl_Value_Input* o = het_I = new Fl_Value_Input(205, 240, 40, 25, "Filter (-I)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_h.get("I",t,0); o->value(t);
    }
    { Fl_Value_Input* o = het_m = new Fl_Value_Input(205, 280, 40, 25, "Minimum (-m)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_h.get("m",t,64); o->value(t);
    }
    int ct; prof_h.get("c",ct,0); 
het_ac->value(ct==0);het_c1->value(ct==1);het_c2->value(ct==2);het_c3->value(ct==3);het_c4->value(ct==4);
    o->end();
  }
  return w;
}

static void cb_LPC(Fl_Double_Window*, void*) {
  do_util = 0;
}

Fl_File_Input *lpc_analin=(Fl_File_Input *)0;

Fl_File_Input *lpc_analout=(Fl_File_Input *)0;

static void cb_OK6(Fl_Return_Button*, void*) {
  do_util = 1;
}

static void cb_Cancel8(Fl_Button*, void*) {
  do_util = -1;
}

static void cb_7(Fl_Button*, void*) {
  lpc_analin->value(fl_file_chooser("LPC", "*.wav", NULL));
}

static void cb_8(Fl_Button*, void*) {
  lpc_analout->value(fl_file_chooser("LPCout", "*.lpc", NULL));
}

Fl_Round_Button *lpc_c1=(Fl_Round_Button *)0;

static void cb_lpc_c1(Fl_Round_Button*, void*) {
  lpc_c2->value(0);
lpc_c3->value(0);
lpc_c4->value(0);
}

Fl_Round_Button *lpc_c2=(Fl_Round_Button *)0;

static void cb_lpc_c2(Fl_Round_Button*, void*) {
  lpc_c1->value(0);
lpc_c3->value(0);
lpc_c4->value(0);
}

Fl_Round_Button *lpc_c3=(Fl_Round_Button *)0;

static void cb_lpc_c3(Fl_Round_Button*, void*) {
  lpc_c1->value(0);
lpc_c2->value(0);
lpc_c4->value(0);
}

Fl_Round_Button *lpc_c4=(Fl_Round_Button *)0;

static void cb_lpc_c4(Fl_Round_Button*, void*) {
  lpc_c1->value(0);
lpc_c2->value(0);
lpc_c3->value(0);
}

Fl_Value_Input *lpc_s=(Fl_Value_Input *)0;

Fl_Value_Input *lpc_b=(Fl_Value_Input *)0;

Fl_Value_Input *lpc_d=(Fl_Value_Input *)0;

Fl_Value_Input *lpc_p=(Fl_Value_Input *)0;

Fl_Value_Input *lpc_h=(Fl_Value_Input *)0;

Fl_Value_Input *lpc_P=(Fl_Value_Input *)0;

Fl_Value_Input *lpc_Q=(Fl_Value_Input *)0;

Fl_Check_Button *lpc_g=(Fl_Check_Button *)0;

Fl_Double_Window* make_lpcanal() {
  Fl_Double_Window* w;
  { Fl_Double_Window* o = new Fl_Double_Window(410, 320, "LPC Analysis");
    w = o;
    o->callback((Fl_Callback*)cb_LPC);
    { Fl_File_Input* o = lpc_analin = new Fl_File_Input(50, 10, 320, 30, "Input");
      char *t; prof_l.get("input", t, ""); o->value(t);free(t);
    }
    { Fl_File_Input* o = lpc_analout = new Fl_File_Input(50, 40, 320, 30, "Output");
      char *t; prof_l.get("output", t, "test.lpc"); o->value(t);free(t);
    }
    { Fl_Return_Button* o = new Fl_Return_Button(10, 280, 50, 25, "OK");
      o->color((Fl_Color)3);
      o->callback((Fl_Callback*)cb_OK6);
    }
    { Fl_Button* o = new Fl_Button(340, 275, 50, 25, "Cancel");
      o->color((Fl_Color)1);
      o->callback((Fl_Callback*)cb_Cancel8);
    }
    { Fl_Button* o = new Fl_Button(370, 10, 30, 30, "?");
      o->color((Fl_Color)5);
      o->callback((Fl_Callback*)cb_7);
    }
    { Fl_Button* o = new Fl_Button(370, 40, 30, 30, "?");
      o->color((Fl_Color)5);
      o->callback((Fl_Callback*)cb_8);
    }
    { Fl_Group* o = new Fl_Group(230, 80, 170, 85);
      o->box(FL_THIN_DOWN_FRAME);
      { Fl_Round_Button* o = lpc_c1 = new Fl_Round_Button(245, 80, 145, 20, "Channel 1");
        o->down_box(FL_ROUND_DOWN_BOX);
        o->callback((Fl_Callback*)cb_lpc_c1);
        o->value(0);
      }
      { Fl_Round_Button* o = lpc_c2 = new Fl_Round_Button(245, 100, 125, 20, "Channel 2");
        o->down_box(FL_ROUND_DOWN_BOX);
        o->callback((Fl_Callback*)cb_lpc_c2);
        o->value(0);
      }
      { Fl_Round_Button* o = lpc_c3 = new Fl_Round_Button(245, 120, 125, 25, "Channel 3");
        o->down_box(FL_ROUND_DOWN_BOX);
        o->callback((Fl_Callback*)cb_lpc_c3);
        o->value(0);
      }
      { Fl_Round_Button* o = lpc_c4 = new Fl_Round_Button(245, 140, 90, 25, "Channel 4");
        o->down_box(FL_ROUND_DOWN_BOX);
        o->callback((Fl_Callback*)cb_lpc_c4);
        o->value(0);
      }
      o->end();
    }
    { Fl_Value_Input* o = lpc_s = new Fl_Value_Input(30, 75, 55, 25, "Sample rate (-s)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_l.get("s",t,0); o->value(t);
    }
    { Fl_Value_Input* o = lpc_b = new Fl_Value_Input(30, 115, 55, 25, "Begin time (-b)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_l.get("b",t,0); o->value(t);
    }
    { Fl_Value_Input* o = lpc_d = new Fl_Value_Input(30, 155, 55, 25, "Duration (-d)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_l.get("d",t,0); o->value(t);
    }
    { Fl_Value_Input* o = lpc_p = new Fl_Value_Input(30, 195, 55, 25, "Number of Poles (-p)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_l.get("b",t,34); o->value(t);
    }
    { Fl_Value_Input* o = lpc_h = new Fl_Value_Input(230, 195, 55, 25, "Hopsize (-h)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_l.get("h",t,200); o->value(t);
    }
    { Fl_Value_Input* o = lpc_P = new Fl_Value_Input(30, 240, 60, 25, "Low Pitch (-P)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_l.get("P",t,70); o->value(t);
    }
    { Fl_Value_Input* o = lpc_Q = new Fl_Value_Input(230, 240, 55, 25, "High Pitch (-Q)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_l.get("b",t,200); o->value(t);
    }
    { Fl_Check_Button* o = lpc_g = new Fl_Check_Button(230, 165, 95, 20, "Graphics");
      o->down_box(FL_DOWN_BOX);
      o->deactivate();
    }
    int ct; prof_l.get("c",ct,1); 
lpc_c1->value(ct==1);lpc_c2->value(ct==2);lpc_c3->value(ct==3);lpc_c4->value(ct==4);
    o->end();
  }
  return w;
}

static void cb_Phase(Fl_Double_Window*, void*) {
  do_util = 0;
}

Fl_File_Input *pvc_analin=(Fl_File_Input *)0;

Fl_File_Input *pvc_analout=(Fl_File_Input *)0;

static void cb_OK7(Fl_Return_Button*, void*) {
  do_util = 1;
}

static void cb_Cancel9(Fl_Button*, void*) {
  do_util = -1;
}

static void cb_9(Fl_Button*, void*) {
  pvc_analin->value(fl_file_chooser("PVC", "*.wav", NULL));
}

static void cb_a(Fl_Button*, void*) {
  pvc_analout->value(fl_file_chooser("PVCout", "*.pv", NULL));
}

Fl_Round_Button *pvc_c1=(Fl_Round_Button *)0;

static void cb_pvc_c1(Fl_Round_Button*, void*) {
  pvc_c2->value(0);
pvc_c3->value(0);
pvc_c4->value(0);
}

Fl_Round_Button *pvc_c2=(Fl_Round_Button *)0;

static void cb_pvc_c2(Fl_Round_Button*, void*) {
  pvc_c1->value(0);
pvc_c3->value(0);
pvc_c4->value(0);
}

Fl_Round_Button *pvc_c3=(Fl_Round_Button *)0;

static void cb_pvc_c3(Fl_Round_Button*, void*) {
  pvc_c1->value(0);
pvc_c2->value(0);
pvc_c4->value(0);
}

Fl_Round_Button *pvc_c4=(Fl_Round_Button *)0;

static void cb_pvc_c4(Fl_Round_Button*, void*) {
  pvc_c1->value(0);
pvc_c2->value(0);
pvc_c3->value(0);
}

Fl_Value_Input *pvc_s=(Fl_Value_Input *)0;

Fl_Value_Input *pvc_b=(Fl_Value_Input *)0;

Fl_Value_Input *pvc_d=(Fl_Value_Input *)0;

Fl_Value_Input *pvc_w=(Fl_Value_Input *)0;

Fl_Value_Input *pvc_h=(Fl_Value_Input *)0;

Fl_Check_Button *pvc_g=(Fl_Check_Button *)0;

Fl_Round_Button *pvc_H=(Fl_Round_Button *)0;

static void cb_pvc_H(Fl_Round_Button*, void*) {
  pvc_K->value(0);
pvc_V->value(0);
}

Fl_Round_Button *pvc_K=(Fl_Round_Button *)0;

static void cb_pvc_K(Fl_Round_Button*, void*) {
  pvc_H->value(0);
pvc_V->value(0);
}

Fl_Round_Button *pvc_V=(Fl_Round_Button *)0;

static void cb_pvc_V(Fl_Round_Button*, void*) {
  pvc_K->value(0);
pvc_H->value(0);
}

Fl_Double_Window* make_pvanal() {
  Fl_Double_Window* w;
  { Fl_Double_Window* o = new Fl_Double_Window(450, 310, "Phase Vocoding Analysis");
    w = o;
    o->callback((Fl_Callback*)cb_Phase);
    { Fl_File_Input* o = pvc_analin = new Fl_File_Input(50, 10, 320, 30, "Input");
      char *t; prof_p.get("input", t, ""); o->value(t);free(t);
    }
    { Fl_File_Input* o = pvc_analout = new Fl_File_Input(50, 40, 320, 30, "Output");
      char *t; prof_l.get("output", t, "test.pv"); o->value(t);free(t);
    }
    { Fl_Return_Button* o = new Fl_Return_Button(15, 275, 50, 25, "OK");
      o->color((Fl_Color)3);
      o->callback((Fl_Callback*)cb_OK7);
    }
    { Fl_Button* o = new Fl_Button(349, 280, 50, 25, "Cancel");
      o->color((Fl_Color)1);
      o->callback((Fl_Callback*)cb_Cancel9);
    }
    { Fl_Button* o = new Fl_Button(370, 10, 30, 30, "?");
      o->color((Fl_Color)5);
      o->callback((Fl_Callback*)cb_9);
    }
    { Fl_Button* o = new Fl_Button(370, 40, 30, 30, "?");
      o->color((Fl_Color)5);
      o->callback((Fl_Callback*)cb_a);
    }
    { Fl_Group* o = new Fl_Group(230, 80, 170, 85);
      o->box(FL_THIN_DOWN_FRAME);
      { Fl_Round_Button* o = pvc_c1 = new Fl_Round_Button(245, 80, 145, 20, "Channel 1");
        o->down_box(FL_ROUND_DOWN_BOX);
        o->callback((Fl_Callback*)cb_pvc_c1);
        o->value(0);
      }
      { Fl_Round_Button* o = pvc_c2 = new Fl_Round_Button(245, 100, 125, 20, "Channel 2");
        o->down_box(FL_ROUND_DOWN_BOX);
        o->callback((Fl_Callback*)cb_pvc_c2);
        o->value(0);
      }
      { Fl_Round_Button* o = pvc_c3 = new Fl_Round_Button(245, 120, 125, 25, "Channel 3");
        o->down_box(FL_ROUND_DOWN_BOX);
        o->callback((Fl_Callback*)cb_pvc_c3);
        o->value(0);
      }
      { Fl_Round_Button* o = pvc_c4 = new Fl_Round_Button(245, 140, 90, 25, "Channel 4");
        o->down_box(FL_ROUND_DOWN_BOX);
        o->callback((Fl_Callback*)cb_pvc_c4);
        o->value(0);
      }
      o->end();
    }
    { Fl_Value_Input* o = pvc_s = new Fl_Value_Input(30, 75, 55, 25, "Sample rate (-s)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_p.get("s",t,0); o->value(t);
    }
    { Fl_Value_Input* o = pvc_b = new Fl_Value_Input(30, 115, 55, 25, "Begin time (-b)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_p.get("b",t,0); o->value(t);
    }
    { Fl_Value_Input* o = pvc_d = new Fl_Value_Input(30, 155, 55, 25, "Duration (-d)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_p.get("d",t,0); o->value(t);
    }
    { Fl_Value_Input* o = pvc_w = new Fl_Value_Input(30, 195, 55, 25, "Wind factor (-w)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_p.get("w",t,0); o->value(t);
    }
    { Fl_Value_Input* o = pvc_h = new Fl_Value_Input(230, 195, 55, 25, "Hopsize (-h)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_p.get("h",t,0); o->value(t);
    }
    { Fl_Check_Button* o = pvc_g = new Fl_Check_Button(230, 165, 95, 20, "Graphics");
      o->down_box(FL_DOWN_BOX);
      o->deactivate();
    }
    { Fl_Group* o = new Fl_Group(15, 225, 405, 55, "Window");
      o->box(FL_DOWN_BOX);
      o->align(FL_ALIGN_TOP|FL_ALIGN_INSIDE);
      { Fl_Round_Button* o = pvc_H = new Fl_Round_Button(175, 240, 110, 35, "Hamming (-H)");
        o->down_box(FL_ROUND_DOWN_BOX);
        o->callback((Fl_Callback*)cb_pvc_H);
        int t; prof_p.get("H",t,1);o->value(t);
      }
      { Fl_Round_Button* o = pvc_K = new Fl_Round_Button(320, 240, 100, 35, "Kaiser (-K)");
        o->down_box(FL_ROUND_DOWN_BOX);
        o->callback((Fl_Callback*)cb_pvc_K);
        int t;prof_p.get("K",t,0);o->value(t);
      }
      { Fl_Round_Button* o = pvc_V = new Fl_Round_Button(40, 240, 85, 35, "von Hann");
        o->down_box(FL_ROUND_DOWN_BOX);
        o->callback((Fl_Callback*)cb_pvc_V);
        int t;prof_p.get("V",t,1);o->value(t);
      }
      o->end();
    }
    int ct; prof_p.get("c",ct,1); 
pvc_c1->value(ct==1);pvc_c2->value(ct==2);pvc_c3->value(ct==3);pvc_c4->value(ct==4);
    o->end();
  }
  return w;
}

static void cb_Convolution(Fl_Double_Window*, void*) {
  do_util = 0;
}

Fl_File_Input *cvl_analin=(Fl_File_Input *)0;

Fl_File_Input *cvl_analout=(Fl_File_Input *)0;

static void cb_OK8(Fl_Return_Button*, void*) {
  do_util = 1;
}

static void cb_Cancela(Fl_Button*, void*) {
  do_util = -1;
}

static void cb_b(Fl_Button*, void*) {
  cvl_analin->value(fl_file_chooser("CONVOLVE", "*.wav", NULL));
}

static void cb_c(Fl_Button*, void*) {
  cvl_analout->value(fl_file_chooser("Output", "*.cv", NULL));
}

Fl_Round_Button *cvl_ac=(Fl_Round_Button *)0;

static void cb_cvl_ac(Fl_Round_Button*, void*) {
  cvl_c1->value(0);
cvl_c2->value(0);
cvl_c3->value(0);
cvl_c4->value(0);
}

Fl_Round_Button *cvl_c1=(Fl_Round_Button *)0;

static void cb_cvl_c1(Fl_Round_Button*, void*) {
  cvl_ac->value(0);
cvl_c2->value(0);
cvl_c3->value(0);
cvl_c4->value(0);
}

Fl_Round_Button *cvl_c2=(Fl_Round_Button *)0;

static void cb_cvl_c2(Fl_Round_Button*, void*) {
  cvl_ac->value(0);
cvl_c1->value(0);
cvl_c3->value(0);
cvl_c4->value(0);
}

Fl_Round_Button *cvl_c3=(Fl_Round_Button *)0;

static void cb_cvl_c3(Fl_Round_Button*, void*) {
  cvl_ac->value(0);
cvl_c1->value(0);
cvl_c2->value(0);
cvl_c4->value(0);
}

Fl_Round_Button *cvl_c4=(Fl_Round_Button *)0;

static void cb_cvl_c4(Fl_Round_Button*, void*) {
  cvl_ac->value(0);
cvl_c1->value(0);
cvl_c2->value(0);
cvl_c3->value(0);
}

Fl_Value_Input *cvl_s=(Fl_Value_Input *)0;

Fl_Value_Input *cvl_b=(Fl_Value_Input *)0;

Fl_Value_Input *cvl_d=(Fl_Value_Input *)0;

Fl_Double_Window* make_cvlanal() {
  Fl_Double_Window* w;
  { Fl_Double_Window* o = new Fl_Double_Window(360, 245, "Convolution Analysis");
    w = o;
    o->callback((Fl_Callback*)cb_Convolution);
    { Fl_File_Input* o = cvl_analin = new Fl_File_Input(50, 5, 280, 30, "Input");
      char *t; prof_c.get("input", t, ""); o->value(t);free(t);
    }
    { Fl_File_Input* o = cvl_analout = new Fl_File_Input(50, 35, 280, 30, "Output");
      char *t; prof_c.get("output", t, "test.cv"); o->value(t);free(t);
    }
    { Fl_Return_Button* o = new Fl_Return_Button(10, 205, 50, 25, "OK");
      o->color((Fl_Color)3);
      o->callback((Fl_Callback*)cb_OK8);
    }
    { Fl_Button* o = new Fl_Button(295, 205, 50, 25, "Cancel");
      o->color((Fl_Color)1);
      o->callback((Fl_Callback*)cb_Cancela);
    }
    { Fl_Button* o = new Fl_Button(330, 5, 25, 30, "?");
      o->color((Fl_Color)5);
      o->callback((Fl_Callback*)cb_b);
    }
    { Fl_Button* o = new Fl_Button(330, 35, 25, 30, "?");
      o->color((Fl_Color)5);
      o->callback((Fl_Callback*)cb_c);
    }
    { Fl_Group* o = new Fl_Group(205, 80, 140, 105);
      o->box(FL_THIN_DOWN_FRAME);
      { Fl_Round_Button* o = cvl_ac = new Fl_Round_Button(220, 80, 110, 25, "All Channels");
        o->down_box(FL_ROUND_DOWN_BOX);
        o->callback((Fl_Callback*)cb_cvl_ac);
      }
      { Fl_Round_Button* o = cvl_c1 = new Fl_Round_Button(220, 100, 110, 25, "Channel 1");
        o->down_box(FL_ROUND_DOWN_BOX);
        o->callback((Fl_Callback*)cb_cvl_c1);
      }
      { Fl_Round_Button* o = cvl_c2 = new Fl_Round_Button(220, 120, 110, 25, "Channel 2");
        o->down_box(FL_ROUND_DOWN_BOX);
        o->callback((Fl_Callback*)cb_cvl_c2);
      }
      { Fl_Round_Button* o = cvl_c3 = new Fl_Round_Button(220, 140, 110, 25, "Channel 3");
        o->down_box(FL_ROUND_DOWN_BOX);
        o->callback((Fl_Callback*)cb_cvl_c3);
      }
      { Fl_Round_Button* o = cvl_c4 = new Fl_Round_Button(220, 155, 110, 30, "Channel 4");
        o->down_box(FL_ROUND_DOWN_BOX);
        o->callback((Fl_Callback*)cb_cvl_c4);
      }
      o->end();
    }
    { Fl_Value_Input* o = cvl_s = new Fl_Value_Input(30, 75, 55, 25, "Sample rate (-s)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_c.get("s",t,0); o->value(t);
    }
    { Fl_Value_Input* o = cvl_b = new Fl_Value_Input(30, 115, 55, 25, "Begin time (-b)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_c.get("b",t,0); o->value(t);
    }
    { Fl_Value_Input* o = cvl_d = new Fl_Value_Input(30, 155, 55, 25, "Duration (-d)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_c.get("d",t,0); o->value(t);
    }
    int ct; prof_c.get("c",ct,0); 
cvl_ac->value(ct==0);cvl_c1->value(ct==1);cvl_c2->value(ct==2);cvl_c3->value(ct==3);cvl_c4->value(ct==4);
    o->end();
  }
  return w;
}

static void cb_Phase1(Fl_Double_Window*, void*) {
  do_util = 0;
}

Fl_File_Input *plk_analin=(Fl_File_Input *)0;

static void cb_OK9(Fl_Return_Button*, void*) {
  do_util = 1;
}

static void cb_Cancelb(Fl_Button*, void*) {
  do_util = -1;
}

static void cb_d(Fl_Button*, void*) {
  plk_analin->value(fl_file_chooser("PV", "*.pv", NULL));
}

Fl_Value_Input *plk_bb=(Fl_Value_Input *)0;

Fl_Value_Input *plk_bf=(Fl_Value_Input *)0;

Fl_Value_Input *plk_eb=(Fl_Value_Input *)0;

Fl_Value_Input *plk_ef=(Fl_Value_Input *)0;

Fl_Check_Button *plk_i=(Fl_Check_Button *)0;

Fl_Double_Window* make_pvlook() {
  Fl_Double_Window* w;
  { Fl_Double_Window* o = new Fl_Double_Window(410, 225, "Phase Vocoder Decoder");
    w = o;
    o->callback((Fl_Callback*)cb_Phase1);
    { Fl_File_Input* o = plk_analin = new Fl_File_Input(50, 10, 320, 30, "Input");
      char *t; prof_k.get("input", t, ""); o->value(t);free(t);
    }
    { Fl_Return_Button* o = new Fl_Return_Button(35, 185, 50, 25, "OK");
      o->color((Fl_Color)3);
      o->callback((Fl_Callback*)cb_OK9);
    }
    { Fl_Button* o = new Fl_Button(335, 185, 50, 25, "Cancel");
      o->color((Fl_Color)1);
      o->callback((Fl_Callback*)cb_Cancelb);
    }
    { Fl_Button* o = new Fl_Button(370, 10, 30, 30, "?");
      o->color((Fl_Color)5);
      o->callback((Fl_Callback*)cb_d);
    }
    { Fl_Value_Input* o = plk_bb = new Fl_Value_Input(30, 75, 55, 25, "Begin Bin (-bb)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_k.get("bb",t,0); o->value(t);
    }
    { Fl_Value_Input* o = plk_bf = new Fl_Value_Input(30, 115, 55, 25, "Begin frame (-bf)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_k.get("bf",t,0); o->value(t);
    }
    { Fl_Value_Input* o = plk_eb = new Fl_Value_Input(220, 75, 55, 25, "End Bin (-eb)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_k.get("eb",t,0); o->value(t);
    }
    { Fl_Value_Input* o = plk_ef = new Fl_Value_Input(220, 115, 55, 25, "End Frame (-ef)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_k.get("ef",t,0); o->value(t);
    }
    { Fl_Check_Button* o = plk_i = new Fl_Check_Button(100, 155, 115, 20, "Integer output");
      o->down_box(FL_DOWN_BOX);
      int t; prof_k.get("i",t,0); o->value(t);
    }
    o->end();
  }
  return w;
}

static void cb_Dnoiser(Fl_Double_Window*, void*) {
  do_util = 0;
}

Fl_File_Input *dns_analin=(Fl_File_Input *)0;

Fl_File_Input *dns_analout=(Fl_File_Input *)0;

Fl_File_Input *dns_noise=(Fl_File_Input *)0;

static void cb_OKa(Fl_Return_Button*, void*) {
  do_util = 1;
}

static void cb_Cancelc(Fl_Button*, void*) {
  do_util = -1;
}

static void cb_e(Fl_Button*, void*) {
  dns_analin->value(fl_file_chooser("DNOISER", "*.wav", NULL));
}

static void cb_f(Fl_Button*, void*) {
  dns_analout->value(fl_file_chooser("Output", "*.wav", NULL));
}

static void cb_10(Fl_Button*, void*) {
  dns_analout->value(fl_file_chooser("Noise", "*.wav", NULL));
}

Fl_Value_Input *dns_t=(Fl_Value_Input *)0;

Fl_Value_Input *dns_b=(Fl_Value_Input *)0;

Fl_Value_Input *dns_e=(Fl_Value_Input *)0;

Fl_Value_Input *dns_B=(Fl_Value_Input *)0;

Fl_Value_Input *dns_E=(Fl_Value_Input *)0;

Fl_Value_Input *dns_N=(Fl_Value_Input *)0;

Fl_Value_Input *dns_S=(Fl_Value_Input *)0;

Fl_Value_Input *dns_w=(Fl_Value_Input *)0;

Fl_Value_Input *dns_M=(Fl_Value_Input *)0;

Fl_Value_Input *dns_L=(Fl_Value_Input *)0;

Fl_Value_Input *dns_n=(Fl_Value_Input *)0;

Fl_Value_Input *dns_m=(Fl_Value_Input *)0;

Fl_Value_Input *dns_D=(Fl_Value_Input *)0;

Fl_Check_Button *dns_V=(Fl_Check_Button *)0;

Fl_Double_Window* make_dnoise() {
  Fl_Double_Window* w;
  { Fl_Double_Window* o = new Fl_Double_Window(455, 430, "Dnoiser");
    w = o;
    o->callback((Fl_Callback*)cb_Dnoiser);
    { Fl_File_Input* o = dns_analin = new Fl_File_Input(50, 5, 360, 30, "Input");
      char *t; prof_n.get("input", t, ""); o->value(t);free(t);
    }
    { Fl_File_Input* o = dns_analout = new Fl_File_Input(50, 35, 360, 30, "Output");
      char *t; prof_n.get("output", t, "test.wav"); o->value(t);free(t);
    }
    { Fl_File_Input* o = dns_noise = new Fl_File_Input(50, 65, 360, 30, "Noise");
      char *t; prof_n.get("noise", t, "noise.wav"); o->value(t);free(t);
    }
    { Fl_Return_Button* o = new Fl_Return_Button(35, 395, 50, 25, "OK");
      o->color((Fl_Color)3);
      o->callback((Fl_Callback*)cb_OKa);
    }
    { Fl_Button* o = new Fl_Button(380, 395, 50, 25, "Cancel");
      o->color((Fl_Color)1);
      o->callback((Fl_Callback*)cb_Cancelc);
    }
    { Fl_Button* o = new Fl_Button(410, 5, 25, 30, "?");
      o->color((Fl_Color)5);
      o->callback((Fl_Callback*)cb_e);
    }
    { Fl_Button* o = new Fl_Button(410, 35, 25, 30, "?");
      o->color((Fl_Color)5);
      o->callback((Fl_Callback*)cb_f);
    }
    { Fl_Button* o = new Fl_Button(410, 65, 25, 30, "?");
      o->color((Fl_Color)5);
      o->callback((Fl_Callback*)cb_10);
    }
    { Fl_Value_Input* o = dns_t = new Fl_Value_Input(35, 115, 55, 25, "Threshold (t)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_n.get("t",t,30); o->value(t);
    }
    { Fl_Value_Input* o = dns_b = new Fl_Value_Input(35, 155, 55, 25, "Begin time (-b)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_n.get("b",t,0); o->value(t);
    }
    { Fl_Value_Input* o = dns_e = new Fl_Value_Input(35, 195, 55, 25, "End time (-e)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_n.get("e",t,0); o->value(t);
    }
    { Fl_Value_Input* o = dns_B = new Fl_Value_Input(35, 235, 55, 25, "Begin sample (-B)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_n.get("B",t,0); o->value(t);
    }
    { Fl_Value_Input* o = dns_E = new Fl_Value_Input(35, 275, 55, 25, "End sample (-E)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_n.get("E",t,0); o->value(t);
    }
    { Fl_Value_Input* o = dns_N = new Fl_Value_Input(35, 315, 55, 25, "# of filters (-N)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_n.get("M",t,1024); o->value(t);
    }
    { Fl_Value_Input* o = dns_S = new Fl_Value_Input(210, 115, 55, 25, "Sharpness (-S)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_n.get("S",t,1); o->value(t);
    }
    { Fl_Value_Input* o = dns_w = new Fl_Value_Input(210, 155, 55, 25, "Filter overlap (-w)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_n.get("w",t,2); o->value(t);
    }
    { Fl_Value_Input* o = dns_M = new Fl_Value_Input(210, 195, 55, 25, "Anal window size(-M)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_n.get("N",t,1024);prof_n.get("M",t,t-1); o->value(t);
    }
    { Fl_Value_Input* o = dns_L = new Fl_Value_Input(210, 235, 55, 25, "Synth window size (-L)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_n.get("L",t,(int)dns_M->value()); o->value(t);
    }
    { Fl_Value_Input* o = dns_n = new Fl_Value_Input(210, 275, 55, 25, "Frames to average over (-n)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_n.get("n",t,5); o->value(t);
    }
    { Fl_Value_Input* o = dns_m = new Fl_Value_Input(210, 315, 55, 25, "Min gain of noise-gate (-m)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_n.get("m",t,-40); o->value(t);
    }
    { Fl_Value_Input* o = dns_D = new Fl_Value_Input(210, 355, 55, 25, "Decimation factor (-D)");
      o->align(FL_ALIGN_RIGHT);
      int t; prof_n.get("D",t,0); o->value(t);
    }
    { Fl_Check_Button* o = dns_V = new Fl_Check_Button(35, 350, 125, 30, "Verbose (-V)");
      o->down_box(FL_DOWN_BOX);
    }
    o->end();
  }
  return w;
}

Generated by  Doxygen 1.6.0   Back to index