Hi Jerry,
Welcome to the mailing list !
I think that there is a small confusion (if I understand you correctly). In the
FaustLive
documentation "Foreign functions cannot be used" means that it is not possible
(this
restriction only apply to FaustLive not to the regular Faust compiler) to
compile/run
Faust programs that *use* "foreign functions" (a mechanism allowing to call C
code *from*
Faust code). This is because FaustLive doesn't embed a full C compiler. But it
is
obviously possible to use Faust and FaustLive to write "foreign functions", in
the sens of
plugins and external objects, for languages like Max, PD, Csound, SuperCollider
etc.. That
is one of the purposes of Faust.
In other words, if you write a pure Faust program, you can use FaustLive and
you will be
able to export your Faust program to Max, PD, etc. If you write a faust program
that
needs, for some reason, to call C functions, then you will have to use the
regular Faust
compiler to create your plugin. Currently there are some programs in
examples/faust-stk
and examples/faust-tubes that use C foreign functions to load external data
tables.
Therefore you will not be able to run these programs from FaustLive. But note
that these
examples can be easily converted to pure Faust programs using the recently
added 'waveform
{...}' expression to embed these data tables in the Faust code.
Cheers
Yann
Le 12/07/2014 00:18, Jerry a écrit :
> Hi List,
>
> Noob alert.
>
> I recently discovered Faust and was as excited as I was impressed. What a
> wonderful tool.
>
> One of the projects that I envision is using Faust to make a Pd and Max
> plug-in using Faust to construct external functions, thus bypassing the
> difficult (for me--I don't much like C) process of writing directly to Pd/Max
> and instead using the very friendly foreign function capability of Faust.
>
> So my excitement was considerably dulled when I read in the Faust readme that
> a known bug is "Foreign functions cannot be used."
>
> I believe that I have a recent build--the FaustLive program was built on
> April 8, 2014 and I work on OS X 10.9.4.
>
> Is this bug with respect to foreign functions real or is perhaps the readme
> out of date? Is it specific to OS X?
>
> Also, can I use the MacPorts version of Jack or does Faust expect the
> included version to be used?
>
> And--I'm a little puzzled that the readme directs that the .lib extension
> should be assigned to a text editor; that's a pretty common file extension
> for lots of different situations.
>
> Thanks for any help,
> Jerry
> ------------------------------------------------------------------------------
> _______________________________________________
> Faudiostream-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/faudiostream-users
>
------------------------------------------------------------------------------
_______________________________________________
Faudiostream-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-users