- are you correctly using the latest GIT master-dev branch ? - can you send me the exact steps you are doing ?
Stéphane > Le 22 janv. 2019 à 20:37, Dario Sanfilippo <sanfilippo.da...@gmail.com> a > écrit : > > Hi, Stéphane. > > I get the following error when trying the double precision option: > > testdouble.cpp:303:29: error: cannot initialize a parameter of type 'double > *' with an rvalue of type > 'float *' > interface->addOption("-n", &fnbsamples, 16, 0.0, 100000000.0); > ^~~~~~~~~~~ > /usr/local/include/faust/gui/console.h:141:48: note: passing argument to > parameter 'zone' here > void addOption(const char* label, FAUSTFLOAT* zone, FAUSTFLOAT init, > FAUSTFLOAT min, FA... > ^ > 1 error generated. > > Thanks, > Dario > > > On Thu, 17 Jan 2019 at 14:25, Stéphane Letz <l...@grame.fr> wrote: > I did some improvement in plot.cpp here: > https://github.com/grame-cncm/faust/commit/2579d27c83d97b9598c065d9cd22944c573e32fd > > Now to test in float: > > faust -a plot.cpp -o testdouble.cpp test.dsp > > g++ -Wall -g -lm -lpthread testdouble.cpp -o a.out > > will compile all in « float » (that is the internal sample type in the > generated C++ code, as well as the architecture FAUSTFLOAT) > > faust -double -a plot.cpp -o testdouble.cpp test.dsp > > g++ -Wall -g -lm -lpthread testdouble.cpp -DFAUSTFLOAT=double -o a.out > > will compile all in « double » (that is the internal sample type in the > generated C++ code, done with the -double parameter given at Faust compile > time, as well as the architecture FAUSTFLOAT given with -DFAUSTFLOAT=double > at g++ compile time). > > Please report if it solve your problems. > > Stéphane > > > > Le 17 janv. 2019 à 12:53, Dario Sanfilippo <sanfilippo.da...@gmail.com> a > > écrit : > > > > Hello, list. > > > > Is there an easy way to use the existing architectures to plot (double > > prec.) signals using gnuplot? > > > > I've also tried changing the precision of the printf functions in plot.cpp > > but I still get a single precision output when running > > > > > faust -double -a plot.cpp -o testdouble.cpp test.dsp > > > g++ -Wall -g -lm -lpthread testdouble.cpp -o a.out > > > > Are the constants on the svg diagrams always single precision? > > > > Thanks for your help. > > > > Dario > > > > _______________________________________________ > > Faudiostream-users mailing list > > Faudiostream-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/faudiostream-users > _______________________________________________ Faudiostream-users mailing list Faudiostream-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/faudiostream-users