Thanks Stéphane.
Now that it compiles fine I should ask ChucK forum.

2016-07-08 12:02 GMT+02:00 Stéphane Letz <[email protected]>:

> Yes createDSPInstance as as separated function is deprecated. Better now
> use the createDSPInstance method of the llvm_factory* factory object.
>
> (this was done with the new « interpreter » backend.: a new dsp_factory
> class has been defined, which llvm_factory and interpreter_factory now
> derive from).
>
> Stéphane
>
>
>
> > Le 8 juil. 2016 à 11:52, Ebm Boy <[email protected]> a écrit :
> >
> > Thanks Romain,
> > indeed I was using faust-2.0.a30 that I've found on sourceforge and it
> is too old (by the way, it is not very obvious to choose a faust2 version
> on sourceforge/github, at the moment I choose whatever version that seems
> up to date and I check if architecture/pure.c is present or not since c
> interface only works in faust2).
> >
> > With the right version of Faust, I had to change ifstream fin( path); to
> ifstream fin( path.c_str() ); on line 364 of Faust.cpp in order to compile
> (4 warnings about deprecation of createDSPInstance though.)
> >
> > However, Chuck doesn't regard the produced Faust.chug as a valid chugin
> yet.
> >
> >
> >
> > 2016-07-07 5:29 GMT+02:00 Romain Michon <[email protected]>:
> > Hi Ebm,
> >
> > I'm trying to build the Faust chugin from the sources from ccrma github
> on Ubuntu but I can't find faust/gui/PathBuilder.h mentionned in the
> includes of Faust.cpp.
> >
> > I suppose it is different from faust/gui/PathUI.h because I tried to use
> this instead but the chugin isn't recognized after compilation.
> >
> > I don't know what version of Faust you're using, but PathBuilder.h
> exists both in the master and the faust2 branch:
> https://sourceforge.net/p/faudiostream/code/ci/faust2/tree/architecture/faust/gui/PathBuilder.h
> >
> > Also, you need to be using the faust2 branch in order for things to work.
> >
> > Also, Faust.cpp doesn't compile without -std=c+11 which is not
> mentionned in make.linux so I'm not sure github contains the right makefile.
> >
> > Any hint ? Thanks
> >
> > I see. We actually haven't tried FaucK on linux so you might be the
> first person to do it haha! I'm very busy these days so I don't really time
> to try anything but let us know if you manage to make it work and if there
> are changes to be made to the Makefile or anything else, we'd be very happy
> if you could send us the patch :).
> >
> > Cheers,
> >
> > Romain
> >
> >
> ------------------------------------------------------------------------------
> > Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
> > Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> > present their vision of the future. This family event has something for
> > everyone, including kids. Get more information and register today.
> > http://sdm.link/attshape_______________________________________________
> > Faudiostream-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/faudiostream-devel
>
>
--- Faust.cpp	2016-07-08 14:36:03.270106001 +0200
+++ ../../Faust.cpp	2016-06-16 22:19:18.000000000 +0200
@@ -333,7 +333,7 @@
         }
         
         // create DSP instance
-        m_dsp =  m_factory->createDSPInstance();
+        m_dsp = createDSPInstance( m_factory );
         
         // make new UI
         m_ui = new FauckUI();
@@ -361,7 +361,7 @@
     bool compile( const string & path )
     {
         // open file
-        ifstream fin( path.c_str() );
+        ifstream fin( path );
         // check
         if( !fin.good() )
         {
@@ -590,14 +590,11 @@
 {
     // get our c++ class pointer
     Faust * f = (Faust *) OBJ_MEMBER_INT(SELF, faust_data_offset);
-    // get name
-    std::string name = GET_NEXT_STRING(ARGS)->str;
     // get argument
     t_CKINT x = GET_NEXT_INT(ARGS);
     // print
     cerr << "TEST: " << x << endl;
-    // call it
-    f->setParam( name, x );
+    // eval it
     RETURN->v_int = x;
 }
 
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Faudiostream-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-devel

Reply via email to