@@ -267,7 +267,7 @@ render();} | |||||
xywh {5 50 985 420} box BORDER_BOX | xywh {5 50 985 420} box BORDER_BOX | ||||
} { | } { | ||||
Fl_Group {} { | Fl_Group {} { | ||||
label Parameters open selected | |||||
label Parameters open | |||||
xywh {5 70 985 400} | xywh {5 70 985 400} | ||||
} { | } { | ||||
Fl_Slider stretch_slider { | Fl_Slider stretch_slider { | ||||
@@ -941,12 +941,18 @@ if ( i == 0 ) return true; | |||||
else return false;} {} | else return false;} {} | ||||
} | } | ||||
Function {main(int argc, char *argv[])} {return_type int | |||||
Function {main(int argc, char *argv[])} {open return_type int | |||||
} { | } { | ||||
code {GUI *gui=new GUI(); | code {GUI *gui=new GUI(); | ||||
if (argc>1){ | if (argc>1){ | ||||
gui->open_input_file(argv[1]); | |||||
const char *filename=argv[1]; | |||||
if (filename[0]=='-'){ | |||||
if (argc>2) filename=argv[2]; | |||||
else filename=NULL; | |||||
}; | |||||
if (filename) gui->open_input_file(filename); | |||||
}; | }; | ||||
gui->window->show(); | gui->window->show(); | ||||
@@ -955,5 +961,6 @@ Fl::run(); | |||||
delete gui; | delete gui; | ||||
return 0;} {} | |||||
return 0;} {selected | |||||
} | |||||
} | } |
@@ -125,8 +125,12 @@ ProcessedStretch::ProcessedStretch(REALTYPE rap_,int in_bufsize_,FFTWindow w,boo | |||||
sumfreq=new REALTYPE[nfreq]; | sumfreq=new REALTYPE[nfreq]; | ||||
tmpfreq1=new REALTYPE[nfreq]; | tmpfreq1=new REALTYPE[nfreq]; | ||||
tmpfreq2=new REALTYPE[nfreq]; | tmpfreq2=new REALTYPE[nfreq]; | ||||
fbfreq=new REALTYPE[nfreq]; | |||||
free_filter_freqs=new REALTYPE[nfreq]; | free_filter_freqs=new REALTYPE[nfreq]; | ||||
for (int i=0;i<nfreq;i++) free_filter_freqs[i]=1.0; | |||||
for (int i=0;i<nfreq;i++) { | |||||
free_filter_freqs[i]=1.0; | |||||
fbfreq[i]=0.0; | |||||
}; | |||||
}; | }; | ||||
ProcessedStretch::~ProcessedStretch(){ | ProcessedStretch::~ProcessedStretch(){ | ||||
delete [] infreq; | delete [] infreq; | ||||
@@ -134,6 +138,7 @@ ProcessedStretch::~ProcessedStretch(){ | |||||
delete [] tmpfreq1; | delete [] tmpfreq1; | ||||
delete [] tmpfreq2; | delete [] tmpfreq2; | ||||
delete [] free_filter_freqs; | delete [] free_filter_freqs; | ||||
delete [] fbfreq; | |||||
}; | }; | ||||
void ProcessedStretch::set_parameters(ProcessParameters *ppar){ | void ProcessedStretch::set_parameters(ProcessParameters *ppar){ | ||||
@@ -172,6 +172,7 @@ class ProcessedStretch:public Stretch{ | |||||
ProcessParameters pars; | ProcessParameters pars; | ||||
REALTYPE *infreq,*sumfreq,*tmpfreq1,*tmpfreq2; | REALTYPE *infreq,*sumfreq,*tmpfreq1,*tmpfreq2; | ||||
REALTYPE *fbfreq; | |||||
}; | }; | ||||
#endif | #endif | ||||
@@ -74,6 +74,7 @@ History: | |||||
2011????(2.) | 2011????(2.) | ||||
- Added an option to preserve the tonal part or noise part | - Added an option to preserve the tonal part or noise part | ||||
- Ignored the commandline parameters starting with "-" (usefull for macosx) | |||||
Enjoy! :) | Enjoy! :) | ||||
Paul | Paul | ||||